Lines Matching refs:toc
165 uchar_t toc[20]; /* 2 entries + 4 byte header */
235 if (!read_toc(dev->d_fd, 0, trackno, 20, toc)) {
238 t_info->ti_start_address = read_scsi32(&toc[8]);
239 t_info->ti_track_mode = toc[5] & 0xf;
240 t_info->ti_track_size = read_scsi32(&toc[16]) - read_scsi32(&toc[8]);
241 t_info->ti_data_mode = get_data_mode(dev->d_fd, read_scsi32(&toc[8]));
250 ret = read_toc(dev->d_fd, 1, trackno, 12, toc);
257 if ((ret == 0) || (toc[1] != 0x0a)) {
260 ret = read_toc_as_per_8020(dev->d_fd, 1, trackno, 12, toc);
263 if (ret && (toc[1] == 0x0a)) {
264 if (trackno >= toc[6]) {
265 t_info->ti_session_no = toc[3];
272 if (trackno == (toc[6] - 1)) {