Home
last modified time | relevance | path

Searched refs:max_t (Results 1 – 25 of 81) sorted by relevance

1234

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dminmax.h58 #define max_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/axgbe/
H A Dxgbe-dcb.c155 max_tc = max_t(u8, max_tc, ets->prio_tc[i]);
157 max_tc = max_t(u8, max_tc, i);
H A Dxgbe_osdep.h203 #define max_t(t, a, b) MAX((t)(a), (t)(b)) macro
/freebsd/contrib/ofed/libmlx5/
H A Dconfig.h8 #define max_t(type, x, y) ({ \ macro
/freebsd/sys/dev/enic/
H A Denic_res.c83 max_t(u32, ENIC_MIN_WQ_DESCS, in enic_get_vnic_config()
89 max_t(u32, ENIC_MIN_RQ_DESCS, in enic_get_vnic_config()
H A Denic_compat.h60 #define max_t(type, x, y) ({ \ macro
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmcu.c15 len = max_t(int, len, data_len); in __mt76_mcu_msg_alloc()
H A Dmt76x02_util.c119 delta_off = max_t(u8, *delay_off / 10, 1); in mt76x02_led_set_blink()
120 delta_on = max_t(u8, *delay_on / 10, 1); in mt76x02_led_set_blink()
557 dev->coverage_class = max_t(s16, coverage_class, 0); in mt76x02_set_coverage_class()
H A Dmt76x02_mac.c455 nss = max_t(int, nss - 1, 1); in mt76x02_tx_rate_fallback()
470 rates[1].idx = max_t(int, rates[0].idx - 1, 0); in mt76x02_tx_rate_fallback()
513 info->status.rates[i].count = max_t(int, retry, 1); in mt76x02_mac_fill_tx_status()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dreg.c410 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath11k_reg_intersect_rules()
431 new_rule->dfs_cac_ms = max_t(u32, rule1->dfs_cac_ms, in ath11k_reg_intersect_rules()
579 start_freq = max_t(u32, reg_rule->start_freq, in ath11k_reg_update_weather_radar_band()
/freebsd/sys/dev/cxgb/
H A Dcxgb_osdep.h134 #define max_t(type, a, b) (type)max((a), (b)) macro
/freebsd/contrib/ofed/libirdma/
H A Dosdep.h73 #define WQ_UNBOUND_MAX_ACTIVE max_t(int, 512, num_possible_cpus() * 4)
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dinit.c365 delta_off = max_t(u8, *delay_off / 10, 1); in mt7603_led_set_blink()
366 delta_on = max_t(u8, *delay_on / 10, 1); in mt7603_led_set_blink()
/freebsd/sys/dev/irdma/
H A Dosdep.h80 #define WQ_UNBOUND_MAX_ACTIVE max_t(int, 512, num_possible_cpus() * 4)
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dtx.c544 slots_num = max_t(u32, IWL_CMD_QUEUE_SIZE, in iwl_pcie_tx_alloc()
547 slots_num = max_t(u32, IWL_DEFAULT_QUEUE_SIZE, in iwl_pcie_tx_alloc()
598 slots_num = max_t(u32, IWL_CMD_QUEUE_SIZE, in iwl_pcie_tx_init()
601 slots_num = max_t(u32, IWL_DEFAULT_QUEUE_SIZE, in iwl_pcie_tx_init()
H A Dtrans-gen2.c234 int queue_size = max_t(u32, IWL_CMD_QUEUE_SIZE, in iwl_pcie_gen2_nic_init()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dinit.c509 delta_off = max_t(u8, *delay_off / 10, 1); in mt7615_led_set_blink()
510 delta_on = max_t(u8, *delay_on / 10, 1); in mt7615_led_set_blink()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dreg.c372 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1,
393 new_rule->dfs_cac_ms = max_t(u32, rule1->dfs_cac_ms,
/freebsd/sys/dev/qlnx/qlnxe/
H A Dbcm_osal.h123 #define max_t(type, val1, val2) \ macro
428 #define OSAL_MAX_T(type, __max1, __max2) max_t(type, __max1, __max2)
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_res.c685 res_cnt = max_t(u32, BNXT_QPLIB_MAX_QPC_COUNT + 1, dattr->max_qp); in bnxt_qplib_alloc_reftbls()
694 res_cnt = max_t(u32, max_cq, dattr->max_cq); in bnxt_qplib_alloc_reftbls()
700 res_cnt = max_t(u32, BNXT_QPLIB_MAX_SRQC_COUNT, dattr->max_cq); in bnxt_qplib_alloc_reftbls()
H A Dqplib_sp.h428 *max_sgid = max_t(u32, 256, *max_sgid); in bnxt_re_set_max_gid()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_port_buffer.c136 speed = max_t(u32, speed, SPEED_40000); in calculate_xoff()
/freebsd/sys/dev/ena/
H A Dena.h517 #define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max)
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt.h273 #define max_t(type, x, y) ({ \ macro
278 #define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max)
/freebsd/sys/contrib/ena-com/
H A Dena_plat.h228 #define max_t(type, _x, _y) ((type)(_x) > (type)(_y) ? (type)(_x) : (type)(_y)) macro

1234