Lines Matching refs:bpid
481 static struct dpaa_bp *dpaa_bpid2pool(int bpid) in dpaa_bpid2pool() argument
483 if (WARN_ON(bpid < 0 || bpid >= BM_MAX_NUM_OF_POOLS)) in dpaa_bpid2pool()
486 return dpaa_bp_array[bpid]; in dpaa_bpid2pool()
490 static bool dpaa_bpid2pool_use(int bpid) in dpaa_bpid2pool_use() argument
492 if (dpaa_bpid2pool(bpid)) { in dpaa_bpid2pool_use()
493 refcount_inc(&dpaa_bp_array[bpid]->refs); in dpaa_bpid2pool_use()
501 static void dpaa_bpid2pool_map(int bpid, struct dpaa_bp *dpaa_bp) in dpaa_bpid2pool_map() argument
503 dpaa_bp_array[bpid] = dpaa_bp; in dpaa_bpid2pool_map()
518 if (dpaa_bp->bpid != FSL_DPAA_BPID_INV && in dpaa_bp_alloc_pool()
519 dpaa_bpid2pool_use(dpaa_bp->bpid)) in dpaa_bp_alloc_pool()
522 if (dpaa_bp->bpid == FSL_DPAA_BPID_INV) { in dpaa_bp_alloc_pool()
530 dpaa_bp->bpid = (u8)bman_get_bpid(dpaa_bp->pool); in dpaa_bp_alloc_pool()
539 dpaa_bpid2pool_map(dpaa_bp->bpid, dpaa_bp); in dpaa_bp_alloc_pool()
583 struct dpaa_bp *bp = dpaa_bpid2pool(dpaa_bp->bpid); in dpaa_bp_free()
598 dpaa_bp_array[bp->bpid] = NULL; in dpaa_bp_free()
1280 rx_p->ext_buf_pools.ext_buf_pool[0].id = bp->bpid; in dpaa_eth_init_rx_port()
1348 dpaa_bp = dpaa_bpid2pool(sgt[i].bpid); in dpaa_release_sgt_members()
1361 sgt[i - 1].bpid == sgt[i].bpid); in dpaa_release_sgt_members()
1379 dpaa_bp = dpaa_bpid2pool(fd->bpid); in dpaa_fd_release()
1766 dpaa_bp = dpaa_bpid2pool(fd->bpid); in contig_fd_to_skb()
1826 dpaa_bp = dpaa_bpid2pool(sgt[i].bpid); in sg_fd_to_skb()
1899 dpaa_bp = dpaa_bpid2pool(sgt[j].bpid); in sg_fd_to_skb()
1929 fd->bpid = FSL_DPAA_BPID_INV; in skb_to_contig_fd()
2008 sgt[0].bpid = FSL_DPAA_BPID_INV; in skb_to_sg_fd()
2033 sgt[i + 1].bpid = FSL_DPAA_BPID_INV; in skb_to_sg_fd()
2058 fd->bpid = FSL_DPAA_BPID_INV; in skb_to_sg_fd()
2085 if (fd->bpid == FSL_DPAA_BPID_INV) in dpaa_xmit()
2468 dpaa_bp = dpaa_bpid2pool(dq->fd.bpid); in rx_error_dqrr()
2523 fd.bpid = FSL_DPAA_BPID_INV; in dpaa_xdp_xmit_frame()
2677 dpaa_bp = dpaa_bpid2pool(dq->fd.bpid); in rx_default_dqrr()
3225 dpaa_bp->bpid = FSL_DPAA_BPID_INV; in dpaa_bp_alloc()