blkaddr 192 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int devnum, blkaddr = -ENODEV; blkaddr 198 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_NPC; blkaddr 201 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_NPA; blkaddr 206 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_NIX0; blkaddr 211 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_SSO; blkaddr 214 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_SSOW; blkaddr 217 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_TIM; blkaddr 222 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_CPT0; blkaddr 242 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_NIX0; blkaddr 250 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = BLKADDR_CPT0; blkaddr 254 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (is_block_implemented(rvu->hw, blkaddr)) blkaddr 255 drivers/net/ethernet/marvell/octeontx2/af/rvu.c return blkaddr; blkaddr 376 drivers/net/ethernet/marvell/octeontx2/af/rvu.c bool is_block_implemented(struct rvu_hwinfo *hw, int blkaddr) blkaddr 380 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (blkaddr < BLKADDR_RVUM || blkaddr >= BLK_COUNT) blkaddr 383 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block = &hw->block[blkaddr]; blkaddr 416 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_block_reset(struct rvu *rvu, int blkaddr, u64 rst_reg) blkaddr 418 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_block *block = &rvu->hw->block[blkaddr]; blkaddr 423 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_write64(rvu, blkaddr, rst_reg, BIT_ULL(0)); blkaddr 424 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_poll_reg(rvu, blkaddr, rst_reg, BIT_ULL(63), true); blkaddr 951 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int blkaddr; blkaddr 953 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = rvu_get_blkaddr(rvu, blktype, pcifunc); blkaddr 954 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (blkaddr < 0) blkaddr 957 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block = &hw->block[blkaddr]; blkaddr 969 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_write64(rvu, blkaddr, block->lfcfg_reg | blkaddr 1040 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int blkaddr; blkaddr 1046 drivers/net/ethernet/marvell/octeontx2/af/rvu.c blkaddr = rvu_get_blkaddr(rvu, blktype, 0); blkaddr 1047 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (blkaddr < 0) blkaddr 1050 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block = &hw->block[blkaddr]; blkaddr 1061 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_write64(rvu, blkaddr, block->lfcfg_reg | blkaddr 1234 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int blkaddr, int lf) blkaddr 1242 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (pfvf->msix_lfmap[vec] == MSIX_BLKLF(blkaddr, lf)) blkaddr 1756 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_blklf_teardown(struct rvu *rvu, u16 pcifunc, u8 blkaddr) blkaddr 1762 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block = &rvu->hw->block[blkaddr]; blkaddr 116 drivers/net/ethernet/marvell/octeontx2/af/rvu.h #define MSIX_BLKLF(blkaddr, lf) (((blkaddr) << 8) | ((lf) & 0xFF)) blkaddr 313 drivers/net/ethernet/marvell/octeontx2/af/rvu.h bool is_block_implemented(struct rvu_hwinfo *hw, int blkaddr); blkaddr 396 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int blkaddr, u32 cfg); blkaddr 399 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int npalf); blkaddr 74 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr; blkaddr 76 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 77 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 85 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr; blkaddr 87 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); blkaddr 88 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 90 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c block = &rvu->hw->block[blkaddr]; blkaddr 113 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static inline struct nix_hw *get_nix_hw(struct rvu_hwinfo *hw, int blkaddr) blkaddr 115 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr == BLKADDR_NIX0 && hw->nix0) blkaddr 121 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_rx_sync(struct rvu *rvu, int blkaddr) blkaddr 126 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_SW_SYNC, BIT_ULL(0)); blkaddr 127 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_poll_reg(rvu, blkaddr, NIX_AF_RX_SW_SYNC, BIT_ULL(0), true); blkaddr 138 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static bool is_valid_txschq(struct rvu *rvu, int blkaddr, blkaddr 145 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 255 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_setup_lso_tso_l3(struct rvu *rvu, int blkaddr, blkaddr 266 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 279 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 284 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_setup_lso_tso_l4(struct rvu *rvu, int blkaddr, blkaddr 294 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 303 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 308 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_setup_lso(struct rvu *rvu, struct nix_hw *nix_hw, int blkaddr) blkaddr 313 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = (rvu_read64(rvu, blkaddr, NIX_AF_CONST1) >> 48) & 0xFF; blkaddr 317 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_LSO_CFG); blkaddr 323 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LSO_CFG, cfg | BIT_ULL(63)); blkaddr 330 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_setup_lso_tso_l3(rvu, blkaddr, idx, true, &fidx); blkaddr 331 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_setup_lso_tso_l4(rvu, blkaddr, idx, &fidx); blkaddr 335 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 343 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_setup_lso_tso_l3(rvu, blkaddr, idx, false, &fidx); blkaddr 344 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_setup_lso_tso_l4(rvu, blkaddr, idx, &fidx); blkaddr 348 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 383 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nixlf_rss_ctx_init(struct rvu *rvu, int blkaddr, blkaddr 399 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RSS_BASE(nixlf), blkaddr 403 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RSS_CFG(nixlf), blkaddr 408 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RSS_GRPX(nixlf, grp), blkaddr 455 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int nixlf, blkaddr, rc = 0; blkaddr 464 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 465 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 468 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c block = &hw->block[blkaddr]; blkaddr 500 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_LFX_RSS_CFG(nixlf)); blkaddr 506 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_RX_MCAST_CFG); blkaddr 530 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_SMQ, blkaddr 743 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr; blkaddr 749 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 750 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 753 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c block = &hw->block[blkaddr]; blkaddr 797 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c ctx_cfg = rvu_read64(rvu, blkaddr, NIX_AF_CONST3); blkaddr 809 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RQS_BASE(nixlf), blkaddr 814 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RQS_CFG(nixlf), cfg); blkaddr 826 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_SQS_BASE(nixlf), blkaddr 829 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_SQS_CFG(nixlf), cfg); blkaddr 841 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_CQS_BASE(nixlf), blkaddr 844 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_CQS_CFG(nixlf), cfg); blkaddr 848 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nixlf_rss_ctx_init(rvu, blkaddr, pfvf, nixlf, blkaddr 854 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_CONST2); blkaddr 861 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_CINTS_BASE(nixlf), blkaddr 863 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_CINTS_CFG(nixlf), BIT_ULL(36)); blkaddr 866 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_CONST2); blkaddr 873 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_QINTS_BASE(nixlf), blkaddr 875 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_QINTS_CFG(nixlf), BIT_ULL(36)); blkaddr 882 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_TX_CFG(nixlf), cfg); blkaddr 885 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_TX_CFG2(nixlf), BIT_ULL(0)); blkaddr 894 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_CFG(nixlf), cfg); blkaddr 897 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RX_CFG(nixlf), req->rx_cfg); blkaddr 918 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_SQ_CONST); blkaddr 927 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_CONST1); blkaddr 931 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_CONST2); blkaddr 943 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, nixlf, err; blkaddr 947 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 948 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 951 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c block = &hw->block[blkaddr]; blkaddr 978 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, rc; blkaddr 982 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 983 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 986 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 995 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = rvu_nix_reserve_mark_format(rvu, nix_hw, blkaddr, cfg); blkaddr 1009 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_reset_tx_shaping(struct rvu *rvu, int blkaddr, blkaddr 1036 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, cir_reg); blkaddr 1037 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, cir_reg, cfg & ~BIT_ULL(0)); blkaddr 1041 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, pir_reg); blkaddr 1042 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, pir_reg, cfg & ~BIT_ULL(0)); blkaddr 1045 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_reset_tx_linkcfg(struct rvu *rvu, int blkaddr, blkaddr 1053 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_TL4X_SDP_LINK_CFG(schq), 0x00); blkaddr 1060 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 1065 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_tl1_schqs(struct rvu *rvu, int blkaddr, u16 pcifunc, blkaddr 1076 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 1111 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, blkaddr 1113 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_shaping(rvu, blkaddr, blkaddr 1116 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, blkaddr 1118 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_shaping(rvu, blkaddr, blkaddr 1140 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, rc = 0; blkaddr 1145 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1146 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 1149 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 1166 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_tl1_schqs(rvu, blkaddr, blkaddr 1202 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_get_tl1_schqs(rvu, blkaddr, pcifunc, blkaddr 1215 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, lvl, schq); blkaddr 1216 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_shaping(rvu, blkaddr, lvl, schq); blkaddr 1226 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, lvl, schq); blkaddr 1227 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_shaping(rvu, blkaddr, lvl, schq); blkaddr 1241 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, nixlf, lvl, schq, err; blkaddr 1247 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1248 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 1251 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 1255 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 1269 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, lvl, schq); blkaddr 1278 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq)); blkaddr 1281 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq), cfg); blkaddr 1284 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_poll_reg(rvu, blkaddr, blkaddr 1311 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_NDC_TX_SYNC, BIT_ULL(12) | nixlf); blkaddr 1312 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_poll_reg(rvu, blkaddr, NIX_AF_NDC_TX_SYNC, BIT_ULL(12), true); blkaddr 1322 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int lvl, schq, nixlf, blkaddr, rc; blkaddr 1330 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1331 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 1334 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 1338 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 1363 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq)); blkaddr 1366 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq), cfg); blkaddr 1369 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = rvu_poll_reg(rvu, blkaddr, blkaddr 1396 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static bool is_txschq_config_valid(struct rvu *rvu, u16 pcifunc, int blkaddr, blkaddr 1407 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!is_valid_txschq(rvu, blkaddr, lvl, pcifunc, schq)) blkaddr 1413 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL4, pcifunc, parent)) blkaddr 1418 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL3, pcifunc, parent)) blkaddr 1423 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL2, pcifunc, parent)) blkaddr 1428 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_valid_txschq(rvu, blkaddr, NIX_TXSCH_LVL_TL1, pcifunc, parent)) blkaddr 1438 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, idx, err = 0; blkaddr 1444 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1445 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 1448 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 1456 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_get_tl1_schqs(rvu, blkaddr, blkaddr 1473 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, reg, regval); blkaddr 1476 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, reg, regval); blkaddr 1479 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, reg, regval); blkaddr 1499 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, idx, err; blkaddr 1507 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1508 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 1511 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 1515 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 1535 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!is_txschq_config_valid(rvu, pcifunc, blkaddr, blkaddr 1541 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], blkaddr 1562 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, reg, regval); blkaddr 1567 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_poll_reg(rvu, blkaddr, blkaddr 1576 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_rx_vtag_cfg(struct rvu *rvu, int nixlf, int blkaddr, blkaddr 1589 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 1600 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, nixlf, err; blkaddr 1602 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1603 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 1606 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 1611 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_rx_vtag_cfg(rvu, nixlf, blkaddr, req); blkaddr 1700 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr; blkaddr 1706 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1707 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 1710 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 1805 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_setup_mcast(struct rvu *rvu, struct nix_hw *nix_hw, int blkaddr) blkaddr 1811 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c size = (rvu_read64(rvu, blkaddr, NIX_AF_CONST3) >> 16) & 0x0F; blkaddr 1820 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_MCAST_BASE, blkaddr 1824 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_MCAST_CFG, blkaddr 1828 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c size = rvu_read64(rvu, blkaddr, NIX_AF_MC_MIRROR_CONST) & 0xFFFF; blkaddr 1834 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_MCAST_BUF_BASE, blkaddr 1840 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_MCAST_BUF_CFG, blkaddr 1849 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_setup_txschq(struct rvu *rvu, struct nix_hw *nix_hw, int blkaddr) blkaddr 1878 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, reg); blkaddr 1897 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, u32 cfg) blkaddr 1908 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_MARK_FORMATX_CTL(fmt_idx), cfg); blkaddr 1915 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr) blkaddr 1931 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c total = (rvu_read64(rvu, blkaddr, NIX_AF_PSE_CONST) & 0xFF00) >> 8; blkaddr 1938 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = rvu_nix_reserve_mark_format(rvu, nix_hw, blkaddr, cfgs[i]); blkaddr 1952 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int i, nixlf, blkaddr; blkaddr 1955 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 1956 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 1959 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 1964 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c stats = rvu_read64(rvu, blkaddr, NIX_AF_CONST1); blkaddr 1968 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_TX_STATX(nixlf, i), 0); blkaddr 1972 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RX_STATX(nixlf, i), 0); blkaddr 2121 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int reserve_flowkey_alg_idx(struct rvu *rvu, int blkaddr, u32 flow_cfg) blkaddr 2127 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 2142 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 2160 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int alg_idx, nixlf, blkaddr; blkaddr 2163 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2164 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 2167 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 2171 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 2178 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c alg_idx = reserve_flowkey_alg_idx(rvu, blkaddr, blkaddr 2189 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_rx_flowkey_alg_cfg(struct rvu *rvu, int blkaddr) blkaddr 2197 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 2204 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2211 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2217 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2223 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2230 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2237 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2244 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2251 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = reserve_flowkey_alg_idx(rvu, blkaddr, flowkey_cfg); blkaddr 2265 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, nixlf; blkaddr 2268 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2269 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 2272 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 2293 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, nixlf; blkaddr 2296 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2297 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 2300 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 2373 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, schq, link = -1; blkaddr 2379 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2380 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 2383 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 2403 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq)); blkaddr 2407 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq), cfg); blkaddr 2436 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link)); blkaddr 2440 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link), cfg); blkaddr 2448 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_TX_LINKX_NORM_CREDIT(link)); blkaddr 2451 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_TX_LINKX_NORM_CREDIT(link), cfg); blkaddr 2452 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_TX_LINKX_EXPR_CREDIT(link), cfg); blkaddr 2464 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, nixlf, err; blkaddr 2487 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2488 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) { blkaddr 2493 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nixlf = rvu_get_lf(rvu, &rvu->hw->block[blkaddr], pcifunc, 0); blkaddr 2523 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int nixlf, blkaddr; blkaddr 2527 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2528 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 2531 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c block = &hw->block[blkaddr]; blkaddr 2536 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_LFX_RX_CFG(nixlf)); blkaddr 2553 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_LFX_RX_CFG(nixlf), cfg); blkaddr 2558 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static void nix_link_config(struct rvu *rvu, int blkaddr) blkaddr 2571 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link), blkaddr 2577 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link), blkaddr 2591 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 2594 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 2606 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 2608 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 2613 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c static int nix_calibrate_x2p(struct rvu *rvu, int blkaddr) blkaddr 2619 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_CFG, blkaddr 2620 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_read64(rvu, blkaddr, NIX_AF_CFG) | BIT_ULL(9)); blkaddr 2622 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_poll_reg(rvu, blkaddr, blkaddr 2629 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c status = rvu_read64(rvu, blkaddr, NIX_AF_STATUS); blkaddr 2649 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_CFG, blkaddr 2650 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_read64(rvu, blkaddr, NIX_AF_CFG) & ~BIT_ULL(9)); blkaddr 2699 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, err; blkaddr 2702 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); blkaddr 2703 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 2705 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c block = &hw->block[blkaddr]; blkaddr 2712 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_CFG, blkaddr 2713 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_read64(rvu, blkaddr, NIX_AF_CFG) | 0x5EULL); blkaddr 2716 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_calibrate_x2p(rvu, blkaddr); blkaddr 2721 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_CONST); blkaddr 2734 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_CINT_DELAY, 0x0ULL); blkaddr 2736 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr == BLKADDR_NIX0) { blkaddr 2742 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_setup_txschq(rvu, hw->nix0, blkaddr); blkaddr 2746 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_af_mark_format_setup(rvu, hw->nix0, blkaddr); blkaddr 2750 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_setup_mcast(rvu, hw->nix0, blkaddr); blkaddr 2755 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_setup_lso(rvu, hw->nix0, blkaddr); blkaddr 2761 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_OL2, blkaddr 2763 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_OIP4, blkaddr 2765 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_IIP4, blkaddr 2767 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_OIP6, blkaddr 2769 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_IIP6, blkaddr 2771 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_OTCP, blkaddr 2773 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_ITCP, blkaddr 2775 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_OUDP, blkaddr 2777 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_IUDP, blkaddr 2779 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_OSCTP, blkaddr 2781 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_RX_DEF_ISCTP, blkaddr 2785 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = nix_rx_flowkey_alg_cfg(rvu, blkaddr); blkaddr 2790 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_link_config(rvu, blkaddr); blkaddr 2802 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, lvl; blkaddr 2804 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); blkaddr 2805 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr < 0) blkaddr 2808 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c block = &hw->block[blkaddr]; blkaddr 2811 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (blkaddr == BLKADDR_NIX0) { blkaddr 2812 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 2832 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr; blkaddr 2834 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2835 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 2838 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c *nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); blkaddr 2873 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int nixlf) blkaddr 2883 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_rx_sync(rvu, blkaddr); blkaddr 2917 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, idx, f; blkaddr 2921 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); blkaddr 2922 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!pfvf->nixlf || blkaddr < 0) blkaddr 2925 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_hw = get_nix_hw(rvu->hw, blkaddr); blkaddr 2932 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c reg = rvu_read64(rvu, blkaddr, blkaddr 2954 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, blkaddr 60 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c int blkaddr, npalf, rc = 0; blkaddr 72 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); blkaddr 73 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c if (!pfvf->npalf || blkaddr < 0) blkaddr 76 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c block = &hw->block[blkaddr]; blkaddr 286 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c int blkaddr; blkaddr 293 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); blkaddr 294 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c if (!pfvf->npalf || blkaddr < 0) blkaddr 297 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c block = &hw->block[blkaddr]; blkaddr 309 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c ctx_cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST1); blkaddr 335 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST); blkaddr 344 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c cfg = rvu_read64(rvu, blkaddr, NPA_AF_LFX_AURAS_CFG(npalf)); blkaddr 349 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c rvu_write64(rvu, blkaddr, NPA_AF_LFX_AURAS_CFG(npalf), cfg); blkaddr 352 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c rvu_write64(rvu, blkaddr, NPA_AF_LFX_LOC_AURAS_BASE(npalf), blkaddr 356 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c rvu_write64(rvu, blkaddr, NPA_AF_LFX_QINTS_CFG(npalf), BIT_ULL(36)); blkaddr 357 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c rvu_write64(rvu, blkaddr, NPA_AF_LFX_QINTS_BASE(npalf), blkaddr 368 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST); blkaddr 383 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c int blkaddr; blkaddr 386 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); blkaddr 387 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c if (!pfvf->npalf || blkaddr < 0) blkaddr 390 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c block = &hw->block[blkaddr]; blkaddr 446 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c int blkaddr, err; blkaddr 448 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); blkaddr 449 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c if (blkaddr < 0) blkaddr 453 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c err = npa_aq_init(rvu, &hw->block[blkaddr]); blkaddr 464 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c int blkaddr; blkaddr 466 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); blkaddr 467 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c if (blkaddr < 0) blkaddr 470 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c block = &hw->block[blkaddr]; blkaddr 32 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, u16 pcifunc); blkaddr 38 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr; blkaddr 41 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 42 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 47 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_CPI_DEFX(pkind, 0), val); blkaddr 99 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, int index) blkaddr 105 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, NPC_AF_MCAMEX_BANKX_CFG(index, bank)); blkaddr 110 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, int index, bool enable) blkaddr 117 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 203 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, int index, u8 intf, blkaddr 222 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 225 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 231 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 233 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 237 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 239 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 244 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 248 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_MCAMEX_BANKX_TAG_ACT(index, actbank), blkaddr 253 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, actindex, true); blkaddr 255 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, actindex, false); blkaddr 259 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, u16 src, u16 dest) blkaddr 274 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, sreg + (i * 8)); blkaddr 275 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, dreg + (i * 8), cfg); blkaddr 280 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, blkaddr 282 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 286 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, blkaddr 288 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 292 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, blkaddr 294 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 299 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, int index) blkaddr 304 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c return rvu_read64(rvu, blkaddr, blkaddr 315 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, index, kwi; blkaddr 322 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 323 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 343 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (is_mcam_entry_enabled(rvu, mcam, blkaddr, index)) { blkaddr 345 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr, index); blkaddr 353 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_mcam_entry(rvu, mcam, blkaddr, index, blkaddr 372 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, ucast_idx, index, kwi; blkaddr 380 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 381 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 402 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (is_mcam_entry_enabled(rvu, mcam, blkaddr, ucast_idx)) blkaddr 404 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr, ucast_idx); blkaddr 413 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_mcam_entry(rvu, mcam, blkaddr, index, blkaddr 421 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, index; blkaddr 423 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 424 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 433 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, index, enable); blkaddr 455 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, index; blkaddr 457 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 458 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 509 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_mcam_entry(rvu, mcam, blkaddr, index, blkaddr 518 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, index, bank; blkaddr 520 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 521 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 541 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c *(u64 *)&action = rvu_read64(rvu, blkaddr, blkaddr 552 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 561 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (is_mcam_entry_enabled(rvu, mcam, blkaddr, index)) { blkaddr 565 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 578 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int index, bank, blkaddr; blkaddr 580 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 581 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 587 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, index, enable); blkaddr 601 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c *(u64 *)&action = rvu_read64(rvu, blkaddr, blkaddr 605 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr, index, enable); blkaddr 627 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr; blkaddr 629 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 630 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 636 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_mcam_free_all_entries(rvu, mcam, blkaddr, pcifunc); blkaddr 647 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, \ blkaddr 651 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, \ blkaddr 658 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_config_ldata_extract(struct rvu *rvu, int blkaddr) blkaddr 665 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, NPC_AF_CONST); blkaddr 735 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_program_mkex_profile(struct rvu *rvu, int blkaddr, blkaddr 740 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_RX), blkaddr 742 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_TX), blkaddr 746 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_KEX_LDATAX_FLAGS_CFG(ld), blkaddr 780 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_load_mkex_profile(struct rvu *rvu, int blkaddr) blkaddr 819 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_program_mkex_profile(rvu, blkaddr, mcam_kex); blkaddr 833 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_ldata_extract(rvu, blkaddr); blkaddr 840 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_config_kpuaction(struct rvu *rvu, int blkaddr, blkaddr 859 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, reg, *(u64 *)&action1); blkaddr 879 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, reg, *(u64 *)&action0); blkaddr 882 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_config_kpucam(struct rvu *rvu, int blkaddr, blkaddr 899 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 901 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 910 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_program_kpu_profile(struct rvu *rvu, int blkaddr, int kpu, blkaddr 921 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c max_entries = rvu_read64(rvu, blkaddr, NPC_AF_CONST1) & 0xFFF; blkaddr 926 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_kpucam(rvu, blkaddr, blkaddr 932 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_kpuaction(rvu, blkaddr, &profile->action[entry], blkaddr 937 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 940 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 946 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_KPUX_CFG(kpu), 0x01); blkaddr 949 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static void npc_parser_profile_init(struct rvu *rvu, int blkaddr) blkaddr 956 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c hw->npc_kpus = (rvu_read64(rvu, blkaddr, NPC_AF_CONST) >> 8) & 0x1F; blkaddr 960 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 962 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 964 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_KPUX_CFG(idx), 0x00); blkaddr 976 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_kpuaction(rvu, blkaddr, blkaddr 984 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_program_kpu_profile(rvu, blkaddr, blkaddr 988 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c static int npc_mcam_rsrcs_init(struct rvu *rvu, int blkaddr) blkaddr 996 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, NPC_AF_CONST); blkaddr 1002 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = (rvu_read64(rvu, blkaddr, blkaddr 1105 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, entry, bank, err; blkaddr 1108 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1109 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) { blkaddr 1115 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c cfg = rvu_read64(rvu, blkaddr, NPC_AF_CONST); blkaddr 1118 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 1123 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c pkind->rsrc.max = (rvu_read64(rvu, blkaddr, blkaddr 1136 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_parser_profile_init(rvu, blkaddr); blkaddr 1139 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_PCK_DEF_OL2, blkaddr 1141 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_PCK_DEF_OIP4, blkaddr 1145 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_PCK_DEF_IIP4, blkaddr 1154 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_PCK_CFG, blkaddr 1155 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_read64(rvu, blkaddr, NPC_AF_PCK_CFG) | blkaddr 1163 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_RX), blkaddr 1170 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_TX), blkaddr 1173 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c err = npc_mcam_rsrcs_init(rvu, blkaddr); blkaddr 1178 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_load_mkex_profile(rvu, blkaddr); blkaddr 1183 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_INTFX_MISS_ACT(NIX_INTF_TX), blkaddr 1187 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_INTFX_MISS_ACT(NIX_INTF_RX), blkaddr 1234 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, u16 entry, u16 cntr) blkaddr 1243 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 1250 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, u16 entry, u16 cntr) blkaddr 1259 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, blkaddr 1296 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, u16 pcifunc) blkaddr 1307 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, index, false); blkaddr 1313 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr, index, blkaddr 1640 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr; blkaddr 1642 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1643 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1680 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, rc = 0; blkaddr 1683 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1684 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1702 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, req->entry, false); blkaddr 1707 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_unmap_mcam_entry_and_cntr(rvu, mcam, blkaddr, blkaddr 1714 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_mcam_free_all_entries(rvu, mcam, blkaddr, pcifunc); blkaddr 1726 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, rc; blkaddr 1728 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1729 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1748 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_mcam_entry(rvu, mcam, blkaddr, req->entry, req->intf, blkaddr 1752 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_map_mcam_entry_and_cntr(rvu, mcam, blkaddr, blkaddr 1767 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, rc; blkaddr 1769 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1770 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1779 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, req->entry, true); blkaddr 1790 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, rc; blkaddr 1792 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1793 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1802 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, req->entry, false); blkaddr 1815 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, rc; blkaddr 1817 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1818 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1847 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, new_entry, false); blkaddr 1850 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_copy_mcam_entry(rvu, mcam, blkaddr, old_entry, new_entry); blkaddr 1855 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_unmap_mcam_entry_and_cntr(rvu, mcam, blkaddr, blkaddr 1857 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_map_mcam_entry_and_cntr(rvu, mcam, blkaddr, blkaddr 1862 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, new_entry, true); blkaddr 1863 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_enable_mcam_entry(rvu, mcam, blkaddr, old_entry, false); blkaddr 1883 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, index; blkaddr 1885 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1886 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1945 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, err; blkaddr 1947 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1948 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 1974 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_unmap_mcam_entry_and_cntr(rvu, mcam, blkaddr, blkaddr 1987 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, rc; blkaddr 1989 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 1990 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 2003 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_unmap_mcam_entry_and_cntr(rvu, mcam, blkaddr, blkaddr 2020 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_unmap_mcam_entry_and_cntr(rvu, mcam, blkaddr, blkaddr 2032 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, err; blkaddr 2034 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 2035 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 2044 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rvu_write64(rvu, blkaddr, NPC_AF_MATCH_STATX(req->cntr), 0x00); blkaddr 2054 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, err; blkaddr 2056 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 2057 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 2066 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c rsp->stat = rvu_read64(rvu, blkaddr, NPC_AF_MATCH_STATX(req->cntr)); blkaddr 2083 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, rc; blkaddr 2085 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 2086 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 2131 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_mcam_entry(rvu, mcam, blkaddr, entry, req->intf, blkaddr 2135 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_map_mcam_entry_and_cntr(rvu, mcam, blkaddr, entry, cntr); blkaddr 2194 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c int blkaddr, index; blkaddr 2197 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); blkaddr 2198 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c if (blkaddr < 0) blkaddr 2206 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c pfvf->entry.action = npc_get_mcam_action(rvu, mcam, blkaddr, index); blkaddr 2207 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c enable = is_mcam_entry_enabled(rvu, mcam, blkaddr, index); blkaddr 2208 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c npc_config_mcam_entry(rvu, mcam, blkaddr, pfvf->rxvlan_index, blkaddr 280 drivers/net/wireless/intersil/orinoco/hermes_dld.c u32 blkaddr; blkaddr 289 drivers/net/wireless/intersil/orinoco/hermes_dld.c blkaddr = dblock_addr(blk); blkaddr 292 drivers/net/wireless/intersil/orinoco/hermes_dld.c while ((blkaddr != BLOCK_END) && blkaddr 295 drivers/net/wireless/intersil/orinoco/hermes_dld.c "to address 0x%08x\n", blklen, blkaddr); blkaddr 297 drivers/net/wireless/intersil/orinoco/hermes_dld.c err = hw->ops->program(hw, blk->data, blkaddr, blklen); blkaddr 306 drivers/net/wireless/intersil/orinoco/hermes_dld.c blkaddr = dblock_addr(blk); blkaddr 35 fs/erofs/data.c struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr) blkaddr 40 fs/erofs/data.c page = read_cache_page_gfp(mapping, blkaddr, blkaddr 268 fs/erofs/erofs_fs.h __le32 blkaddr; blkaddr 175 fs/erofs/inode.c erofs_blk_t blkaddr; blkaddr 181 fs/erofs/inode.c blkaddr = erofs_blknr(inode_loc); blkaddr 185 fs/erofs/inode.c __func__, vi->nid, ofs, blkaddr); blkaddr 187 fs/erofs/inode.c page = erofs_get_meta_page(sb, blkaddr); blkaddr 353 fs/erofs/internal.h struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr); blkaddr 15 fs/erofs/xattr.c erofs_blk_t blkaddr; blkaddr 89 fs/erofs/xattr.c it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); blkaddr 92 fs/erofs/xattr.c it.page = erofs_get_meta_page(sb, it.blkaddr); blkaddr 122 fs/erofs/xattr.c it.page = erofs_get_meta_page(sb, ++it.blkaddr); blkaddr 170 fs/erofs/xattr.c it->blkaddr += erofs_blknr(it->ofs); blkaddr 172 fs/erofs/xattr.c it->page = erofs_get_meta_page(it->sb, it->blkaddr); blkaddr 200 fs/erofs/xattr.c it->blkaddr = erofs_blknr(iloc(sbi, vi->nid) + inline_xattr_ofs); blkaddr 203 fs/erofs/xattr.c it->page = erofs_get_meta_page(inode->i_sb, it->blkaddr); blkaddr 396 fs/erofs/xattr.c erofs_blk_t blkaddr = blkaddr 401 fs/erofs/xattr.c if (!i || blkaddr != it->it.blkaddr) { blkaddr 405 fs/erofs/xattr.c it->it.page = erofs_get_meta_page(sb, blkaddr); blkaddr 410 fs/erofs/xattr.c it->it.blkaddr = blkaddr; blkaddr 619 fs/erofs/xattr.c erofs_blk_t blkaddr = blkaddr 623 fs/erofs/xattr.c if (!i || blkaddr != it->it.blkaddr) { blkaddr 627 fs/erofs/xattr.c it->it.page = erofs_get_meta_page(sb, blkaddr); blkaddr 632 fs/erofs/xattr.c it->it.blkaddr = blkaddr; blkaddr 174 fs/erofs/zmap.c m->pblk = le32_to_cpu(di->di_u.blkaddr); blkaddr 133 fs/f2fs/checkpoint.c static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, blkaddr 143 fs/f2fs/checkpoint.c segno = GET_SEGNO(sbi, blkaddr); blkaddr 144 fs/f2fs/checkpoint.c offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); blkaddr 150 fs/f2fs/checkpoint.c blkaddr, exist); blkaddr 158 fs/f2fs/checkpoint.c block_t blkaddr, int type) blkaddr 164 fs/f2fs/checkpoint.c if (unlikely(blkaddr >= SIT_BLK_CNT(sbi))) blkaddr 168 fs/f2fs/checkpoint.c if (unlikely(blkaddr >= MAIN_BLKADDR(sbi) || blkaddr 169 fs/f2fs/checkpoint.c blkaddr < SM_I(sbi)->ssa_blkaddr)) blkaddr 173 fs/f2fs/checkpoint.c if (unlikely(blkaddr >= SIT_I(sbi)->sit_base_addr || blkaddr 174 fs/f2fs/checkpoint.c blkaddr < __start_cp_addr(sbi))) blkaddr 178 fs/f2fs/checkpoint.c if (unlikely(blkaddr >= MAX_BLKADDR(sbi) || blkaddr 179 fs/f2fs/checkpoint.c blkaddr < MAIN_BLKADDR(sbi))) blkaddr 185 fs/f2fs/checkpoint.c if (unlikely(blkaddr >= MAX_BLKADDR(sbi) || blkaddr 186 fs/f2fs/checkpoint.c blkaddr < MAIN_BLKADDR(sbi))) { blkaddr 188 fs/f2fs/checkpoint.c blkaddr); blkaddr 193 fs/f2fs/checkpoint.c return __is_bitmap_valid(sbi, blkaddr, type); blkaddr 197 fs/f2fs/checkpoint.c if (unlikely(blkaddr < SEG0_BLKADDR(sbi) || blkaddr 198 fs/f2fs/checkpoint.c blkaddr >= MAIN_BLKADDR(sbi))) blkaddr 263 fs/f2fs/data.c int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) blkaddr 271 fs/f2fs/data.c if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) blkaddr 676 fs/f2fs/data.c static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, blkaddr 688 fs/f2fs/data.c f2fs_target_device(sbi, blkaddr, bio); blkaddr 714 fs/f2fs/data.c block_t blkaddr) blkaddr 719 fs/f2fs/data.c bio = f2fs_grab_read_bio(inode, blkaddr, 1, 0, page->index); blkaddr 724 fs/f2fs/data.c f2fs_wait_on_block_writeback(inode, blkaddr); blkaddr 764 fs/f2fs/data.c void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr) blkaddr 766 fs/f2fs/data.c dn->data_blkaddr = blkaddr; blkaddr 791 fs/f2fs/data.c block_t blkaddr = datablock_addr(dn->inode, blkaddr 793 fs/f2fs/data.c if (blkaddr == NULL_ADDR) { blkaddr 1152 fs/f2fs/data.c block_t blkaddr; blkaddr 1211 fs/f2fs/data.c blkaddr = datablock_addr(dn.inode, dn.node_page, dn.ofs_in_node); blkaddr 1213 fs/f2fs/data.c if (__is_valid_data_blkaddr(blkaddr) && blkaddr 1214 fs/f2fs/data.c !f2fs_is_valid_blkaddr(sbi, blkaddr, DATA_GENERIC_ENHANCE)) { blkaddr 1219 fs/f2fs/data.c if (__is_valid_data_blkaddr(blkaddr)) { blkaddr 1226 fs/f2fs/data.c blkaddr = dn.data_blkaddr; blkaddr 1236 fs/f2fs/data.c if (blkaddr == NULL_ADDR) { blkaddr 1251 fs/f2fs/data.c blkaddr = dn.data_blkaddr; blkaddr 1260 fs/f2fs/data.c blkaddr == NULL_ADDR) { blkaddr 1279 fs/f2fs/data.c if (blkaddr == NEW_ADDR) blkaddr 1283 fs/f2fs/data.c map->m_pblk = blkaddr; blkaddr 1286 fs/f2fs/data.c blkaddr == (map->m_pblk + ofs)) || blkaddr 1287 fs/f2fs/data.c (map->m_pblk == NEW_ADDR && blkaddr == NEW_ADDR) || blkaddr 2610 fs/f2fs/data.c block_t blkaddr = NULL_ADDR; blkaddr 2653 fs/f2fs/data.c &blkaddr, &need_balance); blkaddr 2680 fs/f2fs/data.c if (blkaddr == NEW_ADDR) { blkaddr 2684 fs/f2fs/data.c if (!f2fs_is_valid_blkaddr(sbi, blkaddr, blkaddr 2689 fs/f2fs/data.c err = f2fs_submit_page_read(inode, page, blkaddr); blkaddr 497 fs/f2fs/extent_cache.c pgoff_t fofs, block_t blkaddr, unsigned int len) blkaddr 513 fs/f2fs/extent_cache.c trace_f2fs_update_extent_tree_range(inode, fofs, blkaddr, len); blkaddr 600 fs/f2fs/extent_cache.c if (blkaddr) { blkaddr 602 fs/f2fs/extent_cache.c set_extent_info(&ei, fofs, blkaddr, len); blkaddr 791 fs/f2fs/extent_cache.c block_t blkaddr; blkaddr 797 fs/f2fs/extent_cache.c blkaddr = NULL_ADDR; blkaddr 799 fs/f2fs/extent_cache.c blkaddr = dn->data_blkaddr; blkaddr 803 fs/f2fs/extent_cache.c f2fs_update_extent_tree_range(dn->inode, fofs, blkaddr, 1); blkaddr 807 fs/f2fs/extent_cache.c pgoff_t fofs, block_t blkaddr, unsigned int len) blkaddr 813 fs/f2fs/extent_cache.c f2fs_update_extent_tree_range(dn->inode, fofs, blkaddr, len); blkaddr 355 fs/f2fs/f2fs.h block_t blkaddr; /* block address locating the last fsync */ blkaddr 2883 fs/f2fs/f2fs.h block_t blkaddr, int type); blkaddr 2885 fs/f2fs/f2fs.h block_t blkaddr, int type) blkaddr 2887 fs/f2fs/f2fs.h if (!f2fs_is_valid_blkaddr(sbi, blkaddr, type)) { blkaddr 2889 fs/f2fs/f2fs.h blkaddr, type); blkaddr 2894 fs/f2fs/f2fs.h static inline bool __is_valid_data_blkaddr(block_t blkaddr) blkaddr 2896 fs/f2fs/f2fs.h if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR) blkaddr 3101 fs/f2fs/f2fs.h bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr); blkaddr 3140 fs/f2fs/f2fs.h void f2fs_wait_on_block_writeback(struct inode *inode, block_t blkaddr); blkaddr 3141 fs/f2fs/f2fs.h void f2fs_wait_on_block_writeback_range(struct inode *inode, block_t blkaddr, blkaddr 3165 fs/f2fs/f2fs.h block_t blkaddr, int type); blkaddr 3210 fs/f2fs/f2fs.h int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr); blkaddr 3212 fs/f2fs/f2fs.h void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr); blkaddr 3358 fs/f2fs/f2fs.h #define stat_inc_meta_count(sbi, blkaddr) \ blkaddr 3360 fs/f2fs/f2fs.h if (blkaddr < SIT_I(sbi)->sit_base_addr) \ blkaddr 3362 fs/f2fs/f2fs.h else if (blkaddr < NM_I(sbi)->nat_blkaddr) \ blkaddr 3364 fs/f2fs/f2fs.h else if (blkaddr < SM_I(sbi)->ssa_blkaddr) \ blkaddr 3366 fs/f2fs/f2fs.h else if (blkaddr < SM_I(sbi)->main_blkaddr) \ blkaddr 3458 fs/f2fs/f2fs.h #define stat_inc_meta_count(sbi, blkaddr) do { } while (0) blkaddr 3553 fs/f2fs/f2fs.h pgoff_t fofs, block_t blkaddr, unsigned int len); blkaddr 3615 fs/f2fs/f2fs.h block_t blkaddr) blkaddr 3617 fs/f2fs/f2fs.h unsigned int zno = blkaddr >> sbi->log_blocks_per_blkz; blkaddr 362 fs/f2fs/file.c static bool __found_offset(struct f2fs_sb_info *sbi, block_t blkaddr, blkaddr 367 fs/f2fs/file.c if ((blkaddr == NEW_ADDR && dirty == pgofs) || blkaddr 368 fs/f2fs/file.c __is_valid_data_blkaddr(blkaddr)) blkaddr 372 fs/f2fs/file.c if (blkaddr == NULL_ADDR) blkaddr 427 fs/f2fs/file.c block_t blkaddr; blkaddr 429 fs/f2fs/file.c blkaddr = datablock_addr(dn.inode, blkaddr 432 fs/f2fs/file.c if (__is_valid_data_blkaddr(blkaddr) && blkaddr 434 fs/f2fs/file.c blkaddr, DATA_GENERIC_ENHANCE)) { blkaddr 439 fs/f2fs/file.c if (__found_offset(F2FS_I_SB(inode), blkaddr, dirty, blkaddr 530 fs/f2fs/file.c block_t blkaddr = le32_to_cpu(*addr); blkaddr 532 fs/f2fs/file.c if (blkaddr == NULL_ADDR) blkaddr 538 fs/f2fs/file.c if (__is_valid_data_blkaddr(blkaddr) && blkaddr 539 fs/f2fs/file.c !f2fs_is_valid_blkaddr(sbi, blkaddr, blkaddr 543 fs/f2fs/file.c f2fs_invalidate_blocks(sbi, blkaddr); blkaddr 1006 fs/f2fs/file.c static int __read_out_blkaddrs(struct inode *inode, block_t *blkaddr, blkaddr 1023 fs/f2fs/file.c blkaddr += done; blkaddr 1030 fs/f2fs/file.c for (i = 0; i < done; i++, blkaddr++, do_replace++, dn.ofs_in_node++) { blkaddr 1031 fs/f2fs/file.c *blkaddr = datablock_addr(dn.inode, blkaddr 1034 fs/f2fs/file.c if (__is_valid_data_blkaddr(*blkaddr) && blkaddr 1035 fs/f2fs/file.c !f2fs_is_valid_blkaddr(sbi, *blkaddr, blkaddr 1041 fs/f2fs/file.c if (!f2fs_is_checkpointed_data(sbi, *blkaddr)) { blkaddr 1062 fs/f2fs/file.c static int __roll_back_blkaddrs(struct inode *inode, block_t *blkaddr, blkaddr 1069 fs/f2fs/file.c for (i = 0; i < len; i++, do_replace++, blkaddr++) { blkaddr 1077 fs/f2fs/file.c f2fs_invalidate_blocks(sbi, *blkaddr); blkaddr 1079 fs/f2fs/file.c f2fs_update_data_blkaddr(&dn, *blkaddr); blkaddr 1087 fs/f2fs/file.c block_t *blkaddr, int *do_replace, blkaddr 1095 fs/f2fs/file.c if (blkaddr[i] == NULL_ADDR && !full) { blkaddr 1100 fs/f2fs/file.c if (do_replace[i] || blkaddr[i] == NULL_ADDR) { blkaddr 1131 fs/f2fs/file.c blkaddr[i], ni.version, true, false); blkaddr 1140 fs/f2fs/file.c } while (--ilen && (do_replace[i] || blkaddr[i] == NULL_ADDR)); blkaddr 611 fs/f2fs/gc.c struct node_info *dni, block_t blkaddr, unsigned int *nofs) blkaddr 640 fs/f2fs/gc.c if (source_blkaddr != blkaddr) { blkaddr 642 fs/f2fs/gc.c unsigned int segno = GET_SEGNO(sbi, blkaddr); blkaddr 643 fs/f2fs/gc.c unsigned long offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); blkaddr 648 fs/f2fs/gc.c blkaddr, source_blkaddr, segno); blkaddr 528 fs/f2fs/node.c block_t blkaddr; blkaddr 572 fs/f2fs/node.c blkaddr = le32_to_cpu(ne.block_addr); blkaddr 573 fs/f2fs/node.c if (__is_valid_data_blkaddr(blkaddr) && blkaddr 574 fs/f2fs/node.c !f2fs_is_valid_blkaddr(sbi, blkaddr, DATA_GENERIC_ENHANCE)) blkaddr 293 fs/f2fs/node.h static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) blkaddr 303 fs/f2fs/node.h rn->footer.next_blkaddr = cpu_to_le32(blkaddr); blkaddr 304 fs/f2fs/recovery.c block_t blkaddr; blkaddr 312 fs/f2fs/recovery.c blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); blkaddr 317 fs/f2fs/recovery.c if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) blkaddr 320 fs/f2fs/recovery.c page = f2fs_get_tmp_page(sbi, blkaddr); blkaddr 364 fs/f2fs/recovery.c entry->blkaddr = blkaddr; blkaddr 367 fs/f2fs/recovery.c entry->last_dentry = blkaddr; blkaddr 371 fs/f2fs/recovery.c blkaddr == next_blkaddr_of_node(page)) { blkaddr 373 fs/f2fs/recovery.c __func__, blkaddr, blkaddr 381 fs/f2fs/recovery.c blkaddr = next_blkaddr_of_node(page); blkaddr 384 fs/f2fs/recovery.c f2fs_ra_meta_pages_cond(sbi, blkaddr); blkaddr 398 fs/f2fs/recovery.c block_t blkaddr, struct dnode_of_data *dn) blkaddr 401 fs/f2fs/recovery.c unsigned int segno = GET_SEGNO(sbi, blkaddr); blkaddr 402 fs/f2fs/recovery.c unsigned short blkoff = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); blkaddr 487 fs/f2fs/recovery.c if (tdn.data_blkaddr == blkaddr) blkaddr 500 fs/f2fs/recovery.c tdn.ofs_in_node) == blkaddr) blkaddr 653 fs/f2fs/recovery.c block_t blkaddr; blkaddr 657 fs/f2fs/recovery.c blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); blkaddr 662 fs/f2fs/recovery.c if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) blkaddr 665 fs/f2fs/recovery.c f2fs_ra_meta_pages_cond(sbi, blkaddr); blkaddr 667 fs/f2fs/recovery.c page = f2fs_get_tmp_page(sbi, blkaddr); blkaddr 693 fs/f2fs/recovery.c if (entry->last_dentry == blkaddr) { blkaddr 706 fs/f2fs/recovery.c if (entry->blkaddr == blkaddr) blkaddr 710 fs/f2fs/recovery.c blkaddr = next_blkaddr_of_node(page); blkaddr 1256 fs/f2fs/segment.c struct discard_cmd *dc, block_t blkaddr) blkaddr 1269 fs/f2fs/segment.c if (blkaddr > di.lstart) { blkaddr 1270 fs/f2fs/segment.c dc->len = blkaddr - dc->lstart; blkaddr 1276 fs/f2fs/segment.c if (blkaddr < di.lstart + di.len - 1) { blkaddr 1278 fs/f2fs/segment.c __insert_discard_tree(sbi, dc->bdev, blkaddr + 1, blkaddr 1279 fs/f2fs/segment.c di.start + blkaddr + 1 - di.lstart, blkaddr 1280 fs/f2fs/segment.c di.lstart + di.len - 1 - blkaddr, blkaddr 1636 fs/f2fs/segment.c static void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr) blkaddr 1644 fs/f2fs/segment.c NULL, blkaddr); blkaddr 1647 fs/f2fs/segment.c __punch_discard_cmd(sbi, dc, blkaddr); blkaddr 2119 fs/f2fs/segment.c static void update_sit_entry(struct f2fs_sb_info *sbi, block_t blkaddr, int del) blkaddr 2129 fs/f2fs/segment.c segno = GET_SEGNO(sbi, blkaddr); blkaddr 2133 fs/f2fs/segment.c offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); blkaddr 2151 fs/f2fs/segment.c blkaddr, exist); blkaddr 2157 fs/f2fs/segment.c blkaddr); blkaddr 2181 fs/f2fs/segment.c blkaddr, exist); blkaddr 2187 fs/f2fs/segment.c blkaddr); blkaddr 2242 fs/f2fs/segment.c bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr) blkaddr 2249 fs/f2fs/segment.c if (!__is_valid_data_blkaddr(blkaddr)) blkaddr 2254 fs/f2fs/segment.c segno = GET_SEGNO(sbi, blkaddr); blkaddr 2256 fs/f2fs/segment.c offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); blkaddr 3401 fs/f2fs/segment.c void f2fs_wait_on_block_writeback(struct inode *inode, block_t blkaddr) blkaddr 3409 fs/f2fs/segment.c if (!__is_valid_data_blkaddr(blkaddr)) blkaddr 3412 fs/f2fs/segment.c cpage = find_lock_page(META_MAPPING(sbi), blkaddr); blkaddr 3419 fs/f2fs/segment.c void f2fs_wait_on_block_writeback_range(struct inode *inode, block_t blkaddr, blkaddr 3425 fs/f2fs/segment.c f2fs_wait_on_block_writeback(inode, blkaddr + i); blkaddr 3607 fs/f2fs/segment.c static void write_compacted_summaries(struct f2fs_sb_info *sbi, block_t blkaddr) blkaddr 3616 fs/f2fs/segment.c page = f2fs_grab_meta_page(sbi, blkaddr++); blkaddr 3641 fs/f2fs/segment.c page = f2fs_grab_meta_page(sbi, blkaddr++); blkaddr 3666 fs/f2fs/segment.c block_t blkaddr, int type) blkaddr 3675 fs/f2fs/segment.c write_current_sum_page(sbi, i, blkaddr + (i - type)); blkaddr 62 include/trace/events/erofs.h __field(erofs_blk_t, blkaddr ) blkaddr 70 include/trace/events/erofs.h __entry->blkaddr = erofs_blknr(iloc(EROFS_I_SB(inode), __entry->nid)); blkaddr 77 include/trace/events/erofs.h __entry->blkaddr, __entry->ofs, blkaddr 1574 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, unsigned int pgofs, block_t blkaddr, blkaddr 1577 include/trace/events/f2fs.h TP_ARGS(inode, pgofs, blkaddr, len), blkaddr 1591 include/trace/events/f2fs.h __entry->blk = blkaddr;