Searched refs:sc_buf_pool (Results 1 – 2 of 2) sorted by relevance
769 INIT_LIST_HEAD(&oct->sc_buf_pool.head); in octeon_setup_sc_buffer_pool()770 spin_lock_init(&oct->sc_buf_pool.lock); in octeon_setup_sc_buffer_pool()771 atomic_set(&oct->sc_buf_pool.alloc_buf_count, 0); in octeon_setup_sc_buffer_pool()786 list_add_tail(&sc->node, &oct->sc_buf_pool.head); in octeon_setup_sc_buffer_pool()797 spin_lock_bh(&oct->sc_buf_pool.lock); in octeon_free_sc_buffer_pool()799 list_for_each_safe(tmp, tmp2, &oct->sc_buf_pool.head) { in octeon_free_sc_buffer_pool()807 INIT_LIST_HEAD(&oct->sc_buf_pool.head); in octeon_free_sc_buffer_pool()809 spin_unlock_bh(&oct->sc_buf_pool.lock); in octeon_free_sc_buffer_pool()828 spin_lock_bh(&oct->sc_buf_pool.lock); in octeon_alloc_soft_command()830 if (list_empty(&oct->sc_buf_pool.head)) { in octeon_alloc_soft_command()[all …]
479 struct octeon_sc_buffer_pool sc_buf_pool; member