/linux-6.12.1/drivers/scsi/fnic/ |
D | fnic_res.c | 64 min_t(u32, VNIC_FNIC_WQ_DESCS_MAX, in fnic_get_vnic_config() 70 min_t(u32, VNIC_FNIC_WQ_COPY_DESCS_MAX, in fnic_get_vnic_config() 76 min_t(u32, VNIC_FNIC_RQ_DESCS_MAX, in fnic_get_vnic_config() 82 min_t(u16, VNIC_FNIC_MAXDATAFIELDSIZE_MAX, in fnic_get_vnic_config() 86 min_t(u32, VNIC_FNIC_EDTOV_MAX, in fnic_get_vnic_config() 91 min_t(u32, VNIC_FNIC_RATOV_MAX, in fnic_get_vnic_config() 96 min_t(u32, VNIC_FNIC_FLOGI_RETRIES_MAX, c->flogi_retries); in fnic_get_vnic_config() 99 min_t(u32, VNIC_FNIC_FLOGI_TIMEOUT_MAX, in fnic_get_vnic_config() 104 min_t(u32, VNIC_FNIC_PLOGI_RETRIES_MAX, c->plogi_retries); in fnic_get_vnic_config() 107 min_t(u32, VNIC_FNIC_PLOGI_TIMEOUT_MAX, in fnic_get_vnic_config() [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_lib.c | 304 queues = min_t(int, IXGBE_MAX_XDP_QS, nr_cpu_ids); in ixgbe_xdp_queues() 344 vmdq_i = min_t(u16, vmdq_i, MAX_TX_QUEUES / tcs); in ixgbe_set_dcb_sriov_queues() 351 vmdq_i = min_t(u16, vmdq_i, 16); in ixgbe_set_dcb_sriov_queues() 355 vmdq_i = min_t(u16, vmdq_i, 32); in ixgbe_set_dcb_sriov_queues() 395 fcoe_i = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_dcb_sriov_queues() 443 rss_i = min_t(u16, rss_i, 4); in ixgbe_set_dcb_queues() 447 rss_i = min_t(u16, rss_i, 8); in ixgbe_set_dcb_queues() 451 rss_i = min_t(u16, rss_i, 16); in ixgbe_set_dcb_queues() 457 rss_i = min_t(int, rss_i, f->limit); in ixgbe_set_dcb_queues() 474 f->indices = min_t(u16, rss_i, f->limit); in ixgbe_set_dcb_queues() [all …]
|
/linux-6.12.1/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-ram.c | 17 max = min_t(u8, obj->max, obj->fifo_num * config->fifo_depth); in can_ram_clamp() 38 ret = min_t(u8, coalesce * 2, config->fifo_depth); in can_ram_rounddown_pow_of_two() 46 n = min_t(u8, rounddown_pow_of_two(val), in can_ram_rounddown_pow_of_two() 119 max = min_t(u8, num_rx / 2, config->fifo_depth); in can_ram_get_layout() 131 num_tx = min_t(u8, ring->tx_pending, num_tx); in can_ram_get_layout() 142 max = min_t(u8, num_tx / 2, config->fifo_depth); in can_ram_get_layout()
|
/linux-6.12.1/drivers/scsi/snic/ |
D | snic_res.c | 49 c->wq_enet_desc_count = min_t(u32, in snic_get_vnic_config() 57 c->maxdatafieldsize = min_t(u32, in snic_get_vnic_config() 63 c->io_throttle_count = min_t(u32, in snic_get_vnic_config() 69 c->port_down_timeout = min_t(u32, in snic_get_vnic_config() 73 c->port_down_io_retries = min_t(u32, in snic_get_vnic_config() 77 c->luns_per_tgt = min_t(u32, in snic_get_vnic_config() 83 c->intr_timer = min_t(u32, VNIC_INTR_TIMER_MAX, c->intr_timer); in snic_get_vnic_config()
|
/linux-6.12.1/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-main.c | 237 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-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fwil.c | 108 len = min_t(uint, len, BRCMF_DCMD_MAXLEN); in brcmf_fil_cmd_data() 138 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_set() 158 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_get() 199 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_set() 241 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_get() 306 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_set() 347 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_get() 387 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_set() 427 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_get()
|
/linux-6.12.1/fs/romfs/ |
D | storage.c | 47 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-6.12.1/fs/verity/ |
D | read_metadata.c | 40 min_t(unsigned long, last_index - index + 1, in fsverity_read_merkle_tree() 42 unsigned int bytes_to_copy = min_t(u64, end_offset - offset, in fsverity_read_merkle_tree() 89 length = min_t(size_t, length, src_length); in fsverity_read_buffer() 178 length = min_t(u64, arg.length, INT_MAX); in fsverity_ioctl_read_metadata()
|
/linux-6.12.1/drivers/base/regmap/ |
D | regmap-spmi.c | 122 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-6.12.1/drivers/auxdisplay/ |
D | ks0108.c | 78 ks0108_writedata(min_t(unsigned char, startline, 63) | bit(6) | in ks0108_startline() 84 ks0108_writedata(min_t(unsigned char, address, 63) | bit(6)); in ks0108_address() 89 ks0108_writedata(min_t(unsigned char, page, 7) | bit(3) | bit(4) | in ks0108_page()
|
/linux-6.12.1/include/linux/net/intel/libie/ |
D | rx.h | 14 #define LIBIE_RX_BUF_LEN(hr) min_t(u32, LIBETH_RX_PAGE_LEN(hr), \ 21 min_t(u32, __LIBIE_MAX_RX_FRM_LEN, LIBIE_RX_BUF_LEN(hr) * 5)
|
/linux-6.12.1/drivers/vfio/pci/ |
D | vfio_pci_igd.c | 76 count = min_t(size_t, count, vdev->region[i].size - pos); in vfio_pci_igd_rw() 81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); in vfio_pci_igd_rw() 91 size_t bytes = min_t(size_t, remaining, in vfio_pci_igd_rw() 109 size_t bytes = min_t(size_t, remaining, OPREGION_RVDA - pos); in vfio_pci_igd_rw() 119 size_t bytes = min_t(size_t, remaining, in vfio_pci_igd_rw() 132 size_t bytes = min_t(size_t, remaining, OPREGION_SIZE - pos); in vfio_pci_igd_rw()
|
/linux-6.12.1/fs/hfsplus/ |
D | bnode.c | 31 l = min_t(int, len, PAGE_SIZE - off); in hfs_bnode_read() 36 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_read() 82 l = min_t(int, len, PAGE_SIZE - off); in hfs_bnode_write() 88 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_write() 110 l = min_t(int, len, PAGE_SIZE - off); in hfs_bnode_clear() 115 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_clear() 138 l = min_t(int, len, PAGE_SIZE - src); in hfs_bnode_copy() 143 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_copy() 245 l = min_t(int, len, PAGE_SIZE - src); in hfs_bnode_move() 255 l = min_t(int, len, PAGE_SIZE); in hfs_bnode_move() [all …]
|
/linux-6.12.1/net/nfc/nci/ |
D | ntf.c | 118 nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE); in nci_extract_rf_params_nfca_passive_poll() 143 nfcb_poll->sensb_res_len = min_t(__u8, *data++, NFC_SENSB_RES_MAXSIZE); in nci_extract_rf_params_nfcb_passive_poll() 159 nfcf_poll->sensf_res_len = min_t(__u8, *data++, NFC_SENSF_RES_MAXSIZE); in nci_extract_rf_params_nfcf_passive_poll() 187 nfcf_listen->local_nfcid2_len = min_t(__u8, *data++, in nci_extract_rf_params_nfcf_passive_listen() 405 nfca_poll->rats_res_len = min_t(__u8, *data++, 20); in nci_extract_activation_params_iso_dep() 415 nfcb_poll->attrib_res_len = min_t(__u8, *data++, 50); in nci_extract_activation_params_iso_dep() 443 poll->atr_res_len = min_t(__u8, *data++, in nci_extract_activation_params_nfc_dep() 453 listen->atr_req_len = min_t(__u8, *data++, in nci_extract_activation_params_nfc_dep() 503 ndev->remote_gb_len = min_t(__u8, in nci_store_general_bytes_nfc_dep() 515 ndev->remote_gb_len = min_t(__u8, in nci_store_general_bytes_nfc_dep()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_fru_eeprom.c | 211 min_t(size_t, sizeof(fru_info->manufacturer_name), in amdgpu_fru_get_product_info() 221 min_t(size_t, sizeof(fru_info->product_name), pia[addr] & 0x3F)); in amdgpu_fru_get_product_info() 229 min_t(size_t, sizeof(fru_info->product_number), in amdgpu_fru_get_product_info() 241 min_t(size_t, sizeof(fru_info->serial), pia[addr] & 0x3F)); in amdgpu_fru_get_product_info() 252 min_t(size_t, sizeof(fru_info->fru_id), pia[addr] & 0x3F)); in amdgpu_fru_get_product_info()
|
/linux-6.12.1/drivers/crypto/nx/ |
D | nx-aes-gcm.c | 122 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()
|
D | nx-sha256.c | 92 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha256_update() 94 max_sg_len = min_t(u64, max_sg_len, in nx_sha256_update() 132 to_process = min_t(u64, total, in nx_sha256_update() 194 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha256_final() 196 max_sg_len = min_t(u64, max_sg_len, in nx_sha256_final()
|
D | nx-sha512.c | 92 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_update() 94 max_sg_len = min_t(u64, max_sg_len, in nx_sha512_update() 131 to_process = min_t(u64, total, in nx_sha512_update() 198 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_final() 200 max_sg_len = min_t(u64, max_sg_len, in nx_sha512_final()
|
/linux-6.12.1/lib/ |
D | bucket_locks.c | 27 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-6.12.1/drivers/ufs/host/ |
D | ufshcd-pltfrm.c | 360 min_host_gear = min_t(u32, host_params->hs_rx_gear, in ufshcd_negotiate_pwr_params() 363 min_host_gear = min_t(u32, host_params->pwm_rx_gear, in ufshcd_negotiate_pwr_params() 400 agreed_pwr->lane_tx = min_t(u32, dev_max->lane_tx, in ufshcd_negotiate_pwr_params() 402 agreed_pwr->lane_rx = min_t(u32, dev_max->lane_rx, in ufshcd_negotiate_pwr_params() 406 min_dev_gear = min_t(u32, dev_max->gear_rx, dev_max->gear_tx); in ufshcd_negotiate_pwr_params() 419 min_t(u32, min_dev_gear, min_host_gear); in ufshcd_negotiate_pwr_params()
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_cpplib.c | 173 incr = min_t(int, 16 * width_read, 128); in nfp_cpp_explicit_read() 174 incr = min_t(int, incr, len); in nfp_cpp_explicit_read() 226 incr = min_t(int, 16 * width_write, 128); in nfp_cpp_explicit_write() 227 incr = min_t(int, incr, len); in nfp_cpp_explicit_write()
|
/linux-6.12.1/drivers/net/wireless/ath/ath12k/ |
D | reg.c | 412 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath12k_reg_intersect_rules() 416 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath12k_reg_intersect_rules() 418 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath12k_reg_intersect_rules() 421 min_t(u32, rule1->power_rule.max_antenna_gain, in ath12k_reg_intersect_rules() 424 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath12k_reg_intersect_rules() 512 bw = min_t(u16, bw, max_bw); in ath12k_reg_adjust_bw() 664 max_bw = min_t(u16, reg_rule->max_bw, in ath12k_reg_build_regd() 670 max_bw = min_t(u16, reg_rule->max_bw, in ath12k_reg_build_regd() 684 max_bw = min_t(u16, reg_rule->max_bw, in ath12k_reg_build_regd()
|
/linux-6.12.1/drivers/usb/misc/ |
D | usb251xb.c | 511 hub->max_power_sp = min_t(u8, property_u32 / 2000, 50); in usb251xb_get_ofdata() 516 hub->max_power_bp = min_t(u8, property_u32 / 2000, 255); in usb251xb_get_ofdata() 521 hub->max_current_sp = min_t(u8, property_u32 / 2000, 50); in usb251xb_get_ofdata() 526 hub->max_current_bp = min_t(u8, property_u32 / 2000, 255); in usb251xb_get_ofdata() 530 hub->power_on_time = min_t(u8, property_u32 / 2, 255); in usb251xb_get_ofdata() 543 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata() 552 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata() 562 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata()
|
/linux-6.12.1/drivers/net/wireless/ath/ath11k/ |
D | reg.c | 408 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules() 412 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath11k_reg_intersect_rules() 414 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules() 417 min_t(u32, rule1->power_rule.max_antenna_gain, in ath11k_reg_intersect_rules() 420 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath11k_reg_intersect_rules() 427 new_rule->psd = min_t(s8, rule1->psd, rule2->psd); in ath11k_reg_intersect_rules() 516 bw = min_t(u16, bw, max_bw); in ath11k_reg_adjust_bw() 583 end_freq = min_t(u32, reg_rule->end_freq, ETSI_WEATHER_RADAR_BAND_HIGH); in ath11k_reg_update_weather_radar_band() 717 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd() 723 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd() [all …]
|
/linux-6.12.1/net/ceph/ |
D | pagevec.c | 71 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()
|