schq 504 drivers/net/ethernet/marvell/octeontx2/af/mbox.h u16 schq[NIX_TXSCH_LVL_CNT]; /* No of non-contiguous queues */ schq 511 drivers/net/ethernet/marvell/octeontx2/af/mbox.h u16 schq[NIX_TXSCH_LVL_CNT]; schq 524 drivers/net/ethernet/marvell/octeontx2/af/mbox.h u16 schq; schq 157 drivers/net/ethernet/marvell/octeontx2/af/rvu.h struct rsrc_bmap schq; schq 139 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int lvl, u16 pcifunc, u16 schq) schq 151 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (schq >= txsch->schq.max) schq 155 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c map_func = TXSCH_MAP_FUNC(txsch->pfvf_map[schq]); schq 1010 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int lvl, int schq) schq 1017 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cir_reg = NIX_AF_TL1X_CIR(schq); schq 1021 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cir_reg = NIX_AF_TL2X_CIR(schq); schq 1022 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pir_reg = NIX_AF_TL2X_PIR(schq); schq 1025 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cir_reg = NIX_AF_TL3X_CIR(schq); schq 1026 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pir_reg = NIX_AF_TL3X_PIR(schq); schq 1029 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cir_reg = NIX_AF_TL4X_CIR(schq); schq 1030 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pir_reg = NIX_AF_TL4X_PIR(schq); schq 1046 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int lvl, int schq) schq 1053 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_TL4X_SDP_LINK_CFG(schq), 0x00); schq 1061 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c NIX_AF_TL3_TL2X_LINKX_CFG(schq, link), 0x00); schq 1100 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (schq_base + 1 > txsch->schq.max) schq 1142 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 schq; schq 1156 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c req_schq = req->schq_contig[lvl] + req->schq[lvl]; schq 1165 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c req->schq[lvl] > 2 || schq 1178 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !rvu_rsrc_check_contig(&txsch->schq, req->schq_contig[lvl])) schq 1182 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (req_schq >= rvu_rsrc_free_count(&txsch->schq)) schq 1190 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rsp->schq[lvl] = req->schq[lvl]; schq 1192 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!req->schq[lvl] && !req->schq_contig[lvl]) schq 1204 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c &rsp->schq[lvl]); schq 1210 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq = rvu_alloc_rsrc_contig(&txsch->schq, schq 1214 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf_map[schq] = TXSCH_MAP(pcifunc, 0); schq 1215 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, lvl, schq); schq 1216 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_shaping(rvu, blkaddr, lvl, schq); schq 1217 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rsp->schq_contig_list[lvl][idx] = schq; schq 1218 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq++; schq 1223 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c for (idx = 0; idx < req->schq[lvl]; idx++) { schq 1224 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq = rvu_alloc_rsrc(&txsch->schq); schq 1225 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf_map[schq] = TXSCH_MAP(pcifunc, 0); schq 1226 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, lvl, schq); schq 1227 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_shaping(rvu, blkaddr, lvl, schq); schq 1228 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rsp->schq_list[lvl][idx] = schq; schq 1241 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, nixlf, lvl, schq, err; schq 1266 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c for (schq = 0; schq < txsch->schq.max; schq++) { schq 1267 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) schq 1269 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c nix_reset_tx_linkcfg(rvu, blkaddr, lvl, schq); schq 1275 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c for (schq = 0; schq < txsch->schq.max; schq++) { schq 1276 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) schq 1278 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq)); schq 1281 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq), cfg); schq 1285 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c NIX_AF_SMQX_CFG(schq), BIT_ULL(49), true); schq 1288 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c "NIXLF%d: SMQ%d flush failed\n", nixlf, schq); schq 1301 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c for (schq = 0; schq < txsch->schq.max; schq++) { schq 1302 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) schq 1304 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_free_rsrc(&txsch->schq, schq); schq 1305 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c txsch->pfvf_map[schq] = 0; schq 1322 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int lvl, schq, nixlf, blkaddr, rc; schq 1343 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq = req->schq; schq 1348 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq >= txsch->schq.max) schq 1354 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(pfvf_map[schq]) != pcifunc) { schq 1363 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq)); schq 1366 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq), cfg); schq 1370 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c NIX_AF_SMQX_CFG(schq), BIT_ULL(49), true); schq 1373 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c "NIXLF%d: SMQ%d flush failed\n", nixlf, schq); schq 1378 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_free_rsrc(&txsch->schq, schq); schq 1379 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c txsch->pfvf_map[schq] = 0; schq 1400 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 schq, parent; schq 1405 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq = TXSCHQ_IDX(reg, TXSCHQ_IDX_SHIFT); schq 1407 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (!is_valid_txschq(rvu, blkaddr, lvl, pcifunc, schq)) schq 1437 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 schq_list[2], schq_cnt, schq; schq 1462 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq = schq_list[idx]; schq 1463 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c map_func = TXSCH_MAP_FUNC(pfvf_map[schq]); schq 1464 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c map_flags = TXSCH_MAP_FLAGS(pfvf_map[schq]); schq 1471 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c reg = NIX_AF_TL1X_TOPOLOGY(schq); schq 1474 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c reg = NIX_AF_TL1X_SCHEDULE(schq); schq 1477 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c reg = NIX_AF_TL1X_CIR(schq); schq 1482 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf_map[schq] = TXSCH_MAP(map_func, map_flags); schq 1493 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c u16 schq, pcifunc = req->hdr.pcifunc; schq 1550 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c schq = TXSCHQ_IDX(reg, TXSCHQ_IDX_SHIFT); schq 1554 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c map_func = TXSCH_MAP_FUNC(pfvf_map[schq]); schq 1555 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c map_flags = TXSCH_MAP_FLAGS(pfvf_map[schq]); schq 1558 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c pfvf_map[schq] = TXSCH_MAP(map_func, map_flags); schq 1879 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c txsch->schq.max = cfg & 0xFFFF; schq 1880 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c err = rvu_alloc_bitmap(&txsch->schq); schq 1887 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c txsch->pfvf_map = devm_kcalloc(rvu->dev, txsch->schq.max, schq 1891 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c memset(txsch->pfvf_map, U8_MAX, txsch->schq.max * sizeof(u32)); schq 2373 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, schq, link = -1; schq 2400 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c for (schq = 0; schq < txsch->schq.max; schq++) { schq 2401 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (TXSCH_MAP_FUNC(txsch->pfvf_map[schq]) != pcifunc) schq 2403 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c cfg = rvu_read64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq)); schq 2407 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rvu_write64(rvu, blkaddr, NIX_AF_SMQX_CFG(schq), cfg); schq 2818 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c kfree(txsch->schq.bmap);