Lines Matching refs:pkind
86 void rvu_npc_set_pkind(struct rvu *rvu, int pkind, struct rvu_pfvf *pfvf) in rvu_npc_set_pkind() argument
96 val = pkind | 1ULL << 62; in rvu_npc_set_pkind()
97 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_CPI_DEFX(pkind, 0), val); in rvu_npc_set_pkind()
102 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_get_pkind() local
106 for (i = 0; i < pkind->rsrc.max; i++) { in rvu_npc_get_pkind()
107 map = pkind->pfchan_map[i]; in rvu_npc_get_pkind()
118 int pkind, blkaddr; in npc_config_ts_kpuaction() local
121 pkind = rvu_npc_get_pkind(rvu, pf); in npc_config_ts_kpuaction()
122 if (pkind < 0) { in npc_config_ts_kpuaction()
133 val = rvu_read64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind)); in npc_config_ts_kpuaction()
139 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind), val); in npc_config_ts_kpuaction()
1395 int kpu, int entry, bool pkind) in npc_config_kpuaction() argument
1407 if (pkind) in npc_config_kpuaction()
1427 if (pkind) in npc_config_kpuaction()
1925 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_hw_init() local
1936 pkind->rsrc.max = NPC_UNRESERVED_PKIND_COUNT; in rvu_npc_hw_init()
2040 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_init() local
2059 err = rvu_alloc_bitmap(&pkind->rsrc); in rvu_npc_init()
2065 rvu_alloc_rsrc(&pkind->rsrc); in rvu_npc_init()
2068 pkind->pfchan_map = devm_kcalloc(rvu->dev, pkind->rsrc.max, in rvu_npc_init()
2070 if (!pkind->pfchan_map) in rvu_npc_init()
2123 struct npc_pkind *pkind = &rvu->hw->pkind; in rvu_npc_freemem() local
2126 kfree(pkind->rsrc.bmap); in rvu_npc_freemem()
3246 npc_set_var_len_offset_pkind(struct rvu *rvu, u16 pcifunc, u64 pkind, in npc_set_var_len_offset_pkind() argument
3268 val = rvu_read64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind)); in npc_set_var_len_offset_pkind()
3274 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind), val); in npc_set_var_len_offset_pkind()
3279 u64 pkind, u8 var_len_off, u8 var_len_off_mask, in rvu_npc_set_parse_mode() argument
3295 if (pkind == NPC_RX_CUSTOM_PRE_L2_PKIND) { in rvu_npc_set_parse_mode()
3296 rc = npc_set_var_len_offset_pkind(rvu, pcifunc, pkind, in rvu_npc_set_parse_mode()
3303 rxpkind = pkind; in rvu_npc_set_parse_mode()
3304 txpkind = pkind; in rvu_npc_set_parse_mode()
3337 req->dir, req->pkind, req->var_len_off, in rvu_mbox_handler_npc_set_pkind()