Lines Matching refs:request
78 nbd_end_request(struct request *req) in nbd_end_request()
190 void nbd_send_req(struct nbd_device *lo, struct request *req) in nbd_send_req()
193 struct nbd_request request; in nbd_send_req() local
198 request.magic = htonl(NBD_REQUEST_MAGIC); in nbd_send_req()
199 request.type = htonl(req->cmd); in nbd_send_req()
200 request.from = cpu_to_be64( (u64) req->sector << 9); in nbd_send_req()
201 request.len = htonl(size); in nbd_send_req()
202 memcpy(request.handle, &req, sizeof(req)); in nbd_send_req()
210 result = nbd_xmit(1, sock, (char *) &request, sizeof(request), req->cmd == WRITE ? MSG_MORE : 0); in nbd_send_req()
232 static struct request *nbd_find_request(struct nbd_device *lo, char *handle) in nbd_find_request()
234 struct request *req; in nbd_find_request()
236 struct request *xreq; in nbd_find_request()
242 req = list_entry(tmp, struct request, queue); in nbd_find_request()
254 struct request *nbd_read_stat(struct nbd_device *lo) in nbd_read_stat()
259 struct request *req; in nbd_read_stat()
296 struct request *req; in nbd_do_it()
325 struct request *req; in nbd_clear_que()
337 req = list_entry(lo->queue_head.next, struct request, queue); in nbd_clear_que()
361 struct request *req; in do_nbd_request()
432 struct request sreq ; in nbd_ioctl()