Home
last modified time | relevance | path

Searched refs:bpid (Results 1 – 25 of 60) sorted by relevance

123

/f-stack/dpdk/drivers/mempool/dpaa/
H A Ddpaa_mempool.c48 uint8_t bpid; in dpaa_mbuf_create_pool() local
70 bpid = bman_get_params(bp)->bpid; in dpaa_mbuf_create_pool()
86 num_bufs, bpid); in dpaa_mbuf_create_pool()
98 rte_dpaa_bpid_info[bpid].mp = mp; in dpaa_mbuf_create_pool()
99 rte_dpaa_bpid_info[bpid].bpid = bpid; in dpaa_mbuf_create_pool()
135 bp_info->bpid); in dpaa_mbuf_free_pool()
148 addr, bp_info->bpid); in dpaa_buf_free()
170 n, bp_info->bpid); in dpaa_mbuf_free_bulk()
199 n, bp_info->bpid); in dpaa_mbuf_free_bulk()
219 count, bp_info->bpid); in dpaa_mbuf_alloc_bulk()
[all …]
H A Ddpaa_mempool.h37 uint32_t bpid; member
55 (((struct dpaa_bp_info *)__mp->pool_data)->bpid)
/f-stack/dpdk/drivers/bus/dpaa/base/qbman/
H A Dbman.c59 u8 bpid = 0; in bman_create_portal() local
82 while (bpid < bman_pool_max) { in bman_create_portal()
87 bm_isr_bscn_mask(p, bpid, 0); in bman_create_portal()
88 bpid++; in bman_create_portal()
186 u32 bpid; in bman_new_pool() local
196 bpid = params->bpid; in bman_new_pool()
213 pool->params.bpid = bpid; in bman_new_pool()
221 bman_release_bpid(bpid); in bman_new_pool()
308 mcc->acquire.bpid = pool->params.bpid; in bman_acquire()
350 u32 bpid; in bman_update_pool_thresholds() local
[all …]
H A Dbman_driver.c232 u32 bm_pool_free_buffers(u32 bpid) in bm_pool_free_buffers() argument
261 if (bpid >= bman_pool_max) in bm_pool_set()
263 out_be32(bman_ccsr_map + POOL_SWDET(bpid), in bm_pool_set()
265 out_be32(bman_ccsr_map + POOL_SWDXT(bpid), in bm_pool_set()
267 out_be32(bman_ccsr_map + POOL_HWDET(bpid), in bm_pool_set()
269 out_be32(bman_ccsr_map + POOL_HWDXT(bpid), in bm_pool_set()
281 if (bpid >= bman_pool_max) in bm_pool_set_hw_threshold()
284 out_be32(bman_ccsr_map + POOL_HWDET(bpid), in bm_pool_set_hw_threshold()
286 out_be32(bman_ccsr_map + POOL_HWDXT(bpid), in bm_pool_set_hw_threshold()
289 out_be32(bman_ccsr_map + POOL_HWDET(bpid), in bm_pool_set_hw_threshold()
[all …]
H A Ddpaa_alloc.c18 void bman_release_bpid_range(u32 bpid, u32 count) in bman_release_bpid_range() argument
20 process_release(dpaa_id_bpid, bpid, count); in bman_release_bpid_range()
23 int bman_reserve_bpid_range(u32 bpid, u32 count) in bman_reserve_bpid_range() argument
25 return process_reserve(dpaa_id_bpid, bpid, count); in bman_reserve_bpid_range()
H A Dbman.h480 #define SCN_REG(bpid) BM_REG_SCN((bpid) / 32) argument
481 #define SCN_BIT(bpid) (0x80000000 >> (bpid & 31)) argument
482 static inline void bm_isr_bscn_mask(struct bm_portal *portal, u8 bpid, in bm_isr_bscn_mask() argument
487 DPAA_ASSERT(bpid < bman_pool_max); in bm_isr_bscn_mask()
489 val = __bm_in(&portal->addr, SCN_REG(bpid)); in bm_isr_bscn_mask()
491 val |= SCN_BIT(bpid); in bm_isr_bscn_mask()
493 val &= ~SCN_BIT(bpid); in bm_isr_bscn_mask()
494 __bm_out(&portal->addr, SCN_REG(bpid), val); in bm_isr_bscn_mask()
517 static inline int bm_shutdown_pool(struct bm_portal *p, u32 bpid) in bm_shutdown_pool() argument
528 bm_cmd->acquire.bpid = bpid; in bm_shutdown_pool()
H A Dbman_priv.h87 int bm_pool_set(u32 bpid, const u32 *thresholds);
90 u32 bm_pool_free_buffers(u32 bpid);
/f-stack/dpdk/drivers/bus/dpaa/include/
H A Dfsl_bman.h47 u8 bpid; member
53 u8 bpid;
91 u8 bpid; /* used with BM_RCR_VERB_CMD_BPID_SINGLE */ member
106 u8 bpid; member
146 u8 bpid; member
174 u32 bpid; member
242 static inline void bman_release_bpid(u32 bpid) in bman_release_bpid() argument
244 bman_release_bpid_range(bpid, 1); in bman_release_bpid()
248 static inline int bman_reserve_bpid(u32 bpid) in bman_reserve_bpid() argument
250 return bman_reserve_bpid_range(bpid, 1); in bman_reserve_bpid()
[all …]
H A Dfsl_fman.h93 void fman_if_set_bp(struct fman_if *fm_if, unsigned int num, int bpid,
103 u32 high_water, u32 low_water, u32 bpid);
/f-stack/dpdk/drivers/mempool/dpaa2/
H A Ddpaa2_hw_mempool.c46 uint32_t bpid; in rte_hw_mbuf_create_pool() local
113 bp_list->buf_pool.bpid = dpbp_attr.bpid; in rte_hw_mbuf_create_pool()
121 bpid = dpbp_attr.bpid; in rte_hw_mbuf_create_pool()
125 rte_dpaa2_bpid_info[bpid].bp_list = bp_list; in rte_hw_mbuf_create_pool()
126 rte_dpaa2_bpid_info[bpid].bpid = bpid; in rte_hw_mbuf_create_pool()
187 uint32_t bpid, in rte_dpaa2_mbuf_release() argument
212 qbman_release_desc_set_bpid(&releasedesc, bpid); in rte_dpaa2_mbuf_release()
277 return bp_info->bpid; in rte_dpaa2_mbuf_pool_bpid()
303 uint16_t bpid; in rte_dpaa2_mbuf_alloc_bulk() local
316 bpid = bp_info->bpid; in rte_dpaa2_mbuf_alloc_bulk()
[all …]
H A Ddpaa2_hw_mempool.h24 uint16_t bpid; member
31 uint16_t bpid; /**< Pool ID, from pool configuration */ member
53 uint32_t bpid; member
58 #define mempool_to_bpid(mp) ((mempool_to_bpinfo(mp))->bpid)
/f-stack/freebsd/contrib/ncsw/Peripherals/BM/
H A Dfsl_bman.h97 static __inline__ int bman_depletion_get(const struct bman_depletion *c, uint8_t bpid) in bman_depletion_get() argument
99 return (int)(c->__state[__bmdep_word(bpid)] & __bmdep_bit(bpid)); in bman_depletion_get()
101 static __inline__ void bman_depletion_set(struct bman_depletion *c, uint8_t bpid) in bman_depletion_set() argument
103 c->__state[__bmdep_word(bpid)] |= __bmdep_bit(bpid); in bman_depletion_set()
105 static __inline__ void bman_depletion_unset(struct bman_depletion *c, uint8_t bpid) in bman_depletion_unset() argument
107 c->__state[__bmdep_word(bpid)] &= ~__bmdep_bit(bpid); in bman_depletion_unset()
191 void bm_isr_bscn_mask(struct bm_portal *portal, uint8_t bpid, int enable);
238 volatile uint8_t bpid; member
248 volatile uint8_t bpid; /* used with BM_RCR_VERB_CMD_BPID_SINGLE */ member
261 volatile uint8_t bpid; member
[all …]
H A Dbm_pool.c63 p_Portal->depletionPoolsTable[p_BmPool->bpid] = p_BmPool; in depletion_link()
73 p_Portal->depletionPoolsTable[p_BmPool->bpid] = NULL; in depletion_unlink()
120 p_BmPool->bpid, in BmPoolRelease()
148 p_BmPool->bpid, in BmPoolAcquire()
186 BmBpidPut(p_BmPool->h_Bm, p_BmPool->bpid); in BmPoolFree()
255 BM_POOL_ConfigBpid(p_BmPool, p_BmPoolParam->bpid); in BM_POOL_Config()
334 t_Error BM_POOL_ConfigBpid(t_Handle h_BmPool, uint8_t bpid) in BM_POOL_ConfigBpid() argument
343 p_BmPool->bpid = bpid; in BM_POOL_ConfigBpid()
435 p_BmPool->bpid, in BM_POOL_GetBuf()
453 bufs[0].bpid = p_BmPool->bpid; in BM_POOL_PutBuf()
[all …]
H A Dbm.c111 ipcPoolThresh.bpid, in BmHandleIpcMsgCB()
135 ipcCounter.bpid); in BmHandleIpcMsgCB()
158 tmp = BmBpidGet(p_Bm, TRUE, ipcBpid.bpid); in BmHandleIpcMsgCB()
169 if ((err = BmBpidPut(p_Bm, ipcBpid.bpid)) != E_OK) in BmHandleIpcMsgCB()
214 uint8_t bpid, in BmSetPool() argument
247 bpid, in BmSetPoolThresholds()
260 ipcPoolThresh.bpid = bpid; in BmSetPoolThresholds()
278 t_Error BmUnSetPoolThresholds(t_Handle h_Bm, uint8_t bpid) in BmUnSetPoolThresholds() argument
288 bpid, in BmUnSetPoolThresholds()
302 ipcPoolThresh.bpid = bpid; in BmUnSetPoolThresholds()
[all …]
H A Dbm_ipc.h96 uint8_t bpid; /**< IN */
102 uint8_t bpid; /**< IN */
108 uint8_t bpid; /**< IN */
H A Dbm_portal.c96 uint8_t bpid = 0; in bman_create_portal() local
137 while (bpid < BM_MAX_NUM_OF_POOLS) { in bman_create_portal()
140 bm_isr_bscn_mask(p_BmPortal->p_BmPortalLow, bpid, 0); in bman_create_portal()
141 bpid++; in bman_create_portal()
369 uint8_t bpid, in BmPortalRelease() argument
390 r->bpid = bpid; in BmPortalRelease()
405 uint8_t bpid, in BmPortalAcquire() argument
417 mcc->acquire.bpid = bpid; in BmPortalAcquire()
425 bufs[num].bpid = bpid; in BmPortalAcquire()
H A Dbm.h228 … uint8_t bpid; /**< index of the buffer pool to encapsulate (0-63) */ member
365 ipcBpid.bpid = (uint8_t)base; in BmBpidGet()
418 ipcBpid.bpid = (uint8_t)base; in BmBpidPut()
446 t_Error BmSetPoolThresholds(t_Handle h_Bm, uint8_t bpid, const uint32_t *thresholds);
447 t_Error BmUnSetPoolThresholds(t_Handle h_Bm, uint8_t bpid);
448 uint8_t BmPortalAcquire(t_Handle h_BmPortal, uint8_t bpid, struct bm_buffer *bufs, uint8_t num);
449 t_Error BmPortalRelease(t_Handle h_BmPortal, uint8_t bpid, struct bm_buffer *bufs, uint8_t num, uin…
451 uint32_t BmGetCounter(t_Handle h_Bm, e_BmInterModuleCounters counter, uint8_t bpid);
H A Dbman_low.c472 #define SCN_REG(bpid) REG_SCN((bpid) / 32) argument
473 #define SCN_BIT(bpid) (0x80000000 >> (bpid & 31)) argument
474 void bm_isr_bscn_mask(struct bm_portal *portal, uint8_t bpid, int enable) in bm_isr_bscn_mask() argument
477 ASSERT_COND(bpid < BM_MAX_NUM_OF_POOLS); in bm_isr_bscn_mask()
479 val = __bm_in(&portal->addr, SCN_REG(bpid)); in bm_isr_bscn_mask()
481 val |= SCN_BIT(bpid); in bm_isr_bscn_mask()
483 val &= ~SCN_BIT(bpid); in bm_isr_bscn_mask()
484 __bm_out(&portal->addr, SCN_REG(bpid), val); in bm_isr_bscn_mask()
/f-stack/dpdk/drivers/net/octeontx2/
H A Dotx2_flow_ctrl.c33 fc->bpid[0] = rsp->chan_bpid[0]; in otx2_nix_rxchan_bpid_cfg()
41 memset(fc->bpid, 0, sizeof(uint16_t) * NIX_MAX_CHAN); in otx2_nix_rxchan_bpid_cfg()
113 aq->cq.bpid = fc->bpid[0]; in otx2_nix_cq_bp_cfg()
114 aq->cq_mask.bpid = ~(aq->cq_mask.bpid); in otx2_nix_cq_bp_cfg()
/f-stack/dpdk/drivers/net/dpaa/
H A Ddpaa_rxtx.c58 (_fd)->bpid = _bpid; \
445 bp_info = DPAA_BPID_TO_POOL_INFO(fd->bpid); in dpaa_free_mbuf()
514 bp_info = DPAA_BPID_TO_POOL_INFO(dqrr[0]->fd.bpid); in dpaa_rx_cb_no_prefetch()
797 uint32_t bpid) in dpaa_eth_mbuf_to_sg_fd() argument
843 fd->bpid = bpid; in dpaa_eth_mbuf_to_sg_fd()
858 sg_temp->bpid = 0xff; in dpaa_eth_mbuf_to_sg_fd()
861 sg_temp->bpid = in dpaa_eth_mbuf_to_sg_fd()
872 sg_temp->bpid = 0xff; in dpaa_eth_mbuf_to_sg_fd()
874 sg_temp->bpid = DPAA_MEMPOOL_TO_BPID(mi->pool); in dpaa_eth_mbuf_to_sg_fd()
912 DPAA_MBUF_TO_CONTIG_FD(mbuf, fd_arr, bp_info->bpid); in tx_on_dpaa_pool_unsegmented()
[all …]
/f-stack/dpdk/drivers/net/dpaa2/
H A Ddpaa2_rxtx.c885 uint32_t bpid; in dpaa2_dev_tx_conf() local
1029 uint16_t bpid; in dpaa2_dev_tx() local
1134 bpid = priv->bp_list->buf_pool.bpid; in dpaa2_dev_tx()
1142 &fd_arr[loop], bpid)) { in dpaa2_dev_tx()
1148 bpid = mempool_to_bpid(mp); in dpaa2_dev_tx()
1151 &fd_arr[loop], bpid)) in dpaa2_dev_tx()
1295 uint16_t bpid; in dpaa2_dev_tx_ordered() local
1390 bpid = priv->bp_list->buf_pool.bpid; in dpaa2_dev_tx_ordered()
1398 &fd_arr[loop], bpid)) { in dpaa2_dev_tx_ordered()
1404 bpid = mempool_to_bpid(mp); in dpaa2_dev_tx_ordered()
[all …]
/f-stack/dpdk/drivers/crypto/dpaa2_sec/
H A Ddpaa2_sec_dpseci.c99 if (likely(bpid < MAX_BPID)) { in build_proto_compound_sg_fd()
100 DPAA2_SET_FD_BPID(fd, bpid); in build_proto_compound_sg_fd()
212 if (likely(bpid < MAX_BPID)) { in build_proto_compound_fd()
213 DPAA2_SET_FD_BPID(fd, bpid); in build_proto_compound_fd()
269 if (likely(bpid < MAX_BPID)) in build_proto_fd()
270 DPAA2_SET_FD_BPID(fd, bpid); in build_proto_fd()
472 if (likely(bpid < MAX_BPID)) { in build_authenc_gcm_fd()
473 DPAA2_SET_FD_BPID(fd, bpid); in build_authenc_gcm_fd()
765 DPAA2_SET_FD_BPID(fd, bpid); in build_authenc_fd()
870 __rte_unused uint16_t bpid) in build_auth_sg_fd() argument
[all …]
/f-stack/dpdk/drivers/bus/fslmc/portal/
H A Ddpaa2_hw_pvt.h217 uint32_t bpid:14; /* Frame buffer pool ID */ member
258 #define DPAA2_SET_FD_BPID(fd, bpid) ((fd)->simple.bpid_offset |= bpid) argument
259 #define DPAA2_SET_ONLY_FD_BPID(fd, bpid) \ argument
260 ((fd)->simple.bpid_offset = bpid)
299 #define DPAA2_SET_FLE_BPID(fle, bpid) ((fle)->fin_bpid_offset |= (size_t)bpid) argument
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmx-helper-cfg.c633 int pknd, bpid, pko_port_base; in __cvmx_helper_cfg_init() local
657 bpid = 0; in __cvmx_helper_cfg_init()
675 bpid++, in __cvmx_helper_cfg_init()
684 cvmx_helper_cfg_assert(bpid <= CVMX_HELPER_CFG_MAX_PIP_BPID); in __cvmx_helper_cfg_init()
/f-stack/freebsd/contrib/ncsw/inc/Peripherals/
H A Dbm_ext.h433 …uint8_t bpid; /**< index of the shadow buffer pool (0-BM_MAX_NUM… member
487 t_Error BM_POOL_ConfigBpid(t_Handle h_BmPool, uint8_t bpid);

123