Lines Matching refs:bpid
497 int bpid, blkaddr, lmac_chan_cnt, sdp_chan_cnt; in rvu_nix_get_bpid() local
533 bpid = (cgx_id * hw->lmac_per_cgx * lmac_chan_cnt) + in rvu_nix_get_bpid()
537 bpid += chan_id; in rvu_nix_get_bpid()
538 if (bpid > cgx_bpid_cnt) in rvu_nix_get_bpid()
545 bpid = cgx_bpid_cnt + req->chan_base; in rvu_nix_get_bpid()
547 bpid += chan_id; in rvu_nix_get_bpid()
548 if (bpid > (cgx_bpid_cnt + lbk_bpid_cnt)) in rvu_nix_get_bpid()
555 bpid = sdp_bpid_cnt + req->chan_base; in rvu_nix_get_bpid()
557 bpid += chan_id; in rvu_nix_get_bpid()
559 if (bpid > (cgx_bpid_cnt + lbk_bpid_cnt + sdp_bpid_cnt)) in rvu_nix_get_bpid()
565 return bpid; in rvu_nix_get_bpid()
576 s16 bpid, bpid_base; in rvu_mbox_handler_nix_bp_enable() local
594 bpid = bpid_base; in rvu_mbox_handler_nix_bp_enable()
597 if (bpid < 0) { in rvu_mbox_handler_nix_bp_enable()
605 cfg | (bpid & GENMASK_ULL(8, 0)) | BIT_ULL(16)); in rvu_mbox_handler_nix_bp_enable()
607 bpid = rvu_nix_get_bpid(rvu, req, type, chan_id); in rvu_mbox_handler_nix_bp_enable()