Lines Matching defs:drive_num
343 int drive_num, drive_size, drive_type;
419 drive_num = ddi_get_instance(dip);
420 if (ddi_soft_state_zalloc(fd_state_head, drive_num) != 0)
422 fdp = ddi_get_soft_state(fd_state_head, drive_num);
488 sig_minor = drive_num << 3;
501 (void) sprintf(name, "fd%d", drive_num);
502 fdp->d_iostat = kstat_create("fd", drive_num, name, "disk",
546 ddi_soft_state_free(fd_state_head, drive_num);
560 int drive_num;
566 drive_num = ddi_get_instance(dip);
567 if (!(fdp = ddi_get_soft_state(fd_state_head, drive_num)))
587 ddi_soft_state_free(fd_state_head, drive_num);