Lines Matching defs:header
488 unsigned char header[32];
492 scsi_cmd_set(udev, &sc, 8, sizeof(header));
494 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));
511 if (header[2] & 16) {
514 } else if ((header[2] & 3) < 2 && cd_cd_r) {
616 unsigned char header[32];
627 scsi_cmd_set(udev, &sc, 8, sizeof(header) & 0xff);
629 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));
636 log_debug("disk type %02x", header[8]);
637 log_debug("hardware reported media status: %s", media_status[header[2] & 3]);
641 cd_media_state = media_status[header[2] & 3];
646 if (cd_media_dvd_rw_ro && (header[2] & 3) == 1)
652 if ((cd_media_dvd_rw_ro || cd_media_dvd_plus_rw || cd_media_dvd_plus_rw_dl || cd_media_dvd_ram) && (header[2] & 3) > 1) {
758 if ((header[2] & 3) < 2 && !cd_media_dvd_rw_ro)
759 cd_media_session_next = header[10] << 8 | header[5];
760 cd_media_session_count = header[9] << 8 | header[4];
761 cd_media_track_count = header[11] << 8 | header[6];
769 unsigned char header[12];
778 scsi_cmd_set(udev, &sc, 8, sizeof(header) & 0xff);
780 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));
786 len = (header[0] << 8 | header[1]) + 2;
787 log_debug("READ TOC: len: %d, start track: %d, end track: %d", len, header[2], header[3]);
793 num_tracks = header[3] - header[2] + 1;
801 scsi_cmd_set(udev, &sc, 6, header[2]); /* First Track/Session Number */
833 scsi_cmd_set(udev, &sc, 8, sizeof(header));
835 err = scsi_cmd_run(udev, &sc, fd, header, sizeof(header));
840 len = header[4+4] << 24 | header[4+5] << 16 | header[4+6] << 8 | header[4+7];
841 log_debug("last track %u starts at block %u", header[4+2], len);