Home
last modified time | relevance | path

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

12345678910>>...73

/linux-6.1.9/drivers/scsi/fnic/
Dfnic_res.c62 min_t(u32, VNIC_FNIC_WQ_DESCS_MAX, in fnic_get_vnic_config()
68 min_t(u32, VNIC_FNIC_WQ_COPY_DESCS_MAX, in fnic_get_vnic_config()
74 min_t(u32, VNIC_FNIC_RQ_DESCS_MAX, in fnic_get_vnic_config()
80 min_t(u16, VNIC_FNIC_MAXDATAFIELDSIZE_MAX, in fnic_get_vnic_config()
84 min_t(u32, VNIC_FNIC_EDTOV_MAX, in fnic_get_vnic_config()
89 min_t(u32, VNIC_FNIC_RATOV_MAX, in fnic_get_vnic_config()
94 min_t(u32, VNIC_FNIC_FLOGI_RETRIES_MAX, c->flogi_retries); in fnic_get_vnic_config()
97 min_t(u32, VNIC_FNIC_FLOGI_TIMEOUT_MAX, in fnic_get_vnic_config()
102 min_t(u32, VNIC_FNIC_PLOGI_RETRIES_MAX, c->plogi_retries); in fnic_get_vnic_config()
105 min_t(u32, VNIC_FNIC_PLOGI_TIMEOUT_MAX, in fnic_get_vnic_config()
[all …]
/linux-6.1.9/drivers/gpu/drm/vkms/
Dvkms_formats.c50 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in ARGB8888_to_argb_u16()
72 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in XRGB8888_to_argb_u16()
89 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in ARGB16161616_to_argb_u16()
106 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in XRGB16161616_to_argb_u16()
122 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in RGB565_to_argb_u16()
155 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_ARGB8888()
182 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_XRGB8888()
199 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_ARGB16161616()
216 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_XRGB16161616()
233 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_RGB565()
/linux-6.1.9/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-ram.c17 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()
110 max = min_t(u8, num_rx / 2, config->fifo_depth); in can_ram_get_layout()
122 num_tx = min_t(u8, ring->tx_pending, num_tx); in can_ram_get_layout()
133 max = min_t(u8, num_tx / 2, config->fifo_depth); in can_ram_get_layout()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c304 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.1.9/drivers/scsi/snic/
Dsnic_res.c49 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.1.9/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-6.1.9/drivers/ufs/host/
Dufshcd-pltfrm.c237 min_pltfrm_gear = min_t(u32, pltfrm_param->hs_rx_gear, in ufshcd_get_pwr_dev_param()
240 min_pltfrm_gear = min_t(u32, pltfrm_param->pwm_rx_gear, in ufshcd_get_pwr_dev_param()
278 agreed_pwr->lane_tx = min_t(u32, dev_max->lane_tx, in ufshcd_get_pwr_dev_param()
280 agreed_pwr->lane_rx = min_t(u32, dev_max->lane_rx, in ufshcd_get_pwr_dev_param()
284 min_dev_gear = min_t(u32, dev_max->gear_rx, dev_max->gear_tx); in ufshcd_get_pwr_dev_param()
297 min_t(u32, min_dev_gear, min_pltfrm_gear); in ufshcd_get_pwr_dev_param()
/linux-6.1.9/drivers/auxdisplay/
Dks0108.c78 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.1.9/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-6.1.9/fs/verity/
Dread_metadata.c40 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.1.9/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-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfwil.c108 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()
157 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_cmd_data_get()
227 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_set()
268 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_iovar_data_get()
352 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_set()
392 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_get()
453 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_set()
492 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_get()
/linux-6.1.9/drivers/vfio/pci/
Dvfio_pci_igd.c76 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.1.9/fs/hfsplus/
Dbnode.c31 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.1.9/net/nfc/nci/
Dntf.c118 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.1.9/fs/btrfs/
Dzstd.c408 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
420 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
465 workspace->out_buf.size = min_t(size_t, max_out, in zstd_compress_pages()
485 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
522 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
564 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
608 workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); in zstd_decompress_bio()
638 destlen = min_t(size_t, destlen, PAGE_SIZE); in zstd_decompress()
682 bytes = min_t(unsigned long, destlen - pg_offset, in zstd_decompress()
Dlzo.c167 u32 copy_len = min_t(u32, sectorsize - *cur_out % sectorsize, in copy_compressed_data_to_page()
249 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_pages()
314 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in), in copy_compressed_segment()
353 if (len_in > min_t(size_t, BTRFS_MAX_COMPRESSED, cb->compressed_len) || in lzo_decompress_bio()
472 destlen = min_t(unsigned long, destlen, PAGE_SIZE); in lzo_decompress()
473 bytes = min_t(unsigned long, destlen, out_len - start_byte); in lzo_decompress()
/linux-6.1.9/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.c92 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()
Dnx-sha512.c92 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.1.9/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-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_cpplib.c173 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.1.9/drivers/net/wireless/ath/ath11k/
Dreg.c399 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules()
403 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath11k_reg_intersect_rules()
405 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules()
408 min_t(u32, rule1->power_rule.max_antenna_gain, in ath11k_reg_intersect_rules()
411 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath11k_reg_intersect_rules()
502 bw = min_t(u16, bw, max_bw); in ath11k_reg_adjust_bw()
568 end_freq = min_t(u32, reg_rule->end_freq, ETSI_WEATHER_RADAR_BAND_HIGH); in ath11k_reg_update_weather_radar_band()
653 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
659 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
/linux-6.1.9/drivers/usb/misc/
Dusb251xb.c518 hub->max_power_sp = min_t(u8, property_u32 / 2000, 50); in usb251xb_get_ofdata()
523 hub->max_power_bp = min_t(u8, property_u32 / 2000, 255); in usb251xb_get_ofdata()
528 hub->max_current_sp = min_t(u8, property_u32 / 2000, 50); in usb251xb_get_ofdata()
533 hub->max_current_bp = min_t(u8, property_u32 / 2000, 255); in usb251xb_get_ofdata()
537 hub->power_on_time = min_t(u8, property_u32 / 2, 255); in usb251xb_get_ofdata()
550 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata()
559 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata()
569 len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); in usb251xb_get_ofdata()
/linux-6.1.9/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()

12345678910>>...73