Home
last modified time | relevance | path

Searched refs:min_not_zero (Results 1 – 25 of 55) sorted by relevance

123

/linux/block/
H A Dblk-settings.c121 min_not_zero(lim->max_hw_zone_append_sectors, in blk_validate_zoned_limits()
416 max_hw_sectors = min_not_zero(lim->max_hw_sectors, in blk_validate_limits()
814 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
815 t->max_user_sectors = min_not_zero(t->max_user_sectors, in blk_stack_limits()
817 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
818 t->max_dev_sectors = min_not_zero(t->max_dev_sectors, b->max_dev_sectors); in blk_stack_limits()
831 t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, in blk_stack_limits()
833 t->virt_boundary_mask = min_not_zero(t->virt_boundary_mask, in blk_stack_limits()
836 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
837 t->max_discard_segments = min_not_zero(t->max_discard_segments, in blk_stack_limits()
[all …]
H A Dblk-mq-cpumap.c26 return min_not_zero(num, max_queues); in blk_mq_num_queues()
H A Dblk-merge.c763 gaps_bit = min_not_zero(gaps_bit, prev->bi_bvec_gap_bit); in bio_seg_gap()
764 gaps_bit = min_not_zero(gaps_bit, next->bi_bvec_gap_bit); in bio_seg_gap()
769 gaps_bit = min_not_zero(gaps_bit, ffs(bvec_seg_gap(&pb, &nb))); in bio_seg_gap()
838 min_not_zero(next->phys_gap_bit, in attempt_merge()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_dctcp.c16 #define min_not_zero(x, y) ({ \ macro
131 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in BPF_PROG()
/linux/arch/x86/mm/
H A Dmem_encrypt.c35 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
/linux/drivers/md/
H A Ddm-zone.c331 min_not_zero(max_active_zones, zlim->lim->max_active_zones); in device_get_zone_resource_limits()
337 min_not_zero(max_open_zones, zlim->lim->max_open_zones); in device_get_zone_resource_limits()
H A Ddm-delay.c259 min_delay = min_not_zero(min_delay, dc->write.delay); in delay_ctr()
272 min_delay = min_not_zero(min_delay, dc->flush.delay); in delay_ctr()
/linux/net/ipv4/
H A Dtcp_cdg.c145 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update()
324 ca->rtt.min = min_not_zero(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked()
H A Dtcp_dctcp.c154 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in dctcp_update_alpha()
/linux/include/linux/
H A Ddma-direct.h138 return end <= min_not_zero(*dev->dma_mask, dev->bus_dma_limit); in dma_capable()
H A Dminmax.h176 #define min_not_zero(x, y) ({ \ macro
/linux/drivers/nvme/target/
H A Dpassthru.c105 max_hw_sectors = min_not_zero(pctrl->max_segments << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
/linux/kernel/dma/
H A Ddirect.c50 u64 dma_limit = min_not_zero( in dma_direct_optimal_gfp_mask()
77 min_not_zero(dev->coherent_dma_mask, dev->bus_dma_limit); in dma_coherent_ok()
H A Dcoherent.c351 min_not_zero(dev->coherent_dma_mask, dev->bus_dma_limit)) in rmem_dma_device_init()
H A Dmapping.c131 return min_not_zero(mask, dev->bus_dma_limit) >= in dma_go_direct()
947 if (min_not_zero(dma_get_mask(dev), dev->bus_dma_limit) < in __dma_addressing_limited()
/linux/drivers/scsi/
H A Dsd.c143 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard()
153 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard()
162 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard()
166 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard()
1138 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
1141 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
3802 dev_max = min_not_zero(dev_max, sdkp->max_xfer_blocks); in sd_revalidate_disk()
3817 lim->io_opt = min_not_zero(lim->io_opt, in sd_revalidate_disk()
/linux/fs/xfs/
H A Dxfs_verify_media.c183 min_not_zero(SZ_1M, me->me_max_io_size); in xfs_verify_iosize()
/linux/drivers/mmc/core/
H A Dsdio.c461 max_dtr = min_not_zero(max_dtr, card->quirk_max_rate); in mmc_sdio_get_max_clock()
581 max_rate = min_not_zero(card->quirk_max_rate, in sdio_set_bus_speed_mode()
/linux/drivers/target/
H A Dtarget_core_pscsi.c300 min_not_zero((int)sd->sector_size, 512); in pscsi_add_device_to_list()
302 min_not_zero(sd->host->max_sectors, queue_max_hw_sectors(q)); in pscsi_add_device_to_list()
/linux/drivers/block/
H A Dvirtio_blk.c981 min_not_zero(num_request_queues, num_vqs)); in init_vq()
1362 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_read_limits()
1390 max_discard_segs = min_not_zero(max_discard_segs, v); in virtblk_read_limits()
/linux/drivers/nvdimm/
H A Dregion_devs.c121 _num_flush = min_not_zero(_num_flush, nvdimm->num_flush); in get_flush_data()
397 avail = min_not_zero(avail, nd_pmem_max_contiguous_dpa( in nd_region_allocatable_dpa()
/linux/fs/btrfs/
H A Dzoned.c427 max_active_zones = min_not_zero(bdev_max_active_zones(bdev), in btrfs_get_dev_zone_info()
770 fs_info->max_extent_size = min_not_zero(fs_info->max_extent_size, in btrfs_check_zoned_mode()
1447 bg->zone_capacity = min_not_zero(zone_info[0].capacity, zone_info[1].capacity); in btrfs_load_block_group_dup()
1515 bg->zone_capacity = min_not_zero(zone_info[0].capacity, zone_info[1].capacity); in btrfs_load_block_group_raid1()
/linux/io_uring/
H A Dnet.c600 .max_len = min_not_zero(sr->len, INT_MAX), in io_send_select_buffer()
1131 arg.max_len = min_not_zero(sel->val, (ssize_t) kmsg->msg.msg_inq); in io_recv_buf_select()
1135 arg.max_len = min_not_zero(arg.max_len, sr->mshot_total_len); in io_recv_buf_select()
/linux/drivers/pci/controller/dwc/
H A Dpcie-rcar-gen4.c147 changes = min_not_zero(dw->max_link_speed, RCAR_MAX_LINK_SPEED) - 1; in rcar_gen4_pcie_start_link()
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_dpmaif_tx.c146 real_rel_cnt = min_not_zero(budget, rel_cnt); in t7xx_dpmaif_tx_release()

123