Searched refs:dwrr_mtu (Results 1 – 7 of 7) sorted by relevance
20 weight = mtu / pfvf->hw.dwrr_mtu; in mtu_to_dwrr_weight()21 if (mtu % pfvf->hw.dwrr_mtu) in mtu_to_dwrr_weight()
1754 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()
208 u32 dwrr_mtu; member
1375 int dwrr_mtu = val.vu32; in rvu_af_dl_dwrr_mtu_validate() local1385 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() local1415 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() local1431 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()
194 u32 convert_dwrr_mtu_to_bytes(u8 dwrr_mtu) in convert_dwrr_mtu_to_bytes() argument196 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() local3232 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()
782 u32 convert_dwrr_mtu_to_bytes(u8 dwrr_mtu);
38 * - ``dwrr_mtu``