Lines Matching refs:pkind

64 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf)  in rvu_npc_set_pkind()  argument
74 val = pkind | 1ULL << 62; in rvu_npc_set_pkind()
75 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_CPI_DEFX(pkind, 0), val); in rvu_npc_set_pkind()
80 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_get_pkind() local
84 for (i = 0; i < pkind->rsrc.max; i++) { in rvu_npc_get_pkind()
85 map = pkind->pfchan_map[i]; in rvu_npc_get_pkind()
96 int pkind, blkaddr; in npc_config_ts_kpuaction() local
99 pkind = rvu_npc_get_pkind(rvu, pf); in npc_config_ts_kpuaction()
100 if (pkind < 0) { in npc_config_ts_kpuaction()
111 val = rvu_read64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind)); in npc_config_ts_kpuaction()
117 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind), val); in npc_config_ts_kpuaction()
1426 int kpu, int entry, bool pkind) in npc_config_kpuaction() argument
1438 if (pkind) in npc_config_kpuaction()
1458 if (pkind) in npc_config_kpuaction()
1981 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_hw_init() local
1992 pkind->rsrc.max = NPC_UNRESERVED_PKIND_COUNT; in rvu_npc_hw_init()
2096 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_init() local
2115 err = rvu_alloc_bitmap(&pkind->rsrc); in rvu_npc_init()
2121 rvu_alloc_rsrc(&pkind->rsrc); in rvu_npc_init()
2124 pkind->pfchan_map = devm_kcalloc(rvu->dev, pkind->rsrc.max, in rvu_npc_init()
2126 if (!pkind->pfchan_map) in rvu_npc_init()
2179 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_freemem() local
2182 kfree(pkind->rsrc.bmap); in rvu_npc_freemem()
3302 npc_set_var_len_offset_pkind(struct rvu *rvu, u16 pcifunc, u64 pkind, in npc_set_var_len_offset_pkind() argument
3324 val = rvu_read64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind)); in npc_set_var_len_offset_pkind()
3330 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind), val); in npc_set_var_len_offset_pkind()
3335 u64 pkind, u8 var_len_off, u8 var_len_off_mask, in rvu_npc_set_parse_mode() argument
3351 if (pkind == NPC_RX_CUSTOM_PRE_L2_PKIND) { in rvu_npc_set_parse_mode()
3352 rc = npc_set_var_len_offset_pkind(rvu, pcifunc, pkind, in rvu_npc_set_parse_mode()
3359 rxpkind = pkind; in rvu_npc_set_parse_mode()
3360 txpkind = pkind; in rvu_npc_set_parse_mode()
3393 req->dir, req->pkind, req->var_len_off, in rvu_mbox_handler_npc_set_pkind()