Lines Matching refs:toc
43 uchar_t *toc, *p, *conf;
125 /* Find out the number of entries in the toc */
126 toc = (uchar_t *)my_zalloc(12);
127 if (!read_toc(target->d_fd, 0, 1, 4, toc)) {
130 toc_size = 256*toc[0] + toc[1] + 2;
131 free(toc);
134 toc = (uchar_t *)my_zalloc(toc_size);
136 if (!read_toc(target->d_fd, 0, 1, toc_size, toc)) {
149 for (p = &toc[4]; p < (toc + toc_size); p += 8) {
160 ret = read_toc(target->d_fd, 1, 0, 12, toc);
161 if ((ret == 0) || (toc[1] != 0x0a))
163 ret = read_toc_as_per_8020(target->d_fd, 1, 0, 12, toc);
165 if (ret && (toc[1] == 0x0a)) {
167 read_scsi32(&toc[8]));
169 free(toc);