Home
last modified time | relevance | path

Searched refs:fr_pool (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/infiniband/ulp/iser/
H A Diser_memory.c48 struct iser_fr_pool *fr_pool = &ib_conn->fr_pool; in iser_reg_desc_get_fr() local
52 spin_lock_irqsave(&fr_pool->lock, flags); in iser_reg_desc_get_fr()
53 desc = list_first_entry(&fr_pool->list, in iser_reg_desc_get_fr()
56 spin_unlock_irqrestore(&fr_pool->lock, flags); in iser_reg_desc_get_fr()
64 struct iser_fr_pool *fr_pool = &ib_conn->fr_pool; in iser_reg_desc_put_fr() local
67 spin_lock_irqsave(&fr_pool->lock, flags); in iser_reg_desc_put_fr()
68 list_add(&desc->list, &fr_pool->list); in iser_reg_desc_put_fr()
69 spin_unlock_irqrestore(&fr_pool->lock, flags); in iser_reg_desc_put_fr()
H A Diser_verbs.c169 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()
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()
218 if (i < fr_pool->size) in iser_free_fastreg_pool()
[all …]
H A Discsi_iser.h374 struct iser_fr_pool fr_pool; member
/openbmc/linux/drivers/infiniband/ulp/srp/
H A Dib_srp.h160 struct srp_fr_pool *fr_pool; member
H A Dib_srp.c531 struct srp_fr_pool *fr_pool = NULL; in srp_create_ch_ib() local
586 fr_pool = srp_alloc_fr_pool(target); in srp_create_ch_ib()
587 if (IS_ERR(fr_pool)) { in srp_create_ch_ib()
588 ret = PTR_ERR(fr_pool); in srp_create_ch_ib()
607 if (ch->fr_pool) in srp_create_ch_ib()
608 srp_destroy_fr_pool(ch->fr_pool); in srp_create_ch_ib()
609 ch->fr_pool = fr_pool; in srp_create_ch_ib()
662 if (ch->fr_pool) in srp_free_ch_ib()
663 srp_destroy_fr_pool(ch->fr_pool); in srp_free_ch_ib()
1452 desc = srp_fr_pool_get(ch->fr_pool); in srp_map_finish_fr()
[all …]