Home
last modified time | relevance | path

Searched refs:p_pool (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/ofed/opensm/complib/
H A Dcl_pool.c58 void cl_qcpool_construct(IN cl_qcpool_t * const p_pool) in cl_qcpool_construct() argument
60 CL_ASSERT(p_pool); in cl_qcpool_construct()
62 memset(p_pool, 0, sizeof(cl_qcpool_t)); in cl_qcpool_construct()
64 p_pool->state = CL_UNINITIALIZED; in cl_qcpool_construct()
67 cl_status_t cl_qcpool_init(IN cl_qcpool_t * const p_pool, in cl_qcpool_init() argument
79 CL_ASSERT(p_pool); in cl_qcpool_init()
91 cl_qcpool_construct(p_pool); in cl_qcpool_init()
103 p_pool->component_sizes = (size_t *) malloc((sizeof(size_t) + in cl_qcpool_init()
107 if (!p_pool->component_sizes) in cl_qcpool_init()
110 memset(p_pool->component_sizes, 0, in cl_qcpool_init()
[all …]
/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_qpool.h244 void cl_qpool_construct(IN cl_qpool_t * const p_pool);
273 static inline uint32_t cl_is_qpool_inited(IN const cl_qpool_t * const p_pool) in cl_is_qpool_inited() argument
276 CL_ASSERT(p_pool); in cl_is_qpool_inited()
277 return (cl_is_qcpool_inited(&p_pool->qcpool)); in cl_is_qpool_inited()
309 cl_qpool_init(IN cl_qpool_t * const p_pool,
387 static inline void cl_qpool_destroy(IN cl_qpool_t * const p_pool) in cl_qpool_destroy() argument
389 CL_ASSERT(p_pool); in cl_qpool_destroy()
390 cl_qcpool_destroy(&p_pool->qcpool); in cl_qpool_destroy()
427 static inline size_t cl_qpool_count(IN cl_qpool_t * const p_pool) in cl_qpool_count() argument
429 CL_ASSERT(p_pool); in cl_qpool_count()
[all …]
H A Dcl_qcomppool.h119 struct _cl_qcpool *p_pool; member
351 void cl_qcpool_construct(IN cl_qcpool_t * const p_pool);
381 static inline uint32_t cl_is_qcpool_inited(IN const cl_qcpool_t * const p_pool) in cl_is_qcpool_inited() argument
384 CL_ASSERT(p_pool); in cl_is_qcpool_inited()
386 CL_ASSERT(cl_is_state_valid(p_pool->state)); in cl_is_qcpool_inited()
388 return (p_pool->state == CL_INITIALIZED); in cl_is_qcpool_inited()
419 cl_qcpool_init(IN cl_qcpool_t * const p_pool,
506 void cl_qcpool_destroy(IN cl_qcpool_t * const p_pool);
541 static inline size_t cl_qcpool_count(IN cl_qcpool_t * const p_pool) in cl_qcpool_count() argument
543 CL_ASSERT(p_pool); in cl_qcpool_count()
[all …]
H A Dcl_pool.h225 void cl_pool_construct(IN cl_pool_t * const p_pool);
254 static inline uint32_t cl_is_pool_inited(IN const cl_pool_t * const p_pool) in cl_is_pool_inited() argument
257 CL_ASSERT(p_pool); in cl_is_pool_inited()
258 return (cl_is_qcpool_inited(&p_pool->qcpool)); in cl_is_pool_inited()
290 cl_pool_init(IN cl_pool_t * const p_pool,
366 static inline void cl_pool_destroy(IN cl_pool_t * const p_pool) in cl_pool_destroy() argument
368 CL_ASSERT(p_pool); in cl_pool_destroy()
369 cl_qcpool_destroy(&p_pool->qcpool); in cl_pool_destroy()
406 static inline size_t cl_pool_count(IN cl_pool_t * const p_pool) in cl_pool_count() argument
408 CL_ASSERT(p_pool); in cl_pool_count()
[all …]
H A Dcl_comppool.h238 void cl_cpool_construct(IN cl_cpool_t * const p_pool);
267 static inline boolean_t cl_is_cpool_inited(IN const cl_cpool_t * const p_pool) in cl_is_cpool_inited() argument
270 CL_ASSERT(p_pool); in cl_is_cpool_inited()
271 return (cl_is_qcpool_inited(&p_pool->qcpool)); in cl_is_cpool_inited()
303 cl_cpool_init(IN cl_cpool_t * const p_pool,
387 static inline void cl_cpool_destroy(IN cl_cpool_t * const p_pool) in cl_cpool_destroy() argument
389 CL_ASSERT(p_pool); in cl_cpool_destroy()
391 cl_qcpool_destroy(&p_pool->qcpool); in cl_cpool_destroy()
427 static inline size_t cl_cpool_count(IN cl_cpool_t * const p_pool) in cl_cpool_count() argument
429 CL_ASSERT(p_pool); in cl_cpool_count()
[all …]
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_mad_pool.c55 void osm_mad_pool_construct(IN osm_mad_pool_t * p_pool) in osm_mad_pool_construct() argument
57 CL_ASSERT(p_pool); in osm_mad_pool_construct()
59 memset(p_pool, 0, sizeof(*p_pool)); in osm_mad_pool_construct()
62 void osm_mad_pool_destroy(IN osm_mad_pool_t * p_pool) in osm_mad_pool_destroy() argument
64 CL_ASSERT(p_pool); in osm_mad_pool_destroy()
67 ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * p_pool) in osm_mad_pool_init() argument
69 p_pool->mads_out = 0; in osm_mad_pool_init()
74 osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * p_pool, in osm_mad_pool_get() argument
105 cl_atomic_inc(&p_pool->mads_out); in osm_mad_pool_get()
115 osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * p_pool, in osm_mad_pool_get_wrapper() argument
[all …]
H A Dosm_vl15intf.c221 void osm_vl15_destroy(IN osm_vl15_t * p_vl, IN struct osm_mad_pool *p_pool) in osm_vl15_destroy() argument
249 osm_mad_pool_put(p_pool, p_madw); in osm_vl15_destroy()
253 osm_mad_pool_put(p_pool, p_madw); in osm_vl15_destroy()
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_mad_pool.h112 void osm_mad_pool_construct(IN osm_mad_pool_t * p_pool);
141 void osm_mad_pool_destroy(IN osm_mad_pool_t * p_pool);
169 ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * p_pool);
194 osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * p_pool,
238 void osm_mad_pool_put(IN osm_mad_pool_t * p_pool, IN osm_madw_t * p_madw);
268 osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * p_pool,
317 osm_madw_t *osm_mad_pool_get_wrapper_raw(IN osm_mad_pool_t * p_pool);
348 osm_mad_pool_get_outstanding(IN const osm_mad_pool_t * p_pool) in osm_mad_pool_get_outstanding() argument
350 return p_pool->mads_out; in osm_mad_pool_get_outstanding()
H A Dosm_vl15intf.h221 void osm_vl15_destroy(IN osm_vl15_t * p_vl15, IN struct osm_mad_pool *p_pool);
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_hw.c79 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, in ecore_ptt_pool_alloc() local
81 sizeof(*p_pool)); in ecore_ptt_pool_alloc()
84 if (!p_pool) in ecore_ptt_pool_alloc()
87 OSAL_LIST_INIT(&p_pool->free_list); in ecore_ptt_pool_alloc()
89 p_pool->ptts[i].idx = i; in ecore_ptt_pool_alloc()
90 p_pool->ptts[i].pxp.offset = ECORE_BAR_INVALID_OFFSET; in ecore_ptt_pool_alloc()
91 p_pool->ptts[i].pxp.pretend.control = 0; in ecore_ptt_pool_alloc()
92 p_pool->ptts[i].hwfn_id = p_hwfn->my_id; in ecore_ptt_pool_alloc()
98 OSAL_LIST_PUSH_HEAD(&p_pool->ptts[i].list_entry, in ecore_ptt_pool_alloc()
99 &p_pool->free_list); in ecore_ptt_pool_alloc()
[all …]