Home | History | Annotate | Download | only in hw

Lines Matching defs:iov

56     struct iovec iov;
92 r->iov.iov_base = qemu_memalign(512, SCSI_DMA_BUF_SIZE);
97 r->iov.iov_len = 0;
176 DPRINTF("Data ready tag=0x%x len=%d\n", r->tag, r->iov.iov_len);
178 s->completion(s->opaque, SCSI_REASON_DATA, r->tag, r->iov.iov_len);
196 DPRINTF("Read buf_len=%d\n", r->iov.iov_len);
198 s->completion(s->opaque, SCSI_REASON_DATA, r->tag, r->iov.iov_len);
211 r->iov.iov_len = n * 512;
212 qemu_iovec_init_external(&r->qiov, &r->iov, 1);
254 n = r->iov.iov_len / 512;
264 r->iov.iov_len = len;
275 n = r->iov.iov_len / 512;
277 qemu_iovec_init_external(&r->qiov, &r->iov, 1);
339 return (uint8_t *)r->iov.iov_base;
369 outbuf = (uint8_t *)r->iov.iov_base;
430 r->iov.iov_len = 4;
433 r->iov.iov_len = 18;
466 r->iov.iov_len = 0;
469 outbuf[r->iov.iov_len++] = 5;
471 outbuf[r->iov.iov_len++] = 0;
474 outbuf[r->iov.iov_len++] = 0x00; // this page
475 outbuf[r->iov.iov_len++] = 0x00;
476 outbuf[r->iov.iov_len++] = 3; // number of pages
477 outbuf[r->iov.iov_len++] = 0x00; // list of supported pages (this page)
478 outbuf[r->iov.iov_len++] = 0x80; // unit serial number
479 outbuf[r->iov.iov_len++] = 0x83; // device identification
496 r->iov.iov_len = 0;
500 outbuf[r->iov.iov_len++] = 5;
502 outbuf[r->iov.iov_len++] = 0;
505 outbuf[r->iov.iov_len++] = 0x80; // this page
506 outbuf[r->iov.iov_len++] = 0x00;
507 outbuf[r->iov.iov_len++] = l;
508 memcpy(&outbuf[r->iov.iov_len], s->drive_serial_str, l);
509 r->iov.iov_len += l;
523 r->iov.iov_len = 0;
525 outbuf[r->iov.iov_len++] = 5;
527 outbuf[r->iov.iov_len++] = 0;
530 outbuf[r->iov.iov_len++] = 0x83; // this page
531 outbuf[r->iov.iov_len++] = 0x00;
532 outbuf[r->iov.iov_len++] = 3 + id_len;
534 outbuf[r->iov.iov_len++] = 0x2; // ASCII
535 outbuf[r->iov.iov_len++] = 0; // not officially assigned
536 outbuf[r->iov.iov_len++] = 0; // reserved
537 outbuf[r->iov
539 memcpy(&outbuf[r->iov.iov_len],
541 r->iov.iov_len += id_len;
597 r->iov.iov_len = len;
732 r->iov.iov_len = p - outbuf;
733 outbuf[0] = r->iov.iov_len - 4;
734 if (r->iov.iov_len > len)
735 r->iov.iov_len = len;
771 r->iov.iov_len = 8;
832 r->iov.iov_len = len;
845 r->iov.iov_len = 8;
882 r->iov.iov_len = len;
897 r->iov.iov_len = 16;
911 if (r->sector_count == 0 && r->iov.iov_len == 0) {
914 len = r->sector_count * 512 + r->iov.iov_len;