Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A 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()
H A Dspectrum.h334 struct ieee_maxrate *maxrate; member
686 u8 next_index, u32 maxrate, u8 burst_size);
H A Dspectrum.c1409 u8 next_index, u32 maxrate, u8 burst_size) in mlxsw_sp_port_ets_maxrate_set() argument
1417 mlxsw_reg_qeec_max_shaper_rate_set(qeec_pl, maxrate); in mlxsw_sp_port_ets_maxrate_set()
/linux/drivers/tty/serial/8250/
H A 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/drivers/net/ethernet/mellanox/mlx4/
H A 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()
H A Den_netdev.c2704 static int mlx4_en_set_tx_maxrate(struct net_device *dev, int queue_index, u32 maxrate) in mlx4_en_set_tx_maxrate() argument
2715 if (maxrate >> 12) { in mlx4_en_set_tx_maxrate()
2717 params.rate_val = maxrate / 1000; in mlx4_en_set_tx_maxrate()
2718 } else if (maxrate) { in mlx4_en_set_tx_maxrate()
2720 params.rate_val = maxrate; in mlx4_en_set_tx_maxrate()
H A Dmlx4_en.h630 u16 maxrate[IEEE_8021QAZ_MAX_TCS]; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A 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/drivers/net/ethernet/netronome/nfp/nic/
H A 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/include/linux/pds/
H A Dpds_core_if.h373 __le32 maxrate; member
413 __le32 maxrate; member
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.h23 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, u64 maxrate, u32 burst);
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic.h33 __le32 maxrate; member
H A Dionic_lif.c2373 ivf->max_tx_rate = le32_to_cpu(vfdata->maxrate); in ionic_get_vf_config()
2509 vfc.maxrate = cpu_to_le32(tx_max); in ionic_set_vf_rate()
2511 __func__, vf, le32_to_cpu(vfc.maxrate)); in ionic_set_vf_rate()
2515 ionic->vfs[vf].maxrate = cpu_to_le32(tx_max); in ionic_set_vf_rate()
2657 if (v->maxrate) { in ionic_vf_attr_replay()
2659 vfc.maxrate = v->maxrate; in ionic_vf_attr_replay()
2661 vfc.maxrate = 0; in ionic_vf_attr_replay()
H A Dionic_if.h2105 __le32 maxrate; member
2144 __le32 maxrate; member
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
H A Dcxgb4_tc_matchall.c198 p.u.params.maxrate = div_u64(entry->police.rate_bytes_ps * 8, 1000); in cxgb4_matchall_alloc_tc()
H A Dcxgb4_tc_mqprio.c342 p.u.params.maxrate = div_u64(mqprio->max_rate[i] * 8, 1000); in cxgb4_mqprio_alloc_tc()
H A Dcxgb4.h1252 u32 maxrate; /* maximum rate */ member
2070 u32 minrate, u32 maxrate, u16 weight, u16 pktsize,
H A Dt4_hw.c10377 u32 minrate, u32 maxrate, u16 weight, u16 pktsize, in t4_sched_params() argument
10397 cmd.u.params.max = cpu_to_be32(maxrate); in t4_sched_params()
H A Dcxgb4_main.c3551 p.u.params.maxrate = req_rate; in cxgb_set_tx_maxrate()
/linux/drivers/atm/
H A Diphase.h644 ffreg_t maxrate; /* Maximum rate */ member
/linux/drivers/net/ethernet/intel/ice/
H A Dice_main.c6112 ice_set_tx_maxrate(struct net_device *netdev, int queue_index, u32 maxrate) in ice_set_tx_maxrate() argument
6121 if (maxrate && (maxrate > (ICE_SCHED_MAX_BW / 1000))) { in ice_set_tx_maxrate()
6123 maxrate, queue_index); in ice_set_tx_maxrate()
6138 if (!maxrate) in ice_set_tx_maxrate()
6143 q_handle, ICE_MAX_BW, maxrate * 1000); in ice_set_tx_maxrate()
/linux/drivers/net/ethernet/intel/ixgbe/
H A 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()
/linux/include/linux/
H A Dnetdevice.h1600 u32 maxrate);