Home
last modified time | relevance | path

Searched refs:min_t (Results 1 – 25 of 1714) sorted by relevance

12345678910>>...69

/Linux-v5.10/drivers/scsi/fnic/
Dfnic_res.c74 min_t(u32, VNIC_FNIC_WQ_DESCS_MAX, in fnic_get_vnic_config()
80 min_t(u32, VNIC_FNIC_WQ_COPY_DESCS_MAX, in fnic_get_vnic_config()
86 min_t(u32, VNIC_FNIC_RQ_DESCS_MAX, in fnic_get_vnic_config()
92 min_t(u16, VNIC_FNIC_MAXDATAFIELDSIZE_MAX, in fnic_get_vnic_config()
96 min_t(u32, VNIC_FNIC_EDTOV_MAX, in fnic_get_vnic_config()
101 min_t(u32, VNIC_FNIC_RATOV_MAX, in fnic_get_vnic_config()
106 min_t(u32, VNIC_FNIC_FLOGI_RETRIES_MAX, c->flogi_retries); in fnic_get_vnic_config()
109 min_t(u32, VNIC_FNIC_FLOGI_TIMEOUT_MAX, in fnic_get_vnic_config()
114 min_t(u32, VNIC_FNIC_PLOGI_RETRIES_MAX, c->plogi_retries); in fnic_get_vnic_config()
117 min_t(u32, VNIC_FNIC_PLOGI_TIMEOUT_MAX, in fnic_get_vnic_config()
[all …]
/Linux-v5.10/drivers/scsi/snic/
Dsnic_res.c63 c->wq_enet_desc_count = min_t(u32, in snic_get_vnic_config()
71 c->maxdatafieldsize = min_t(u32, in snic_get_vnic_config()
77 c->io_throttle_count = min_t(u32, in snic_get_vnic_config()
83 c->port_down_timeout = min_t(u32, in snic_get_vnic_config()
87 c->port_down_io_retries = min_t(u32, in snic_get_vnic_config()
91 c->luns_per_tgt = min_t(u32, in snic_get_vnic_config()
97 c->intr_timer = min_t(u32, VNIC_INTR_TIMER_MAX, c->intr_timer); in snic_get_vnic_config()
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c340 vmdq_i = min_t(u16, vmdq_i, MAX_TX_QUEUES / tcs); in ixgbe_set_dcb_sriov_queues()
347 vmdq_i = min_t(u16, vmdq_i, 16); in ixgbe_set_dcb_sriov_queues()
351 vmdq_i = min_t(u16, vmdq_i, 32); in ixgbe_set_dcb_sriov_queues()
391 fcoe_i = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_dcb_sriov_queues()
439 rss_i = min_t(u16, rss_i, 4); in ixgbe_set_dcb_queues()
443 rss_i = min_t(u16, rss_i, 8); in ixgbe_set_dcb_queues()
447 rss_i = min_t(u16, rss_i, 16); in ixgbe_set_dcb_queues()
453 rss_i = min_t(int, rss_i, f->limit); in ixgbe_set_dcb_queues()
470 f->indices = min_t(u16, rss_i, f->limit); in ixgbe_set_dcb_queues()
510 rss_i = min_t(u16, rss_i, MAX_TX_QUEUES / vmdq_i); in ixgbe_set_sriov_queues()
[all …]
/Linux-v5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-main.c237 pdata->tx_ring_count = min_t(unsigned int, num_online_cpus(), in xgbe_set_counts()
239 pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, in xgbe_set_counts()
241 pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, in xgbe_set_counts()
246 pdata->rx_ring_count = min_t(unsigned int, num_online_cpus(), in xgbe_set_counts()
248 pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, in xgbe_set_counts()
251 pdata->rx_q_count = min_t(unsigned int, pdata->hw_feat.rx_q_cnt, in xgbe_set_counts()
313 pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, in xgbe_config_netdev()
315 pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, in xgbe_config_netdev()
/Linux-v5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfwil.c107 len = min_t(uint, len, BRCMF_DCMD_MAXLEN); in brcmf_fil_cmd_data()
137 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_set()
155 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_get()
225 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_set()
265 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_get()
349 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_set()
389 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_get()
/Linux-v5.10/drivers/auxdisplay/
Dks0108.c81 ks0108_writedata(min_t(unsigned char, startline, 63) | bit(6) | in ks0108_startline()
87 ks0108_writedata(min_t(unsigned char, address, 63) | bit(6)); in ks0108_address()
92 ks0108_writedata(min_t(unsigned char, page, 7) | bit(3) | bit(4) | in ks0108_page()
/Linux-v5.10/drivers/base/regmap/
Dregmap-spmi.c122 len = min_t(size_t, val_size, 16); in regmap_spmi_ext_read()
134 len = min_t(size_t, val_size, 8); in regmap_spmi_ext_read()
162 len = min_t(size_t, val_size, 16); in regmap_spmi_ext_gather_write()
174 len = min_t(size_t, val_size, 8); in regmap_spmi_ext_gather_write()
/Linux-v5.10/fs/romfs/
Dstorage.c47 segment = min_t(size_t, maxlen, 16); in romfs_mtd_strnlen()
78 segment = min_t(size_t, size + 1, 17); in romfs_mtd_strcmp()
113 segment = min_t(size_t, buflen, ROMBSIZE - offset); in romfs_blk_read()
142 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen()
174 segment = min_t(size_t, size, ROMBSIZE - offset); in romfs_blk_strcmp()
/Linux-v5.10/drivers/scsi/ufs/
Dufshcd-pltfrm.c283 min_pltfrm_gear = min_t(u32, pltfrm_param->hs_rx_gear, in ufshcd_get_pwr_dev_param()
286 min_pltfrm_gear = min_t(u32, pltfrm_param->pwm_rx_gear, in ufshcd_get_pwr_dev_param()
324 agreed_pwr->lane_tx = min_t(u32, dev_max->lane_tx, in ufshcd_get_pwr_dev_param()
326 agreed_pwr->lane_rx = min_t(u32, dev_max->lane_rx, in ufshcd_get_pwr_dev_param()
330 min_dev_gear = min_t(u32, dev_max->gear_rx, dev_max->gear_tx); in ufshcd_get_pwr_dev_param()
343 min_t(u32, min_dev_gear, min_pltfrm_gear); in ufshcd_get_pwr_dev_param()
/Linux-v5.10/fs/hfsplus/
Dbnode.c31 l = min_t(int, len, PAGE_SIZE - off); in hfs_bnode_read()
37 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_read()
84 l = min_t(int, len, PAGE_SIZE - off); in hfs_bnode_write()
91 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_write()
114 l = min_t(int, len, PAGE_SIZE - off); in hfs_bnode_clear()
120 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_clear()
144 l = min_t(int, len, PAGE_SIZE - src); in hfs_bnode_copy()
151 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_copy()
253 l = min_t(int, len, PAGE_SIZE - src); in hfs_bnode_move()
261 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_move()
[all …]
/Linux-v5.10/net/nfc/nci/
Dntf.c100 nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE); in nci_extract_rf_params_nfca_passive_poll()
124 nfcb_poll->sensb_res_len = min_t(__u8, *data++, NFC_SENSB_RES_MAXSIZE); in nci_extract_rf_params_nfcb_passive_poll()
139 nfcf_poll->sensf_res_len = min_t(__u8, *data++, NFC_SENSF_RES_MAXSIZE); in nci_extract_rf_params_nfcf_passive_poll()
165 nfcf_listen->local_nfcid2_len = min_t(__u8, *data++, in nci_extract_rf_params_nfcf_passive_listen()
376 nfca_poll->rats_res_len = min_t(__u8, *data++, 20); in nci_extract_activation_params_iso_dep()
386 nfcb_poll->attrib_res_len = min_t(__u8, *data++, 50); in nci_extract_activation_params_iso_dep()
413 poll->atr_res_len = min_t(__u8, *data++, in nci_extract_activation_params_nfc_dep()
423 listen->atr_req_len = min_t(__u8, *data++, in nci_extract_activation_params_nfc_dep()
473 ndev->remote_gb_len = min_t(__u8, in nci_store_general_bytes_nfc_dep()
485 ndev->remote_gb_len = min_t(__u8, in nci_store_general_bytes_nfc_dep()
/Linux-v5.10/lib/
Dbucket_locks.c27 nr_pcpus = min_t(unsigned int, nr_pcpus, 64UL); in __alloc_bucket_spinlocks()
28 size = min_t(unsigned int, nr_pcpus * cpu_mult, max_size); in __alloc_bucket_spinlocks()
/Linux-v5.10/fs/btrfs/
Dzstd.c404 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
416 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
463 workspace->out_buf.size = min_t(size_t, max_out, in zstd_compress_pages()
484 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
523 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
570 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
613 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
644 destlen = min_t(size_t, destlen, PAGE_SIZE); in zstd_decompress()
688 bytes = min_t(unsigned long, destlen - pg_offset, in zstd_decompress()
/Linux-v5.10/drivers/crypto/nx/
Dnx-aes-gcm.c122 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in nx_gca()
124 max_sg_len = min_t(u64, max_sg_len, in nx_gca()
132 to_process = min_t(u64, nbytes - processed, in nx_gca()
134 to_process = min_t(u64, to_process, in nx_gca()
186 max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), in gmac()
188 max_sg_len = min_t(u64, max_sg_len, in gmac()
199 to_process = min_t(u64, nbytes - processed, in gmac()
201 to_process = min_t(u64, to_process, in gmac()
Dnx-sha256.c87 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha256_update()
89 max_sg_len = min_t(u64, max_sg_len, in nx_sha256_update()
127 to_process = min_t(u64, total, in nx_sha256_update()
189 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha256_final()
191 max_sg_len = min_t(u64, max_sg_len, in nx_sha256_final()
Dnx-sha512.c87 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_update()
89 max_sg_len = min_t(u64, max_sg_len, in nx_sha512_update()
126 to_process = min_t(u64, total, in nx_sha512_update()
193 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_final()
195 max_sg_len = min_t(u64, max_sg_len, in nx_sha512_final()
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_cpplib.c168 incr = min_t(int, 16 * width_read, 128); in nfp_cpp_explicit_read()
169 incr = min_t(int, incr, len); in nfp_cpp_explicit_read()
221 incr = min_t(int, 16 * width_write, 128); in nfp_cpp_explicit_write()
222 incr = min_t(int, incr, len); in nfp_cpp_explicit_write()
/Linux-v5.10/drivers/usb/misc/
Dusb251xb.c522 hub->max_power_sp = min_t(u8, property_u32 / 2000, 50); in usb251xb_get_ofdata()
527 hub->max_power_bp = min_t(u8, property_u32 / 2000, 255); in usb251xb_get_ofdata()
532 hub->max_current_sp = min_t(u8, property_u32 / 2000, 50); in usb251xb_get_ofdata()
537 hub->max_current_bp = min_t(u8, property_u32 / 2000, 255); in usb251xb_get_ofdata()
541 hub->power_on_time = min_t(u8, property_u32 / 2, 255); in usb251xb_get_ofdata()
551 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata()
560 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata()
570 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata()
/Linux-v5.10/drivers/net/wireless/ath/ath11k/
Dreg.c358 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules()
362 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath11k_reg_intersect_rules()
364 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules()
367 min_t(u32, rule1->power_rule.max_antenna_gain, in ath11k_reg_intersect_rules()
370 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath11k_reg_intersect_rules()
458 bw = min_t(u16, bw, max_bw); in ath11k_reg_adjust_bw()
604 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
610 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
/Linux-v5.10/fs/xfs/
Dxfs_bio_io.c9 return min_t(unsigned, howmany(count, PAGE_SIZE), BIO_MAX_PAGES); in bio_max_vecs()
37 unsigned int len = min_t(unsigned, left, PAGE_SIZE - off); in xfs_rw_bdev()
/Linux-v5.10/net/ceph/
Dpagevec.c71 l = min_t(int, PAGE_SIZE-po, left); in ceph_copy_user_to_page_vector()
96 size_t l = min_t(size_t, PAGE_SIZE-po, left); in ceph_copy_to_page_vector()
119 size_t l = min_t(size_t, PAGE_SIZE-po, left); in ceph_copy_from_page_vector()
/Linux-v5.10/drivers/char/tpm/
Dtpm_i2c_atmel.c55 (int)min_t(size_t, 64, len), buf, len, status); in i2c_atmel_send()
88 (int)min_t(size_t, 64, expected_len), buf, count, in i2c_atmel_recv()
97 (int)min_t(size_t, 64, expected_len), buf, count, in i2c_atmel_recv()
/Linux-v5.10/tools/perf/scripts/python/
Dpowerpc-hcalls.py168 min_t = output[opcode]['min']
171 print(print_ptrn % (h_name, cnt, min_t, max_t, time//cnt))
/Linux-v5.10/drivers/media/platform/vsp1/
Dvsp1_rwpf.c221 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection()
222 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
223 sel->r.width = min_t(unsigned int, sel->r.width, in vsp1_rwpf_set_selection()
225 sel->r.height = min_t(unsigned int, sel->r.height, in vsp1_rwpf_set_selection()
/Linux-v5.10/drivers/net/wireless/ti/wlcore/
Ddebug.h84 min_t(size_t, len, DEBUG_DUMP_LIMIT), \
94 min_t(size_t, len, DEBUG_DUMP_LIMIT), \

12345678910>>...69