Home
last modified time | relevance | path

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

/Linux-v6.1/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.c1754 pfvf->hw.dwrr_mtu = rsp->rpm_dwrr_mtu; in otx2_get_max_mtu()
1755 if (!pfvf->hw.dwrr_mtu) in otx2_get_max_mtu()
1756 pfvf->hw.dwrr_mtu = 1; in otx2_get_max_mtu()
Dotx2_common.h208 u32 dwrr_mtu; member
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_devlink.c1375 int dwrr_mtu = val.vu32; in rvu_af_dl_dwrr_mtu_validate() local
1385 if ((dwrr_mtu > 65536 || !is_power_of_2(dwrr_mtu)) && in rvu_af_dl_dwrr_mtu_validate()
1386 (dwrr_mtu != 9728 && dwrr_mtu != 10240)) { in rvu_af_dl_dwrr_mtu_validate()
1413 u64 dwrr_mtu; in rvu_af_dl_dwrr_mtu_set() local
1415 dwrr_mtu = convert_bytes_to_dwrr_mtu(ctx->val.vu32); in rvu_af_dl_dwrr_mtu_set()
1416 rvu_write64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_RPM_MTU, dwrr_mtu); in rvu_af_dl_dwrr_mtu_set()
1426 u64 dwrr_mtu; in rvu_af_dl_dwrr_mtu_get() local
1431 dwrr_mtu = rvu_read64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_RPM_MTU); in rvu_af_dl_dwrr_mtu_get()
1432 ctx->val.vu32 = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_af_dl_dwrr_mtu_get()
Drvu_nix.c194 u32 convert_dwrr_mtu_to_bytes(u8 dwrr_mtu) in convert_dwrr_mtu_to_bytes() argument
196 dwrr_mtu &= 0x1FULL; in convert_dwrr_mtu_to_bytes()
202 switch (dwrr_mtu) { in convert_dwrr_mtu_to_bytes()
208 return BIT_ULL(dwrr_mtu); in convert_dwrr_mtu_to_bytes()
3211 u64 dwrr_mtu; in rvu_mbox_handler_nix_get_hw_info() local
3232 dwrr_mtu = rvu_read64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_RPM_MTU); in rvu_mbox_handler_nix_get_hw_info()
3233 rsp->rpm_dwrr_mtu = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_mbox_handler_nix_get_hw_info()
3235 dwrr_mtu = rvu_read64(rvu, BLKADDR_NIX0, NIX_AF_DWRR_SDP_MTU); in rvu_mbox_handler_nix_get_hw_info()
3236 rsp->sdp_dwrr_mtu = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_mbox_handler_nix_get_hw_info()
Drvu.h782 u32 convert_dwrr_mtu_to_bytes(u8 dwrr_mtu);
/Linux-v6.1/Documentation/networking/devlink/
Docteontx2.rst38 * - ``dwrr_mtu``