Lines Matching refs:rw_ctxs
897 ioctx->rw_ctxs = &ioctx->s_rw_ctx; in srpt_alloc_rw_ctxs()
899 ioctx->rw_ctxs = kmalloc_array(nbufs, sizeof(*ioctx->rw_ctxs), in srpt_alloc_rw_ctxs()
901 if (!ioctx->rw_ctxs) in srpt_alloc_rw_ctxs()
906 struct srpt_rw_ctx *ctx = &ioctx->rw_ctxs[i]; in srpt_alloc_rw_ctxs()
943 struct srpt_rw_ctx *ctx = &ioctx->rw_ctxs[i]; in srpt_alloc_rw_ctxs()
949 if (ioctx->rw_ctxs != &ioctx->s_rw_ctx) in srpt_alloc_rw_ctxs()
950 kfree(ioctx->rw_ctxs); in srpt_alloc_rw_ctxs()
961 struct srpt_rw_ctx *ctx = &ioctx->rw_ctxs[i]; in srpt_free_rw_ctxs()
968 if (ioctx->rw_ctxs != &ioctx->s_rw_ctx) in srpt_free_rw_ctxs()
969 kfree(ioctx->rw_ctxs); in srpt_free_rw_ctxs()
2765 struct srpt_rw_ctx *ctx = &ioctx->rw_ctxs[i]; in srpt_write_pending()
2839 struct srpt_rw_ctx *ctx = &ioctx->rw_ctxs[i]; in srpt_queue_response()