Lines Matching refs:desc
393 for (i = 0, d = &pool->desc[0]; i < pool->size; i++, d++) { in srp_destroy_fr_pool()
420 pool = kzalloc(struct_size(pool, desc, pool_size), GFP_KERNEL); in srp_create_fr_pool()
433 for (i = 0, d = &pool->desc[0]; i < pool->size; i++, d++) { in srp_create_fr_pool()
485 static void srp_fr_pool_put(struct srp_fr_pool *pool, struct srp_fr_desc **desc, in srp_fr_pool_put() argument
493 list_add(&desc[i]->entry, &pool->free_list); in srp_fr_pool_put()
1396 struct srp_direct_buf *desc = state->desc; in srp_map_desc() local
1400 desc->va = cpu_to_be64(dma_addr); in srp_map_desc()
1401 desc->key = cpu_to_be32(rkey); in srp_map_desc()
1402 desc->len = cpu_to_be32(dma_len); in srp_map_desc()
1405 state->desc++; in srp_map_desc()
1428 struct srp_fr_desc *desc; in srp_map_finish_fr() local
1452 desc = srp_fr_pool_get(ch->fr_pool); in srp_map_finish_fr()
1453 if (!desc) in srp_map_finish_fr()
1456 rkey = ib_inc_rkey(desc->mr->rkey); in srp_map_finish_fr()
1457 ib_update_fast_reg_key(desc->mr, rkey); in srp_map_finish_fr()
1459 n = ib_map_mr_sg(desc->mr, state->sg, sg_nents, sg_offset_p, in srp_map_finish_fr()
1462 srp_fr_pool_put(ch->fr_pool, &desc, 1); in srp_map_finish_fr()
1469 WARN_ON_ONCE(desc->mr->length == 0); in srp_map_finish_fr()
1478 wr.mr = desc->mr; in srp_map_finish_fr()
1479 wr.key = desc->mr->rkey; in srp_map_finish_fr()
1484 *state->fr.next++ = desc; in srp_map_finish_fr()
1487 srp_map_desc(state, desc->mr->iova, in srp_map_finish_fr()
1488 desc->mr->length, desc->mr->rkey); in srp_map_finish_fr()
1565 state.desc = &idb_desc; in srp_map_idb()
1714 state.desc = req->indirect_desc; in srp_map_data()