Lines Matching refs:blkaddr

66 	int blkaddr, npalf, rc = 0;  in rvu_npa_aq_enq_inst()  local
78 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_npa_aq_enq_inst()
79 if (!pfvf->npalf || blkaddr < 0) in rvu_npa_aq_enq_inst()
82 block = &hw->block[blkaddr]; in rvu_npa_aq_enq_inst()
337 int blkaddr; in rvu_mbox_handler_npa_lf_alloc() local
347 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_mbox_handler_npa_lf_alloc()
348 if (!pfvf->npalf || blkaddr < 0) in rvu_mbox_handler_npa_lf_alloc()
351 block = &hw->block[blkaddr]; in rvu_mbox_handler_npa_lf_alloc()
363 ctx_cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST1); in rvu_mbox_handler_npa_lf_alloc()
389 cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST); in rvu_mbox_handler_npa_lf_alloc()
398 cfg = rvu_read64(rvu, blkaddr, NPA_AF_LFX_AURAS_CFG(npalf)); in rvu_mbox_handler_npa_lf_alloc()
404 rvu_write64(rvu, blkaddr, NPA_AF_LFX_AURAS_CFG(npalf), cfg); in rvu_mbox_handler_npa_lf_alloc()
407 rvu_write64(rvu, blkaddr, NPA_AF_LFX_LOC_AURAS_BASE(npalf), in rvu_mbox_handler_npa_lf_alloc()
411 rvu_write64(rvu, blkaddr, NPA_AF_LFX_QINTS_CFG(npalf), in rvu_mbox_handler_npa_lf_alloc()
413 rvu_write64(rvu, blkaddr, NPA_AF_LFX_QINTS_BASE(npalf), in rvu_mbox_handler_npa_lf_alloc()
424 cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST); in rvu_mbox_handler_npa_lf_alloc()
443 int blkaddr; in rvu_mbox_handler_npa_lf_free() local
446 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_mbox_handler_npa_lf_free()
447 if (!pfvf->npalf || blkaddr < 0) in rvu_mbox_handler_npa_lf_free()
450 block = &hw->block[blkaddr]; in rvu_mbox_handler_npa_lf_free()
517 int blkaddr; in rvu_npa_init() local
519 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_init()
520 if (blkaddr < 0) in rvu_npa_init()
524 return npa_aq_init(rvu, &hw->block[blkaddr]); in rvu_npa_init()
531 int blkaddr; in rvu_npa_freemem() local
533 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0); in rvu_npa_freemem()
534 if (blkaddr < 0) in rvu_npa_freemem()
537 block = &hw->block[blkaddr]; in rvu_npa_freemem()
565 int rvu_ndc_fix_locked_cacheline(struct rvu *rvu, int blkaddr) in rvu_ndc_fix_locked_cacheline() argument
571 reg = rvu_read64(rvu, blkaddr, NDC_AF_CAMS_RD_INTERVAL); in rvu_ndc_fix_locked_cacheline()
572 rvu_write64(rvu, blkaddr, NDC_AF_CAMS_RD_INTERVAL, reg & GENMASK_ULL(62, 0)); in rvu_ndc_fix_locked_cacheline()
575 err = rvu_poll_reg(rvu, blkaddr, NDC_AF_CAMS_RD_INTERVAL, GENMASK_ULL(47, 32), true); in rvu_ndc_fix_locked_cacheline()
581 ndc_af_const = rvu_read64(rvu, blkaddr, NDC_AF_CONST); in rvu_ndc_fix_locked_cacheline()
590 reg = rvu_read64(rvu, blkaddr, in rvu_ndc_fix_locked_cacheline()
593 rvu_write64(rvu, blkaddr, in rvu_ndc_fix_locked_cacheline()