Home
last modified time | relevance | path

Searched refs:dwrr_mtu (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k.h20 weight = mtu / pfvf->hw.dwrr_mtu; in mtu_to_dwrr_weight()
21 if (mtu % pfvf->hw.dwrr_mtu) in mtu_to_dwrr_weight()
Dotx2_common.c1799 pfvf->hw.dwrr_mtu = rsp->rpm_dwrr_mtu; in otx2_get_max_mtu()
1800 if (!pfvf->hw.dwrr_mtu) in otx2_get_max_mtu()
1801 pfvf->hw.dwrr_mtu = 1; in otx2_get_max_mtu()
Dotx2_common.h210 u32 dwrr_mtu; member
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_devlink.c1369 int dwrr_mtu = val.vu32; in rvu_af_dl_dwrr_mtu_validate() local
1379 if ((dwrr_mtu > 65536 || !is_power_of_2(dwrr_mtu)) && in rvu_af_dl_dwrr_mtu_validate()
1380 (dwrr_mtu != 9728 && dwrr_mtu != 10240)) { in rvu_af_dl_dwrr_mtu_validate()
1407 u64 dwrr_mtu; in rvu_af_dl_dwrr_mtu_set() local
1409 dwrr_mtu = convert_bytes_to_dwrr_mtu(ctx->val.vu32); in rvu_af_dl_dwrr_mtu_set()
1410 rvu_write64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_RPM_MTU, dwrr_mtu); in rvu_af_dl_dwrr_mtu_set()
1420 u64 dwrr_mtu; in rvu_af_dl_dwrr_mtu_get() local
1425 dwrr_mtu = rvu_read64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_RPM_MTU); in rvu_af_dl_dwrr_mtu_get()
1426 ctx->val.vu32 = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_af_dl_dwrr_mtu_get()
Drvu_nix.c195 u32 convert_dwrr_mtu_to_bytes(u8 dwrr_mtu) in convert_dwrr_mtu_to_bytes() argument
197 dwrr_mtu &= 0x1FULL; in convert_dwrr_mtu_to_bytes()
203 switch (dwrr_mtu) { in convert_dwrr_mtu_to_bytes()
209 return BIT_ULL(dwrr_mtu); in convert_dwrr_mtu_to_bytes()
3289 u64 dwrr_mtu; in rvu_mbox_handler_nix_get_hw_info() local
3310 dwrr_mtu = rvu_read64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_RPM_MTU); in rvu_mbox_handler_nix_get_hw_info()
3311 rsp->rpm_dwrr_mtu = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_mbox_handler_nix_get_hw_info()
3313 dwrr_mtu = rvu_read64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_SDP_MTU); in rvu_mbox_handler_nix_get_hw_info()
3314 rsp->sdp_dwrr_mtu = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_mbox_handler_nix_get_hw_info()
Drvu.h794 u32 convert_dwrr_mtu_to_bytes(u8 dwrr_mtu);