Lines Matching refs:q_req
121 zfcp_qdio_sbal_chain(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req) in zfcp_qdio_sbal_chain() argument
126 sbale = zfcp_qdio_sbale_curr(qdio, q_req); in zfcp_qdio_sbal_chain()
130 if (q_req->sbal_last == q_req->sbal_limit) in zfcp_qdio_sbal_chain()
134 sbale = zfcp_qdio_sbale_req(qdio, q_req); in zfcp_qdio_sbal_chain()
138 q_req->sbal_last++; in zfcp_qdio_sbal_chain()
139 q_req->sbal_last %= QDIO_MAX_BUFFERS_PER_Q; in zfcp_qdio_sbal_chain()
142 q_req->sbal_number++; in zfcp_qdio_sbal_chain()
143 BUG_ON(q_req->sbal_number > ZFCP_QDIO_MAX_SBALS_PER_REQ); in zfcp_qdio_sbal_chain()
146 q_req->sbale_curr = 0; in zfcp_qdio_sbal_chain()
149 sbale = zfcp_qdio_sbale_curr(qdio, q_req); in zfcp_qdio_sbal_chain()
150 sbale->flags |= q_req->sbtype; in zfcp_qdio_sbal_chain()
156 zfcp_qdio_sbale_next(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req) in zfcp_qdio_sbale_next() argument
158 if (q_req->sbale_curr == ZFCP_QDIO_LAST_SBALE_PER_SBAL) in zfcp_qdio_sbale_next()
159 return zfcp_qdio_sbal_chain(qdio, q_req); in zfcp_qdio_sbale_next()
160 q_req->sbale_curr++; in zfcp_qdio_sbale_next()
161 return zfcp_qdio_sbale_curr(qdio, q_req); in zfcp_qdio_sbale_next()
172 int zfcp_qdio_sbals_from_sg(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req, in zfcp_qdio_sbals_from_sg() argument
179 sbale = zfcp_qdio_sbale_req(qdio, q_req); in zfcp_qdio_sbals_from_sg()
180 sbale->flags |= q_req->sbtype; in zfcp_qdio_sbals_from_sg()
183 sbale = zfcp_qdio_sbale_next(qdio, q_req); in zfcp_qdio_sbals_from_sg()
186 zfcp_qdio_zero_sbals(qdio->req_q, q_req->sbal_first, in zfcp_qdio_sbals_from_sg()
187 q_req->sbal_number); in zfcp_qdio_sbals_from_sg()
250 int zfcp_qdio_send(struct zfcp_qdio *qdio, struct zfcp_qdio_req *q_req) in zfcp_qdio_send() argument
253 u8 sbal_number = q_req->sbal_number; in zfcp_qdio_send()
260 q_req->sbal_first, sbal_number); in zfcp_qdio_send()
263 zfcp_qdio_zero_sbals(qdio->req_q, q_req->sbal_first, in zfcp_qdio_send()