Lines Matching defs:desc
208 static void vdc_end_special(struct vdc_port *port, struct vio_disk_desc *desc)
210 int err = desc->status;
218 struct vio_disk_desc *desc = vio_dring_entry(dr, index);
222 if (unlikely(desc->hdr.state != VIO_DESC_DONE))
225 ldc_unmap(port->vio.lp, desc->cookies, desc->ncookies);
226 desc->hdr.state = VIO_DESC_FREE;
231 vdc_end_special(port, desc);
237 __blk_end_request(req, (desc->status ? -EIO : 0), desc->size);
367 struct vio_disk_desc *desc;
396 desc = vio_dring_cur(dr);
399 desc->cookies, port->ring_cookies,
409 desc->hdr.ack = VIO_ACK_ENABLE;
410 desc->req_id = port->req_id;
411 desc->operation = op;
413 desc->slice = 0xff;
415 desc->slice = 0;
417 desc->status = ~0;
418 desc->offset = (blk_rq_pos(req) << 9) / port->vdisk_block_size;
419 desc->size = len;
420 desc->ncookies = err;
426 desc->hdr.state = VIO_DESC_READY;
457 struct vio_disk_desc *desc;
540 desc = vio_dring_cur(dr);
543 desc->cookies, port->ring_cookies,
555 desc->hdr.ack = VIO_ACK_ENABLE;
556 desc->req_id = port->req_id;
557 desc->operation = op;
558 desc->slice = 0;
559 desc->status = ~0;
560 desc->offset = 0;
561 desc->size = op_len;
562 desc->ncookies = err;
568 desc->hdr.state = VIO_DESC_READY;