| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/ |
| H A 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() 314 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_set() 355 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_bsscfg_data_get() 395 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_set() 435 min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); in brcmf_fil_xtlv_data_get()
|
| H A D | bcmsdh.c | 425 max_seg_cnt = min_t(unsigned short, sdiodev->max_segment_count, in brcmf_sdiod_sglist_rw() 677 dsize = min_t(uint, SBSDIO_SB_OFT_ADDR_LIMIT, size); in brcmf_sdiod_ramrw() 733 dsize = min_t(uint, SBSDIO_SB_OFT_ADDR_LIMIT, size); in brcmf_sdiod_ramrw() 766 max_blocks = min_t(uint, host->max_blk_count, 511u); in brcmf_sdiod_sgtable_alloc() 767 sdiodev->max_request_size = min_t(uint, host->max_req_size, in brcmf_sdiod_sgtable_alloc() 769 sdiodev->max_segment_count = min_t(uint, host->max_segs, in brcmf_sdiod_sgtable_alloc()
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | reg.c | 412 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() 431 new_rule->psd = min_t(s8, rule1->psd, rule2->psd); in ath11k_reg_intersect_rules() 520 bw = min_t(u16, bw, max_bw); in ath11k_reg_adjust_bw() 587 end_freq = min_t(u32, reg_rule->end_freq, ETSI_WEATHER_RADAR_BAND_HIGH); in ath11k_reg_update_weather_radar_band() 721 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd() 727 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd() [all …]
|
| /freebsd/sys/dev/enic/ |
| H A D | enic_res.c | 82 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 D | enic_compat.h | 55 #define min_t(type, x, y) ({ \ macro
|
| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A D | mt76x02_txrx.c | 98 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()
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | minmax.h | 53 #define min_t(type, x, y) ({ \ macro 66 #define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max)
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | eeprom.c | 240 *nss = min_t(u8, *nss, STREAM_CAP(1 + band_offs)); in mt7996_eeprom_parse_efuse_hw_cap() 241 *path = min_t(u8, *path, STREAM_CAP(10 + band_offs)); in mt7996_eeprom_parse_efuse_hw_cap() 242 *rx_path = min_t(u8, *rx_path, STREAM_CAP(19 + band_offs)); in mt7996_eeprom_parse_efuse_hw_cap() 307 nss = min_t(u8, nss, path); in mt7996_eeprom_parse_hw_cap()
|
| H A D | mcu.c | 1626 bf->ncol = min_t(u8, bf->nrow, n); in mt7996_mcu_sta_bfer_ht() 1627 bf->ibf_ncol = explicit ? min_t(u8, MT7996_IBF_MAX_NC, bf->ncol) : in mt7996_mcu_sta_bfer_ht() 1628 min_t(u8, MT7996_IBF_MAX_NC, n); in mt7996_mcu_sta_bfer_ht() 1653 bf->nrow = min_t(u8, min_t(u8, snd_dim, sts), tx_ant); in mt7996_mcu_sta_bfer_vht() 1654 bf->ncol = min_t(u8, nss_mcs, bf->nrow); in mt7996_mcu_sta_bfer_vht() 1655 bf->ibf_ncol = min_t(u8, MT7996_IBF_MAX_NC, bf->ncol); in mt7996_mcu_sta_bfer_vht() 1661 bf->ncol = min_t(u8, nss_mcs, bf->nrow); in mt7996_mcu_sta_bfer_vht() 1662 bf->ibf_ncol = min_t(u8, MT7996_IBF_MAX_NC, nss_mcs); in mt7996_mcu_sta_bfer_vht() 1698 bf->nrow = min_t(u8, snd_dim, sts); in mt7996_mcu_sta_bfer_he() 1699 bf->ncol = min_t(u8, nss_mcs, bf->nrow); in mt7996_mcu_sta_bfer_he() [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_mem.c | 59 m = min_t(unsigned long, max_page_shift - PAGE_SHIFT, m); in mlx5_ib_cont_pages() 81 m = min_t(unsigned long, order_base_2(i), m); in mlx5_ib_cont_pages()
|
| /freebsd/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_fs_counters.c | 144 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()
|
| /freebsd/sys/dev/cxgbe/cudbg/ |
| H A D | cudbg_lib.h | 31 #ifndef min_t 32 #define min_t(type, _a, _b) (((type)(_a) < (type)(_b)) ? (type)(_a) : (type)(_b)) macro
|
| /freebsd/sys/dev/mlxfw/ |
| H A D | mlxfw_fsm.c | 123 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/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | eeprom.c | 244 path = min_t(u8, path, 2); in mt7915_eeprom_parse_hw_cap() 261 nss = min_t(u8, min_t(u8, nss_max, nss), path); in mt7915_eeprom_parse_hw_cap()
|
| /freebsd/contrib/ofed/libmlx5/ |
| H A D | config.h | 3 #define min_t(type, x, y) ({ \ macro
|
| /freebsd/contrib/ofed/libibverbs/ |
| H A D | config.h | 20 #define min_t(type, x, y) ({ \ macro
|
| /freebsd/sys/contrib/xz-embedded/freebsd/ |
| H A D | xz_config.h | 68 #define min_t(type, x, y) min((x), (y)) macro
|
| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmsmac/ |
| H A D | ampdu.c | 295 scb_ampdu->release = min_t(u8, scb_ampdu->max_pdu, in brcms_c_scb_ampdu_update_config() 299 scb_ampdu->release = min_t(u8, scb_ampdu->release, in brcms_c_scb_ampdu_update_config() 321 max_mpdu = min_t(u8, fifo->mcs2ampdu_table[FFPLD_MAX_MCS], in brcms_c_ffpld_calc_mcs2ampdu_table() 338 tmp = min_t(u32, tmp, 255); in brcms_c_ffpld_calc_mcs2ampdu_table() 392 max_mpdu = min_t(u8, fifo->mcs2ampdu_table[FFPLD_MAX_MCS], in brcms_c_ffpld_check_txfunfl() 573 min_t(u16, f->mcs2ampdu_table[mcs], in brcms_c_ampdu_add_frame()
|
| /freebsd/sys/dev/ena/ |
| H A D | ena.c | 2638 io_rx_num = min_t(int, max_queue_ext->max_rx_sq_num, in ena_calc_max_io_queue_num() 2648 io_rx_num = min_t(int, io_tx_sq_num, io_tx_cq_num); in ena_calc_max_io_queue_num() 2655 max_num_io_queues = min_t(uint32_t, mp_ncpus, ENA_MAX_NUM_IO_QUEUES); in ena_calc_max_io_queue_num() 2656 max_num_io_queues = min_t(uint32_t, max_num_io_queues, io_rx_num); in ena_calc_max_io_queue_num() 2657 max_num_io_queues = min_t(uint32_t, max_num_io_queues, io_tx_sq_num); in ena_calc_max_io_queue_num() 2658 max_num_io_queues = min_t(uint32_t, max_num_io_queues, io_tx_cq_num); in ena_calc_max_io_queue_num() 2660 max_num_io_queues = min_t(uint32_t, max_num_io_queues, in ena_calc_max_io_queue_num() 2663 max_num_io_queues = min_t(uint32_t, max_num_io_queues, in ena_calc_max_io_queue_num() 2814 max_rx_queue_size = min_t(uint32_t, in ena_calc_io_queue_size() 2821 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 D | ib_umem_odp.c | 566 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 D | ib_uverbs_std_types_flow_action.c | 162 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/contrib/xz-embedded/userspace/ |
| H A D | xz_config.h | 56 #define min_t(type, x, y) min(x, y) macro
|
| /freebsd/sys/dev/mlx4/mlx4_core/ |
| H A D | mlx4_profile.c | 110 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 D | qplib_rcfw.c | 271 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()
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | reg.c | 527 bw = min_t(u16, bw, max_bw); 741 max_bw = min_t(u16, reg_rule->max_bw, 748 max_bw = min_t(u16, reg_rule->max_bw, 763 max_bw = min_t(u16, reg_rule->max_bw, max_bw_6ghz);
|