Lines Matching refs:sc
207 struct scsi_cmd sc;
210 scsi_cmd_init(udev, &sc);
211 scsi_cmd_set(udev, &sc, 0, 0x1b);
212 scsi_cmd_set(udev, &sc, 4, 0x02);
213 scsi_cmd_set(udev, &sc, 5, 0);
214 err = scsi_cmd_run(udev, &sc, fd, NULL, 0);
261 struct scsi_cmd sc;
265 scsi_cmd_init(udev, &sc);
266 scsi_cmd_set(udev, &sc, 0, 0x12);
267 scsi_cmd_set(udev, &sc, 4, 36);
268 scsi_cmd_set(udev, &sc, 5, 0);
269 err = scsi_cmd_run(udev, &sc, fd, inq, 36);
485 struct scsi_cmd sc;
490 scsi_cmd_init(udev, &sc);
491 scsi_cmd_set(udev, &sc, 0, 0x51);
492 scsi_cmd_set(udev, &sc, 8, sizeof(header));
493 scsi_cmd_set(udev, &sc, 9, 0);
494 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));
527 struct scsi_cmd sc;
538 scsi_cmd_init(udev, &sc);
539 scsi_cmd_set(udev, &sc, 0, 0x46);
540 scsi_cmd_set(udev, &sc, 8, 8);
541 scsi_cmd_set(udev, &sc, 9, 0);
542 err = scsi_cmd_run(udev, &sc, fd, features, 8);
573 scsi_cmd_init(udev, &sc);
574 scsi_cmd_set(udev, &sc, 0, 0x46);
575 scsi_cmd_set(udev, &sc, 7, ( len >> 8 ) & 0xff);
576 scsi_cmd_set(udev, &sc, 8, len & 0xff);
577 scsi_cmd_set(udev, &sc, 9, 0);
578 err = scsi_cmd_run(udev, &sc, fd, features, len);
615 struct scsi_cmd sc;
625 scsi_cmd_init(udev, &sc);
626 scsi_cmd_set(udev, &sc, 0, 0x51);
627 scsi_cmd_set(udev, &sc, 8, sizeof(header) & 0xff);
628 scsi_cmd_set(udev, &sc, 9, 0);
629 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));
663 scsi_cmd_init(udev, &sc);
664 scsi_cmd_set(udev, &sc, 0, 0xAD);
665 scsi_cmd_set(udev, &sc, 7, 0xC0);
666 scsi_cmd_set(udev, &sc, 9, sizeof(dvdstruct));
667 scsi_cmd_set(udev, &sc, 11, 0);
668 err = scsi_cmd_run(udev, &sc, fd, dvdstruct, sizeof(dvdstruct));
680 scsi_cmd_init(udev, &sc);
681 scsi_cmd_set(udev, &sc, 0, 0x23);
682 scsi_cmd_set(udev, &sc, 8, sizeof(format));
683 scsi_cmd_set(udev, &sc, 9, 0);
684 err = scsi_cmd_run(udev, &sc, fd, format, sizeof(format));
721 scsi_cmd_init(udev, &sc);
722 scsi_cmd_set(udev, &sc, 0, 0x28);
723 scsi_cmd_set(udev, &sc, 5, 0);
724 scsi_cmd_set(udev, &sc, 8, 32);
725 scsi_cmd_set(udev, &sc, 9, 0);
726 err = scsi_cmd_run(udev, &sc, fd, buffer, sizeof(buffer));
768 struct scsi_cmd sc;
775 scsi_cmd_init(udev, &sc);
776 scsi_cmd_set(udev, &sc, 0, 0x43);
777 scsi_cmd_set(udev, &sc, 6, 1);
778 scsi_cmd_set(udev, &sc, 8, sizeof(header) & 0xff);
779 scsi_cmd_set(udev, &sc, 9, 0);
780 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));
799 scsi_cmd_init(udev, &sc);
800 scsi_cmd_set(udev, &sc, 0, 0x43);
801 scsi_cmd_set(udev, &sc, 6, header[2]); /* First Track/Session Number */
802 scsi_cmd_set(udev, &sc, 7, (len >> 8) & 0xff);
803 scsi_cmd_set(udev, &sc, 8, len & 0xff);
804 scsi_cmd_set(udev, &sc, 9, 0);
805 err = scsi_cmd_run(udev, &sc, fd, toc, len);
830 scsi_cmd_init(udev, &sc);
831 scsi_cmd_set(udev, &sc, 0, 0x43);
832 scsi_cmd_set(udev, &sc, 2, 1); /* Session Info */
833 scsi_cmd_set(udev, &sc, 8, sizeof(header));
834 scsi_cmd_set(udev, &sc, 9, 0);
835 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));