Lines Matching defs:ring
712 * srpt_alloc_ioctx_ring - allocate a ring of SRPT I/O context structures
713 * @sdev: Device to allocate the I/O context ring for.
714 * @ring_size: Number of elements in the I/O context ring.
717 * @alignment_offset: Offset in each ring buffer at which the SRP information
727 struct srpt_ioctx **ring;
733 ring = kvmalloc_array(ring_size, sizeof(ring[0]), GFP_KERNEL);
734 if (!ring)
737 ring[i] = srpt_alloc_ioctx(sdev, ioctx_size, buf_cache, dir);
738 if (!ring[i])
740 ring[i]->index = i;
741 ring[i]->offset = alignment_offset;
747 srpt_free_ioctx(sdev, ring[i], buf_cache, dir);
748 kvfree(ring);
749 ring = NULL;
751 return ring;
755 * srpt_free_ioctx_ring - free the ring of SRPT I/O context structures
756 * @ioctx_ring: I/O context ring to be freed.
758 * @ring_size: Number of ring elements.
2258 pr_err("rejected SRP_LOGIN_REQ because creating a new QP SQ ring failed.\n");
2295 pr_err("rejected SRP_LOGIN_REQ because creating a new QP RQ ring failed.\n");