Lines Matching refs:fr_pool
169 struct iser_fr_pool *fr_pool = &ib_conn->fr_pool; in iser_alloc_fastreg_pool() local
173 INIT_LIST_HEAD(&fr_pool->list); in iser_alloc_fastreg_pool()
174 INIT_LIST_HEAD(&fr_pool->all_list); in iser_alloc_fastreg_pool()
175 spin_lock_init(&fr_pool->lock); in iser_alloc_fastreg_pool()
176 fr_pool->size = 0; in iser_alloc_fastreg_pool()
185 list_add_tail(&desc->list, &fr_pool->list); in iser_alloc_fastreg_pool()
186 list_add_tail(&desc->all_list, &fr_pool->all_list); in iser_alloc_fastreg_pool()
187 fr_pool->size++; in iser_alloc_fastreg_pool()
203 struct iser_fr_pool *fr_pool = &ib_conn->fr_pool; in iser_free_fastreg_pool() local
207 if (list_empty(&fr_pool->all_list)) in iser_free_fastreg_pool()
212 list_for_each_entry_safe(desc, tmp, &fr_pool->all_list, all_list) { in iser_free_fastreg_pool()
218 if (i < fr_pool->size) in iser_free_fastreg_pool()
220 fr_pool->size - i); in iser_free_fastreg_pool()