Lines Matching defs:q_req
123 zfcp_qdio_sbal_chain(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req)
128 sbale = zfcp_qdio_sbale_curr(qdio, q_req);
132 if (q_req->sbal_last == q_req->sbal_limit)
136 sbale = zfcp_qdio_sbale_req(qdio, q_req);
140 q_req->sbal_last++;
141 q_req->sbal_last %= QDIO_MAX_BUFFERS_PER_Q;
144 q_req->sbal_number++;
145 BUG_ON(q_req->sbal_number > ZFCP_QDIO_MAX_SBALS_PER_REQ);
148 q_req->sbale_curr = 0;
151 sbale = zfcp_qdio_sbale_curr(qdio, q_req);
152 sbale->flags |= q_req->sbtype;
158 zfcp_qdio_sbale_next(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req)
160 if (q_req->sbale_curr == ZFCP_QDIO_LAST_SBALE_PER_SBAL)
161 return zfcp_qdio_sbal_chain(qdio, q_req);
162 q_req->sbale_curr++;
163 return zfcp_qdio_sbale_curr(qdio, q_req);
169 * @q_req: pointer to struct zfcp_qdio_req
174 int zfcp_qdio_sbals_from_sg(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req,
181 sbale = zfcp_qdio_sbale_req(qdio, q_req);
182 sbale->flags |= q_req->sbtype;
185 sbale = zfcp_qdio_sbale_next(qdio, q_req);
188 zfcp_qdio_zero_sbals(qdio->req_q, q_req->sbal_first,
189 q_req->sbal_number);
249 * @q_req: pointer to struct zfcp_qdio_req
252 int zfcp_qdio_send(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req)
255 u8 sbal_number = q_req->sbal_number;
260 q_req->sbal_first, sbal_number);
263 zfcp_qdio_zero_sbals(qdio->req_q, q_req->sbal_first,