Home
last modified time | relevance | path

Searched refs:maxrate (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c437 struct ieee_maxrate *maxrate) in mlxsw_sp_dcbnl_ieee_getmaxrate() argument
441 memcpy(maxrate, mlxsw_sp_port->dcb.maxrate, sizeof(*maxrate)); in mlxsw_sp_dcbnl_ieee_getmaxrate()
447 struct ieee_maxrate *maxrate) in mlxsw_sp_dcbnl_ieee_setmaxrate() argument
450 struct ieee_maxrate *my_maxrate = mlxsw_sp_port->dcb.maxrate; in mlxsw_sp_dcbnl_ieee_setmaxrate()
457 maxrate->tc_maxrate[i], 0); in mlxsw_sp_dcbnl_ieee_setmaxrate()
464 memcpy(mlxsw_sp_port->dcb.maxrate, maxrate, sizeof(*maxrate)); in mlxsw_sp_dcbnl_ieee_setmaxrate()
676 mlxsw_sp_port->dcb.maxrate = kmalloc(sizeof(*mlxsw_sp_port->dcb.maxrate), in mlxsw_sp_port_maxrate_init()
678 if (!mlxsw_sp_port->dcb.maxrate) in mlxsw_sp_port_maxrate_init()
682 mlxsw_sp_port->dcb.maxrate->tc_maxrate[i] = MLXSW_REG_QEEC_MAS_DIS; in mlxsw_sp_port_maxrate_init()
689 kfree(mlxsw_sp_port->dcb.maxrate); in mlxsw_sp_port_maxrate_fini()
Dspectrum.h337 struct ieee_maxrate *maxrate; member
686 u8 next_index, u32 maxrate, u8 burst_size);
Dspectrum.c1424 u8 next_index, u32 maxrate, u8 burst_size) in mlxsw_sp_port_ets_maxrate_set() argument
1432 mlxsw_reg_qeec_max_shaper_rate_set(qeec_pl, maxrate); in mlxsw_sp_port_ets_maxrate_set()
/linux-6.6.21/drivers/tty/serial/8250/
D8250_pericom.c57 unsigned int maxrate = port->uartclk / scr; in pericom_do_set_divisor() local
58 unsigned int divisor = max(maxrate / baud, 1U); in pericom_do_set_divisor()
59 int delta = maxrate / divisor - baud; in pericom_do_set_divisor()
61 if (baud > maxrate + baud / 50) in pericom_do_set_divisor()
71 delta = maxrate / divisor - baud; in pericom_do_set_divisor()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c352 ratelimit = ratelimit ?: priv->maxrate; in mlx4_en_config_port_scheduler()
501 struct ieee_maxrate *maxrate) in mlx4_en_dcbnl_ieee_getmaxrate() argument
507 maxrate->tc_maxrate[i] = in mlx4_en_dcbnl_ieee_getmaxrate()
508 priv->maxrate[i] * MLX4_RATELIMIT_UNITS_IN_KB; in mlx4_en_dcbnl_ieee_getmaxrate()
514 struct ieee_maxrate *maxrate) in mlx4_en_dcbnl_ieee_setmaxrate() argument
524 tmp[i] = div_u64(maxrate->tc_maxrate[i] + in mlx4_en_dcbnl_ieee_setmaxrate()
533 memcpy(priv->maxrate, tmp, sizeof(priv->maxrate)); in mlx4_en_dcbnl_ieee_setmaxrate()
Den_netdev.c2700 static int mlx4_en_set_tx_maxrate(struct net_device *dev, int queue_index, u32 maxrate) in mlx4_en_set_tx_maxrate() argument
2711 if (maxrate >> 12) { in mlx4_en_set_tx_maxrate()
2713 params.rate_val = maxrate / 1000; in mlx4_en_set_tx_maxrate()
2714 } else if (maxrate) { in mlx4_en_set_tx_maxrate()
2716 params.rate_val = maxrate; in mlx4_en_set_tx_maxrate()
Dmlx4_en.h628 u16 maxrate[IEEE_8021QAZ_MAX_TCS]; member
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c549 struct ieee_maxrate *maxrate) in mlx5e_dcbnl_ieee_getmaxrate() argument
562 memset(maxrate->tc_maxrate, 0, sizeof(maxrate->tc_maxrate)); in mlx5e_dcbnl_ieee_getmaxrate()
567 maxrate->tc_maxrate[i] = max_bw_value[i] * MLX5E_100MB; in mlx5e_dcbnl_ieee_getmaxrate()
570 maxrate->tc_maxrate[i] = max_bw_value[i] * MLX5E_1GB; in mlx5e_dcbnl_ieee_getmaxrate()
584 struct ieee_maxrate *maxrate) in mlx5e_dcbnl_ieee_setmaxrate() argument
597 if (!maxrate->tc_maxrate[i]) { in mlx5e_dcbnl_ieee_setmaxrate()
601 if (maxrate->tc_maxrate[i] < upper_limit_mbps) { in mlx5e_dcbnl_ieee_setmaxrate()
602 max_bw_value[i] = div_u64(maxrate->tc_maxrate[i], in mlx5e_dcbnl_ieee_setmaxrate()
607 max_bw_value[i] = div_u64(maxrate->tc_maxrate[i], in mlx5e_dcbnl_ieee_setmaxrate()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c85 static void otx2_get_egress_rate_cfg(u64 maxrate, u32 *exp, in otx2_get_egress_rate_cfg() argument
103 if (maxrate) { in otx2_get_egress_rate_cfg()
104 *exp = ilog2(maxrate) ? ilog2(maxrate) - 1 : 0; in otx2_get_egress_rate_cfg()
105 tmp = maxrate - rounddown_pow_of_two(maxrate); in otx2_get_egress_rate_cfg()
106 if (maxrate < MAX_RATE_MANTISSA) in otx2_get_egress_rate_cfg()
118 u64 maxrate, u32 burst) in otx2_get_txschq_rate_regval() argument
126 otx2_get_egress_rate_cfg(maxrate, &exp, &mantissa, &div_exp); in otx2_get_txschq_rate_regval()
146 u32 burst, u64 maxrate) in otx2_set_matchall_egress_rate() argument
165 req->regval[0] = otx2_get_txschq_rate_regval(nic, maxrate, burst); in otx2_set_matchall_egress_rate()
Dqos.h23 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, u64 maxrate, u32 burst);
Dqos.c89 u64 maxrate; in otx2_config_sched_shaping() local
119 maxrate = (node->rate > node->ceil) ? node->rate : node->ceil; in otx2_config_sched_shaping()
122 otx2_get_txschq_rate_regval(pfvf, maxrate, 65536); in otx2_config_sched_shaping()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nic/
Ddcb.c314 struct ieee_maxrate *maxrate) in nfp_nic_dcbnl_ieee_getmaxrate() argument
322 maxrate->tc_maxrate[i] = dcb->tc_maxrate[i]; in nfp_nic_dcbnl_ieee_getmaxrate()
328 struct ieee_maxrate *maxrate) in nfp_nic_dcbnl_ieee_setmaxrate() argument
337 err = nfp_fill_maxrate(nn, maxrate->tc_maxrate); in nfp_nic_dcbnl_ieee_setmaxrate()
/linux-6.6.21/include/linux/pds/
Dpds_core_if.h372 __le32 maxrate; member
412 __le32 maxrate; member
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic.h31 __le32 maxrate; member
Dionic_lif.c2381 vfdata->maxrate = comp.maxrate; in ionic_get_fw_vf_config()
2429 ivf->max_tx_rate = le32_to_cpu(vfdata.maxrate); in ionic_get_vf_config()
2566 vfc.maxrate = cpu_to_le32(tx_max); in ionic_set_vf_rate()
2568 __func__, vf, le32_to_cpu(vfc.maxrate)); in ionic_set_vf_rate()
2572 ionic->vfs[vf].maxrate = cpu_to_le32(tx_max); in ionic_set_vf_rate()
2714 if (v->maxrate) { in ionic_vf_attr_replay()
2716 vfc.maxrate = v->maxrate; in ionic_vf_attr_replay()
2718 vfc.maxrate = 0; in ionic_vf_attr_replay()
Dionic_if.h2011 __le32 maxrate; member
2049 __le32 maxrate; member
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dsched.c59 p->u.params.minrate, p->u.params.maxrate, in t4_sched_class_fw_cmd()
632 p.u.params.maxrate = speed * 1000; /* Mbps to Kbps */ in cxgb4_sched_class_free()
634 p.u.params.maxrate = SCHED_MAX_RATE_KBPS; in cxgb4_sched_class_free()
Dcxgb4_tc_matchall.c198 p.u.params.maxrate = div_u64(entry->police.rate_bytes_ps * 8, 1000); in cxgb4_matchall_alloc_tc()
Dcxgb4_tc_mqprio.c342 p.u.params.maxrate = div_u64(mqprio->max_rate[i] * 8, 1000); in cxgb4_mqprio_alloc_tc()
Dcxgb4.h1252 u32 maxrate; /* maximum rate */ member
2076 u32 minrate, u32 maxrate, u16 weight, u16 pktsize,
/linux-6.6.21/net/dcb/
Ddcbnl.c1164 struct ieee_maxrate maxrate; in dcbnl_ieee_fill() local
1165 memset(&maxrate, 0, sizeof(maxrate)); in dcbnl_ieee_fill()
1166 err = ops->ieee_getmaxrate(netdev, &maxrate); in dcbnl_ieee_fill()
1169 sizeof(maxrate), &maxrate); in dcbnl_ieee_fill()
1588 struct ieee_maxrate *maxrate = in dcbnl_ieee_set() local
1590 err = ops->ieee_setmaxrate(netdev, maxrate); in dcbnl_ieee_set()
/linux-6.6.21/net/wireless/
Dwext-compat.c1275 u32 fixed, maxrate; in cfg80211_wext_siwrate() local
1285 maxrate = (u32)-1; in cfg80211_wext_siwrate()
1292 maxrate = rate->value / 100000; in cfg80211_wext_siwrate()
1306 if (srate->bitrate <= maxrate) { in cfg80211_wext_siwrate()
/linux-6.6.21/drivers/atm/
Diphase.h644 ffreg_t maxrate; /* Maximum rate */ member
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_main.c5813 ice_set_tx_maxrate(struct net_device *netdev, int queue_index, u32 maxrate) in ice_set_tx_maxrate() argument
5822 if (maxrate && (maxrate > (ICE_SCHED_MAX_BW / 1000))) { in ice_set_tx_maxrate()
5824 maxrate, queue_index); in ice_set_tx_maxrate()
5839 if (!maxrate) in ice_set_tx_maxrate()
5844 q_handle, ICE_MAX_BW, maxrate * 1000); in ice_set_tx_maxrate()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c1082 int queue_index, u32 maxrate) in ixgbe_tx_maxrate() argument
1088 if (!maxrate) in ixgbe_tx_maxrate()
1093 bcnrc_val /= maxrate; in ixgbe_tx_maxrate()

12