/titanic_50/usr/src/cmd/cdrw/ |
H A D | misc_scsi.c | 185 t_info->ti_track_size = read_format_capacity(target->d_fd, in build_track_info() 197 if (read_track_info(dev->d_fd, trackno, ti)) { in build_track_info() 235 if (!read_toc(dev->d_fd, 0, trackno, 20, toc)) { in build_track_info() 241 t_info->ti_data_mode = get_data_mode(dev->d_fd, read_scsi32(&toc[8])); in build_track_info() 250 ret = read_toc(dev->d_fd, 1, trackno, 12, toc); in build_track_info() 260 ret = read_toc_as_per_8020(dev->d_fd, 1, trackno, 12, toc); in build_track_info() 311 if (read_toc(dev->d_fd, FORMAT_RAW_TOC, 1, in check_track_size() 321 if (read_toc(dev->d_fd, FORMAT_RAW_TOC, 1, raw_toc_len, raw_toc) in check_track_size() 491 (void) start_stop(dev->d_fd, 1); in prepare_for_write() 493 (void) rezero_unit(dev->d_fd); in prepare_for_write() [all …]
|
H A D | dumpinfo.c | 52 get_media_type(target->d_fd); in info() 75 if (get_configuration(target->d_fd, MMC_FTR_PRFL_LIST, in info() 94 cap = read_format_capacity(target->d_fd, &bsize); in info() 127 if (!read_toc(target->d_fd, 0, 1, 4, toc)) { in info() 136 if (!read_toc(target->d_fd, 0, 1, toc_size, toc)) { in info() 160 ret = read_toc(target->d_fd, 1, 0, 12, toc); in info() 163 ret = read_toc_as_per_8020(target->d_fd, 1, 0, 12, toc); in info()
|
H A D | write_image.c | 49 get_media_type(target->d_fd); in write_image() 117 if ((cap = read_format_capacity(target->d_fd, in write_image() 131 cap = read_format_capacity(target->d_fd, in write_image() 165 if (!set_reservation(target->d_fd, size/2048)) { in write_image() 176 if (!format_media(target->d_fd)) { in write_image() 189 ret = read_disc_info(target->d_fd, di); in write_image()
|
H A D | copycd.c | 106 if (read10(dev->d_fd, cblk, read_chunk, buf, read_size)) { in read_data_track() 141 get_media_type(target->d_fd); in ensure_media_space() 149 nblks_avail = read_format_capacity(target->d_fd, in ensure_media_space() 167 nblks_avail = read_format_capacity(target->d_fd, &bsize); in ensure_media_space() 232 get_media_type(src->d_fd); in copy_cd() 235 if (!read_toc(src->d_fd, 0, 0, 4, toc)) { in copy_cd() 370 get_media_type(target->d_fd); in copy_cd() 402 if (!format_media(target->d_fd)) { in copy_cd() 414 ret = read_disc_info(target->d_fd, di); in copy_cd() 446 if (!set_reservation(target->d_fd, in copy_cd()
|
H A D | blank.c | 85 get_media_type(target->d_fd); in blank() 156 if (!get_mode_page(target->d_fd, 5, 0, 64, buf)) { in blank() 166 if (!set_mode_page(target->d_fd, buf)) { in blank() 182 if (!blank_disc(target->d_fd, type, immediate)) { in blank() 203 ret = read_disc_info(target->d_fd, di); in blank()
|
H A D | toshiba.c | 99 ret = uscsi(target->d_fd, scmd); in toshiba_read_audio() 157 if (uscsi(dev->d_fd, scmd) < 0) in toshiba_speed_ctrl() 179 if (uscsi(dev->d_fd, scmd) < 0) in toshiba_speed_ctrl()
|
H A D | device.c | 139 dev->d_fd = fd; in get_device() 151 (void) close(dev->d_fd); in get_device() 295 (void) close(dev->d_fd); in fini_device() 657 !test_unit_ready(dev->d_fd)) { in check_device() 663 if (!get_mode_page(dev->d_fd, 0x2a, 0, 4, page_code) || in check_device() 670 if (!test_unit_ready(dev->d_fd) && (uscsi_status == 2) && in check_device() 688 if (!read_disc_info(dev->d_fd, disc_info)) { in check_device()
|
H A D | device.h | 44 int d_fd; member
|
H A D | main.c | 481 (void) close_track(target->d_fd, 0, 1, 1); in main()
|
H A D | trackio.c | 368 tio_fd = dev->d_fd; in write_track()
|
/titanic_50/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 1215 device_type = ioctl(t_dev->d_fd, in find_device() 1223 if (!ioctl(t_dev->d_fd, DKIOCREMOVABLE, &removable) && in find_device() 1224 !ioctl(t_dev->d_fd, DKIOCHOTPLUGGABLE, in find_device() 1359 dev->d_fd = fd; in get_device() 1370 (void) close(dev->d_fd); in get_device() 1396 if (get_mode_page(dev->d_fd, 0x2a, 0, 4, page_code) && in check_device() 1403 if (get_mode_page(dev->d_fd, 0x2a, 0, 4, page_code) && in check_device() 1410 if (get_mode_page(dev->d_fd, 0x2a, 0, 4, page_code) && in check_device() 1526 (void) close(dev->d_fd); in fini_device() 2001 device_type = ioctl(t_dev->d_fd, DKIOCGMEDIAINFO, &mediainfo); in get_media_info() [all …]
|
H A D | rmformat.h | 155 int d_fd; member
|
/titanic_50/usr/src/head/ |
H A D | dirent.h | 64 int d_fd; /* file descriptor */
|