Home
last modified time | relevance | path

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

1234567

/freebsd/sys/contrib/dev/athk/ath11k/
H A Dreg.c412 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules()
416 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath11k_reg_intersect_rules()
418 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules()
421 min_t(u32, rule1->power_rule.max_antenna_gain, in ath11k_reg_intersect_rules()
424 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath11k_reg_intersect_rules()
515 bw = min_t(u16, bw, max_bw); in ath11k_reg_adjust_bw()
581 end_freq = min_t(u32, reg_rule->end_freq, ETSI_WEATHER_RADAR_BAND_HIGH); in ath11k_reg_update_weather_radar_band()
672 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
678 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
693 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dreg.c374 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2);
378 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz,
380 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff);
383 min_t(u32, rule1->power_rule.max_antenna_gain,
386 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp,
474 bw = min_t(u16, bw, max_bw);
626 max_bw = min_t(u16, reg_rule->max_bw,
632 max_bw = min_t(u16, reg_rule->max_bw,
646 max_bw = min_t(u16, reg_rule->max_bw,
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dminmax.h53 #define min_t(type, x, y) ({ \ macro
63 #define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max)
/freebsd/sys/dev/enic/
H A Denic_res.c82 min_t(u32, ENIC_MAX_WQ_DESCS, in enic_get_vnic_config()
88 min_t(u32, ENIC_MAX_RQ_DESCS, in enic_get_vnic_config()
93 c->intr_timer_usec = min_t(u32, c->intr_timer_usec, in enic_get_vnic_config()
H A Denic_compat.h55 #define min_t(type, x, y) ({ \ macro
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_txrx.c98 txpwr = min_t(s8, txpwr, dev->txpower_conf); in mt76x02_tx_get_txpwr_adj()
100 txpwr = min_t(s8, txpwr, max_txpwr_adj); in mt76x02_tx_get_txpwr_adj()
105 return min_t(s8, txpwr, 7); in mt76x02_tx_get_txpwr_adj()
H A Dmcu.c121 cur_len = min_t(int, max_len, len); in __mt76_mcu_send_firmware()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c59 m = min_t(unsigned long, max_page_shift - PAGE_SHIFT, m); in mlx5_ib_cont_pages()
81 m = min_t(unsigned long, ilog2(roundup_pow_of_two(i)), m); in mlx5_ib_cont_pages()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Deeprom.c212 path = min_t(u8, path, 2); in mt7915_eeprom_parse_hw_cap()
229 nss = min_t(u8, min_t(u8, nss_max, nss), path); in mt7915_eeprom_parse_hw_cap()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fs_counters.c144 return min_t(int, MLX5_INIT_COUNTERS_BULK, in get_init_bulk_query_len()
150 return min_t(int, MLX5_SW_MAX_COUNTERS_BULK, in get_max_bulk_query_len()
188 bulk_len = min_t(int, cur_bulk_len, in mlx5_fc_stats_query_counter_range()
517 fc_stats->sampling_interval = min_t(unsigned long, interval, in mlx5_fc_update_sampling_interval()
652 fc_pool->threshold = min_t(int, MLX5_FC_POOL_MAX_THRESHOLD, in mlx5_fc_pool_update_threshold()
H A Dmlx5_cmd.c759 dump_len = min_t(int, in dump_command()
1052 delta = min_t(size_t, size, sizeof(to->first.data)); in mlx5_copy_to_msg()
1062 delta = min_t(size_t, size, MLX5_CMD_DATA_BLOCK_SIZE); in mlx5_copy_to_msg()
1078 delta = min_t(size_t, size, sizeof(from->first.data)); in mlx5_copy_from_msg()
1088 delta = min_t(size_t, size, MLX5_CMD_DATA_BLOCK_SIZE); in mlx5_copy_from_msg()
1104 blen = size - min_t(size_t, sizeof(msg->first.data), size); in mlx5_alloc_cmd_msg()
/freebsd/sys/dev/mlxfw/
H A Dmlxfw_fsm.c123 comp_max_size = min_t(u32, comp_max_size, MLXFW_FSM_MAX_COMPONENT_SIZE); in mlxfw_flash_component()
150 block_size = (u16) min_t(u32, comp->data_size - offset, in mlxfw_flash_component()
/freebsd/sys/dev/cxgbe/cudbg/
H A Dcudbg_lib.h31 #ifndef min_t
32 #define min_t(type, _a, _b) (((type)(_a) < (type)(_b)) ? (type)(_a) : (type)(_b)) macro
/freebsd/contrib/ofed/libibverbs/
H A Dconfig.h21 #define min_t(type, x, y) ({ \ macro
/freebsd/contrib/ofed/libmlx5/
H A Dconfig.h3 #define min_t(type, x, y) ({ \ macro
/freebsd/sys/contrib/xz-embedded/freebsd/
H A Dxz_config.h68 #define min_t(type, x, y) min((x), (y)) macro
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Deeprom.c180 nss = min_t(u8, min_t(u8, 4, nss), path); in mt7996_eeprom_parse_hw_cap()
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dtx-gen2.c174 copy = min_t(int, TFD_MAX_PAYLOAD_SIZE - cmd_pos, cmd->len[i]); in iwl_pcie_gen2_enqueue_hcmd()
196 tb0_size = min_t(int, copy_size, IWL_FIRST_TB_SIZE); in iwl_pcie_gen2_enqueue_hcmd()
/freebsd/sys/contrib/xz-embedded/userspace/
H A Dxz_config.h56 #define min_t(type, x, y) min(x, y) macro
/freebsd/sys/dev/ena/
H A Dena.c2566 io_rx_num = min_t(int, max_queue_ext->max_rx_sq_num, in ena_calc_max_io_queue_num()
2576 io_rx_num = min_t(int, io_tx_sq_num, io_tx_cq_num); in ena_calc_max_io_queue_num()
2588 max_num_io_queues = min_t(uint32_t, max_num_io_queues, in ena_calc_max_io_queue_num()
2591 max_num_io_queues = min_t(uint32_t, max_num_io_queues, in ena_calc_max_io_queue_num()
2719 max_rx_queue_size = min_t(uint32_t, in ena_calc_io_queue_size()
2726 max_tx_queue_size = min_t(uint32_t, max_tx_queue_size, in ena_calc_io_queue_size()
2729 max_tx_queue_size = min_t(uint32_t, max_tx_queue_size, in ena_calc_io_queue_size()
2732 ctx->max_tx_sgl_size = min_t(uint16_t, ENA_PKT_MAX_BUFS, in ena_calc_io_queue_size()
2734 ctx->max_rx_sgl_size = min_t(uint16_t, ENA_PKT_MAX_BUFS, in ena_calc_io_queue_size()
2745 max_tx_queue_size = min_t(uint32_t, max_tx_queue_size, in ena_calc_io_queue_size()
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_umem_odp.c566 min_t(size_t, ALIGN(bcnt, PAGE_SIZE) / PAGE_SIZE, in ib_umem_odp_map_dma_pages()
585 bcnt -= min_t(size_t, npages << PAGE_SHIFT, bcnt); in ib_umem_odp_map_dma_pages()
630 bound = min_t(u64, bound, ib_umem_end(umem)); in ib_umem_odp_unmap_dma_pages()
H A Dib_uverbs_std_types_flow_action.c162 val_len = min_t(size_t, len, sizeof(user_val.ipv4)); in parse_esp_ip()
176 val_len = min_t(size_t, len, sizeof(user_val.ipv6)); in parse_esp_ip()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_profile.c110 min_t(unsigned, dev_cap->max_eqs, MAX_MSIX); in mlx4_make_profile()
201 min_t(unsigned, in mlx4_make_profile()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_rcfw.c271 memcpy(cmdqe, preq, min_t(u32, bsize, sizeof(*cmdqe))); in __send_message_no_waiter()
272 preq += min_t(u32, bsize, sizeof(*cmdqe)); in __send_message_no_waiter()
273 bsize -= min_t(u32, bsize, sizeof(*cmdqe)); in __send_message_no_waiter()
364 memcpy(cmdqe, preq, min_t(u32, bsize, sizeof(*cmdqe))); in __send_message()
365 preq += min_t(u32, bsize, sizeof(*cmdqe)); in __send_message()
366 bsize -= min_t(u32, bsize, sizeof(*cmdqe)); in __send_message()
H A Dqplib_sp.c116 attr->max_qp = min_t(u32, attr->max_qp, BNXT_RE_MAX_QP_SUPPORTED(chip_gen)); in bnxt_qplib_get_dev_attr()
146 attr->max_cq = min_t(u32, attr->max_cq, BNXT_RE_MAX_CQ_SUPPORTED(chip_gen)); in bnxt_qplib_get_dev_attr()
149 attr->max_cq_wqes = min_t(u32, BNXT_QPLIB_MAX_CQ_WQES, attr->max_cq_wqes); in bnxt_qplib_get_dev_attr()
153 attr->max_mr = min_t(u32, attr->max_mr, BNXT_RE_MAX_MRW_SUPPORTED(chip_gen)); in bnxt_qplib_get_dev_attr()
155 attr->max_mw = min_t(u32, attr->max_mw, BNXT_RE_MAX_MRW_SUPPORTED(chip_gen)); in bnxt_qplib_get_dev_attr()
161 attr->max_ah = min_t(u32, attr->max_ah, BNXT_RE_MAX_AH_SUPPORTED(chip_gen)); in bnxt_qplib_get_dev_attr()
167 attr->max_srq = min_t(u32, attr->max_srq, BNXT_RE_MAX_SRQ_SUPPORTED(chip_gen)); in bnxt_qplib_get_dev_attr()

1234567