Lines Matching refs:q_req
85 zfcp_qdio_sbale_req(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req)
87 return &qdio->req_q[q_req->sbal_last]->element[0];
97 zfcp_qdio_sbale_curr(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req)
99 return &qdio->req_q[q_req->sbal_last]->element[q_req->sbale_curr];
105 * @q_req: the qdio request to start
116 void zfcp_qdio_req_init(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req,
123 q_req->sbal_first = q_req->sbal_last = qdio->req_q_idx;
124 q_req->sbal_number = 1;
125 q_req->sbtype = sbtype;
126 q_req->sbale_curr = 1;
127 q_req->sbal_limit = (q_req->sbal_first + count - 1)
130 sbale = zfcp_qdio_sbale_req(qdio, q_req);
144 * @q_req: pointer to struct zfcp_queue_req
150 void zfcp_qdio_fill_next(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req,
155 BUG_ON(q_req->sbale_curr == ZFCP_QDIO_LAST_SBALE_PER_SBAL);
156 q_req->sbale_curr++;
157 sbale = zfcp_qdio_sbale_curr(qdio, q_req);
165 * @q_req: pointer to struct zfcp_queue_req
169 struct zfcp_qdio_req *q_req)
173 sbale = zfcp_qdio_sbale_curr(qdio, q_req);
192 * @q_req: The current zfcp_qdio_req
195 void zfcp_qdio_skip_to_last_sbale(struct zfcp_qdio_req *q_req)
197 q_req->sbale_curr = ZFCP_QDIO_LAST_SBALE_PER_SBAL;
201 * zfcp_qdio_sbal_limit - set the sbal limit for a request in q_req
203 * @q_req: The current zfcp_qdio_req
208 struct zfcp_qdio_req *q_req, int max_sbals)
212 q_req->sbal_limit = (q_req->sbal_first + count - 1) %
219 * @q_req: The current zfcp_qdio_req
224 struct zfcp_qdio_req *q_req, u32 count)
228 sbale = &qdio->req_q[q_req->sbal_first]->element[0];