Lines Matching defs:fd

52 uscsi(int fd, struct uscsi_cmd *scmd)
67 ret = ioctl(fd, USCSICMD, scmd);
134 mode_sense(int fd, uchar_t pc, int dbd, int page_len, uchar_t *buffer)
153 return (uscsi(fd, &scmd) == 0);
160 get_mode_page(int fd, int page_no, int pc, int buf_len, uchar_t *buffer, int *plen)
170 if ((ret = mode_sense(fd, byte2, 1, 254, buf)) == 0) {
189 get_configuration(int fd, uint16_t feature, int bufsize, uchar_t *buf)
207 return (uscsi(fd, &scmd) == 0);
211 get_current_profile(int fd, int *profile)
226 if (get_configuration(fd, 0, 8, &smallbuf[0])) {
231 if (get_configuration(fd, 0, buflen, bufp)) {
242 walk_profiles(int fd, int (*f)(void *, int, boolean_t), void *arg)
258 if (get_configuration(fd, 0, 8, &smallbuf[0])) {
263 if (get_configuration(fd, 0, buflen, bufp)) {
319 get_read_write_speeds(int fd, int *read_speed, int *write_speed,
329 if (!get_mode_page(fd, 0x2A, 0, sizeof (p), p, &page_len)) {
364 get_disc_info(int fd, disc_info_t *di)
382 if ((uscsi(fd, &scmd)) != 0) {
410 read_format_capacity(int fd, uint64_t *capacity)
430 if ((uscsi(fd, &scmd)) != 0) {
442 get_media_info(int fd, struct dk_minfo *minfop)
444 return (ioctl(fd, DKIOCGMEDIAINFO, minfop) != -1);
452 get_disc_capacity_for_profile(int fd, int profile, uint64_t *capacity)
461 if (get_media_info(fd, &mi) && (mi.dki_capacity > 1)) {
467 if (read_format_capacity(fd, capacity) && (*capacity > 0)) {
469 } else if (get_disc_info(fd, &di) && (di.capacity > 0)) {
470 if (get_media_info(fd, &mi)) {
481 read_toc(int fd, int format, int trackno, int buflen, uchar_t *buf)
499 if ((uscsi(fd, &scmd)) != 0) {