Searched refs:sc_buf_pool (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_request_manager.c | 719 STAILQ_INIT(&oct->sc_buf_pool.head); in lio_setup_sc_buffer_pool() 720 mtx_init(&oct->sc_buf_pool.lock, "sc_pool_lock", NULL, MTX_DEF); in lio_setup_sc_buffer_pool() 721 atomic_store_rel_int(&oct->sc_buf_pool.alloc_buf_count, 0); in lio_setup_sc_buffer_pool() 734 STAILQ_INSERT_TAIL(&oct->sc_buf_pool.head, &sc->node, entries); in lio_setup_sc_buffer_pool() 746 mtx_lock(&oct->sc_buf_pool.lock); in lio_free_sc_buffer_pool() 748 STAILQ_FOREACH_SAFE(tmp, &oct->sc_buf_pool.head, entries, tmp2) { in lio_free_sc_buffer_pool() 749 sc = LIO_STAILQ_FIRST_ENTRY(&oct->sc_buf_pool.head, in lio_free_sc_buffer_pool() 752 STAILQ_REMOVE_HEAD(&oct->sc_buf_pool.head, entries); in lio_free_sc_buffer_pool() 757 STAILQ_INIT(&oct->sc_buf_pool.head); in lio_free_sc_buffer_pool() 759 mtx_unlock(&oct->sc_buf_pool.lock); in lio_free_sc_buffer_pool() [all …]
|
H A D | lio_device.h | 422 struct lio_sc_buffer_pool sc_buf_pool; member
|