Home
last modified time | relevance | path

Searched refs:npalf (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npa.c60 int blkaddr, npalf, rc = 0; in rvu_npa_aq_enq_inst() local
73 if (!pfvf->npalf || blkaddr < 0) in rvu_npa_aq_enq_inst()
83 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_npa_aq_enq_inst()
84 if (npalf < 0) in rvu_npa_aq_enq_inst()
89 inst.lf = npalf; in rvu_npa_aq_enq_inst()
325 int npalf, qints, hwctx_size, err, rc = 0; in rvu_mbox_handler_npa_lf_alloc() local
342 if (!pfvf->npalf || blkaddr < 0) in rvu_mbox_handler_npa_lf_alloc()
346 npalf = rvu_get_lf(rvu, block, pcifunc, 0); in rvu_mbox_handler_npa_lf_alloc()
347 if (npalf < 0) in rvu_mbox_handler_npa_lf_alloc()
351 err = rvu_lf_reset(rvu, block, npalf); in rvu_mbox_handler_npa_lf_alloc()
[all …]
Drvu_debugfs.c567 int npalf, id, all; in rvu_dbg_npa_ctx_display() local
575 npalf = rvu->rvu_dbg.npa_aura_ctx.lf; in rvu_dbg_npa_ctx_display()
581 npalf = rvu->rvu_dbg.npa_pool_ctx.lf; in rvu_dbg_npa_ctx_display()
589 if (!rvu_dbg_is_valid_lf(rvu, BLKTYPE_NPA, npalf, &pcifunc)) in rvu_dbg_npa_ctx_display()
641 int npalf, int id, int ctype) in write_npa_ctx() argument
647 if (!rvu_dbg_is_valid_lf(rvu, BLKTYPE_NPA, npalf, &pcifunc)) in write_npa_ctx()
675 rvu->rvu_dbg.npa_aura_ctx.lf = npalf; in write_npa_ctx()
681 rvu->rvu_dbg.npa_pool_ctx.lf = npalf; in write_npa_ctx()
692 const char __user *buffer, int *npalf, in parse_cmd_buffer_ctx() argument
713 ret = subtoken ? kstrtoint(subtoken, 10, npalf) : -EINVAL; in parse_cmd_buffer_ctx()
[all …]
Drvu.h134 bool npalf; /* Only one NPALF per RVU_FUNC */ member
474 void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf);
485 void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int npalf);
Drvu.c321 pfvf->npalf = attach ? true : false; in rvu_update_rsrc_map()
322 num_lfs = pfvf->npalf; in rvu_update_rsrc_map()
1042 return pfvf->npalf ? 1 : 0; in rvu_get_rsrc_mapcount()
1155 if (blkid == BLKADDR_NPA && !detach->npalf) in rvu_detach_rsrcs()
1229 if (req->npalf && !rvu_get_rsrc_mapcount(pfvf, BLKTYPE_NPA)) { in rvu_check_rsrc_availability()
1234 } else if (req->npalf) { in rvu_check_rsrc_availability()
1342 if (attach->npalf) in rvu_mbox_handler_attach_resources()
Dmbox.h278 u8 npalf:1; member
294 u8 npalf:1; member
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.c1330 struct npa_lf_alloc_req *npalf; in otx2_config_npa() local
1347 npalf = otx2_mbox_alloc_msg_npa_lf_alloc(&pfvf->mbox); in otx2_config_npa()
1348 if (!npalf) in otx2_config_npa()
1352 npalf->nr_pools = hw->pool_cnt; in otx2_config_npa()
1354 npalf->aura_sz = (aura_cnt >= ilog2(128)) ? (aura_cnt - 6) : 1; in otx2_config_npa()
1394 attach->npalf = true; in otx2_attach_npa_nix()