Lines Matching refs:outbuf
357 uint8_t *outbuf;
369 outbuf = (uint8_t *)r->iov.iov_base;
429 memset(outbuf, 0, 4);
432 memset(outbuf, 0, 18);
434 outbuf[7] = 10;
436 outbuf[12] = 0x3a;
437 outbuf[13] = 0;
439 outbuf[0] = 0xf0;
440 outbuf[1] = 0;
441 outbuf[2] = s->sense;
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
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);
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
539 memcpy(&outbuf[r->iov.iov_len],
576 memset(outbuf, 0, len);
579 outbuf[0] = 0x7f; /* LUN not supported */
581 outbuf[0] = 5;
582 outbuf[1] = 0x80;
583 memcpy(&outbuf[16], "QEMU CD-ROM ", 16);
585 outbuf[0] = 0;
586 memcpy(&outbuf[16], "QEMU HARDDISK ", 16);
588 memcpy(&outbuf[8], "QEMU ", 8);
589 memcpy(&outbuf[32], QEMU_VERSION, 4);
592 outbuf[2] = 3;
593 outbuf[3] = 2; /* Format 2 */
594 outbuf[4] = len - 5; /* Additional Length = (Len - 1) - 4 */
596 outbuf[7] = 0x10 | (s->tcq ? 0x02 : 0);
617 p = outbuf;
619 outbuf[1] = 0; /* Default media type. */
620 outbuf[3] = 0; /* Block descriptor length. */
622 outbuf[2] = 0x80; /* Readonly. */
732 r->iov.iov_len = p - outbuf;
733 outbuf[0] = r->iov.iov_len - 4;
752 memset(outbuf, 0, 8);
763 outbuf[0] = (nb_sectors >> 24) & 0xff;
764 outbuf[1] = (nb_sectors >> 16) & 0xff;
765 outbuf[2] = (nb_sectors >> 8) & 0xff;
766 outbuf[3] = nb_sectors & 0xff;
767 outbuf[4] = 0;
768 outbuf[5] = 0;
769 outbuf[6] = s->cluster_size * 2;
770 outbuf[7] = 0;
813 toclen = cdrom_read_toc(nb_sectors, outbuf, msf, start_track);
818 memset(outbuf, 0, 12);
819 outbuf[1] = 0x0a;
820 outbuf[2] = 0x01;
821 outbuf[3] = 0x01;
824 toclen = cdrom_read_toc_raw(nb_sectors, outbuf, msf, start_track);
841 memset(outbuf, 0, 8);
844 outbuf[7] = 8; // CD-ROM
861 memset(outbuf, 0, len);
869 outbuf[0] = (nb_sectors >> 56) & 0xff;
870 outbuf[1] = (nb_sectors >> 48) & 0xff;
871 outbuf[2] = (nb_sectors >> 40) & 0xff;
872 outbuf[3] = (nb_sectors >> 32) & 0xff;
873 outbuf[4] = (nb_sectors >> 24) & 0xff;
874 outbuf[5] = (nb_sectors >> 16) & 0xff;
875 outbuf[6] = (nb_sectors >> 8) & 0xff;
876 outbuf[7] = nb_sectors & 0xff;
877 outbuf[8] = 0;
878 outbuf[9] = 0;
879 outbuf[10] = s->cluster_size * 2;
880 outbuf[11] = 0;
895 memset(outbuf, 0, 16);
896 outbuf[3] = 8;