Home
last modified time | relevance | path

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

12

/openbmc/linux/block/
H A Dblk-settings.c138 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
558 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
559 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
560 t->max_dev_sectors = min_not_zero(t->max_dev_sectors, b->max_dev_sectors); in blk_stack_limits()
567 t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, in blk_stack_limits()
569 t->virt_boundary_mask = min_not_zero(t->virt_boundary_mask, in blk_stack_limits()
572 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
573 t->max_discard_segments = min_not_zero(t->max_discard_segments, in blk_stack_limits()
575 t->max_integrity_segments = min_not_zero(t->max_integrity_segments, in blk_stack_limits()
578 t->max_segment_size = min_not_zero(t->max_segment_size, in blk_stack_limits()
[all …]
H A Dblk-sysfs.c239 max_hw_sectors_kb = min_not_zero(max_hw_sectors_kb, in queue_max_sectors_store()
/openbmc/linux/arch/x86/mm/
H A Dmem_encrypt.c32 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
/openbmc/linux/include/linux/
H A Ddma-direct.h110 return end <= min_not_zero(*dev->dma_mask, dev->bus_dma_limit); in dma_capable()
H A Dminmax.h132 #define min_not_zero(x, y) ({ \ macro
H A Ddma-mapping.h478 return min_not_zero(dma_get_mask(dev), dev->bus_dma_limit) < in dma_addressing_limited()
/openbmc/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()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbpf_tcp_helpers.h195 #define min_not_zero(x, y) ({ \ macro
/openbmc/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()
/openbmc/linux/kernel/dma/
H A Ddirect.c49 u64 dma_limit = min_not_zero( in dma_direct_optimal_gfp_mask()
76 min_not_zero(dev->coherent_dma_mask, dev->bus_dma_limit); in dma_coherent_ok()
H A Dcontiguous.c232 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
H A Dmapping.c123 return min_not_zero(mask, dev->bus_dma_limit) >= in dma_go_direct()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_dctcp.c130 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in BPF_PROG()
/openbmc/linux/drivers/scsi/
H A Dsd.c844 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard()
854 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard()
863 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard()
867 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard()
1016 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
1019 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
3521 dev_max = min_not_zero(dev_max, sdkp->max_xfer_blocks); in sd_revalidate_disk()
3535 rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), in sd_revalidate_disk()
3544 rw_max = min_not_zero(rw_max, sdp->host->opt_sectors); in sd_revalidate_disk()
/openbmc/u-boot/include/linux/
H A Dkernel.h194 #define min_not_zero(x, y) ({ \ macro
/openbmc/linux/drivers/target/
H A Dtarget_core_pscsi.c299 min_not_zero((int)sd->sector_size, 512); in pscsi_add_device_to_list()
301 min_not_zero(sd->host->max_sectors, queue_max_hw_sectors(q)); in pscsi_add_device_to_list()
/openbmc/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()
/openbmc/linux/drivers/block/
H A Dvirtio_blk.c1041 min_not_zero(num_request_queues, nr_cpu_ids), in init_vq()
1511 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_probe()
1541 max_discard_segs = min_not_zero(max_discard_segs, v); in virtblk_probe()
/openbmc/linux/drivers/nvdimm/
H A Dregion_devs.c124 num_flush = min_not_zero(num_flush, nvdimm->num_flush); in nd_region_activate()
386 avail = min_not_zero(avail, nd_pmem_max_contiguous_dpa( in nd_region_allocatable_dpa()
/openbmc/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()
/openbmc/linux/drivers/acpi/arm64/
H A Diort.c2024 limit = min_not_zero(limit, local_limit); in acpi_iort_dma_get_max_cpu_address()
2033 limit = min_not_zero(limit, local_limit); in acpi_iort_dma_get_max_cpu_address()
/openbmc/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_mmu.c264 *count = min_not_zero(blk_offset, size) / SZ_4K; in get_pgsize()
/openbmc/linux/drivers/thunderbolt/
H A Dtunnel.c107 spare = min_not_zero(sw->max_dma_credits, dma_credits); in tb_available_credits()
1667 credits = min_not_zero(dma_credits, nhi->sw->max_dma_credits); in tb_tunnel_alloc_dma()
/openbmc/linux/drivers/watchdog/
H A Dwatchdog_dev.c114 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive()

12