Searched refs:fdchar (Results 1 – 7 of 7) sorted by relevance
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/ |
H A D | f_generic.c | 76 struct fd_char fdchar; in _m_get_media_info() local 98 if (ioctl(handle->sm_fd, FDIOGCHAR, &fdchar) < 0) { in _m_get_media_info() 104 med_info->sm_blocksize = fdchar.fdc_sec_size; in _m_get_media_info() 105 med_info->sm_capacity = fdchar.fdc_ncyl * fdchar.fdc_nhead in _m_get_media_info() 106 * fdchar.fdc_secptrack; in _m_get_media_info() 107 med_info->sm_pcyl = fdchar.fdc_ncyl; in _m_get_media_info() 108 med_info->sm_nhead = fdchar.fdc_nhead; in _m_get_media_info() 109 med_info->sm_nsect = fdchar.fdc_secptrack; in _m_get_media_info() 223 struct fd_char fdchar; in _m_raw_read() local 247 if (ioctl(handle->sm_fd, FDIOGCHAR, &fdchar) < 0) { in _m_raw_read() [all …]
|
H A D | f_format.c | 83 struct fd_char fdchar; in format_floppy() local 151 if (ioctl(fd, FDIOGCHAR, &fdchar) < 0) { in format_floppy() 157 save_fdchar = fdchar; in format_floppy() 165 size_of_dev = fdchar.fdc_ncyl * fdchar.fdc_nhead in format_floppy() 166 * fdchar.fdc_secptrack * fdchar.fdc_sec_size; in format_floppy() 183 fdchar.fdc_medium = 3; in format_floppy() 185 if (fdchar.fdc_medium == 5) in format_floppy() 197 switch (fdchar.fdc_transfer_rate) { in format_floppy() 232 if (fdchar.fdc_transfer_rate == 500) { in format_floppy() 238 fdchar.fdc_steps = 2; in format_floppy() [all …]
|
/illumos-gate/usr/src/cmd/fdformat/ |
H A D | fdformat.c | 79 static struct fd_char fdchar; variable 508 if (ioctl(fd, FDIOGCHAR, &fdchar) == -1) { in format_diskette() 516 save_fdchar = fdchar; in format_diskette() 524 size_of_dev = fdchar.fdc_ncyl * fdchar.fdc_nhead in format_diskette() 525 * fdchar.fdc_secptrack * fdchar.fdc_sec_size; in format_diskette() 545 fdchar.fdc_medium = 3; in format_diskette() 547 if (fdchar.fdc_medium == 5) in format_diskette() 557 switch (fdchar.fdc_transfer_rate) { in format_diskette() 600 if (fdchar.fdc_transfer_rate == 500) { in format_diskette() 606 fdchar.fdc_steps = 2; in format_diskette() [all …]
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 755 struct fd_char fdchar; in write_sunos_label() local 758 if (ioctl(fd, FDIOGCHAR, &fdchar) < 0) { in write_sunos_label() 765 mult_factor = (fdchar.fdc_medium) ? 2 : 1; in write_sunos_label() 767 mult_factor = (fdchar.fdc_medium == 5) ? 2 : 1; in write_sunos_label() 776 v_toc.v_part[0].p_size = (fdchar.fdc_ncyl - 1) * 2 * in write_sunos_label() 777 fdchar.fdc_secptrack * mult_factor; in write_sunos_label() 778 v_toc.v_part[1].p_start = (fdchar.fdc_ncyl - 1) * 2 * in write_sunos_label() 779 fdchar.fdc_secptrack * mult_factor; in write_sunos_label() 780 v_toc.v_part[1].p_size = 2 * fdchar.fdc_secptrack * mult_factor; in write_sunos_label() 783 v_toc.v_part[2].p_size = fdchar.fdc_ncyl * 2 * in write_sunos_label() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/ |
H A D | mkfs.c | 153 static void lookup_floppy(struct fd_char *fdchar, bpb_t *wbpb); 1212 lookup_floppy(struct fd_char *fdchar, bpb_t *wbpb) in lookup_floppy() argument 1217 cyls = fdchar->fdc_ncyl; in lookup_floppy() 1218 diam = fdchar->fdc_medium; in lookup_floppy() 1219 spt = fdchar->fdc_secptrack; in lookup_floppy() 1220 hds = fdchar->fdc_nhead; in lookup_floppy() 1928 struct fd_char fdchar; in compare_existing_with_computed() local 1941 if (ioctl(fd, FDIOGCHAR, &fdchar) != -1) { in compare_existing_with_computed() 1949 fdchar.fdc_medium = 3; in compare_existing_with_computed() 1952 lookup_floppy(&fdchar, &compare); in compare_existing_with_computed() [all …]
|
/illumos-gate/usr/src/uts/sun/io/ |
H A D | fd.c | 1881 struct fd_char fdchar; in fd_ioctl() member 2168 if (ddi_copyin((caddr_t)arg, (caddr_t)&cpy.fdchar, in fd_ioctl() 2179 transfer_rate = cpy.fdchar.fdc_transfer_rate; in fd_ioctl() 2184 cpy.fdchar.fdc_transfer_rate)); in fd_ioctl() 2189 if ((cpy.fdchar.fdc_nhead < 1) || in fd_ioctl() 2190 (cpy.fdchar.fdc_nhead > 2)) { in fd_ioctl() 2193 cpy.fdchar.fdc_nhead)); in fd_ioctl() 2201 if ((cpy.fdchar.fdc_ncyl < 0) || (cpy.fdchar.fdc_ncyl > 255)) { in fd_ioctl() 2204 cpy.fdchar.fdc_ncyl)); in fd_ioctl() 2212 *(un->un_chars) = cpy.fdchar; in fd_ioctl()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fd.c | 1284 struct fd_char fdchar; in fd_ioctl() member 1583 if (ddi_copyin((void *)arg, &cpy.fdchar, in fd_ioctl() 1588 switch (cpy.fdchar.fdc_transfer_rate) { in fd_ioctl() 1606 *(fjp->fj_chars) = cpy.fdchar; in fd_ioctl() 1617 unit, cpy.fdchar.fdc_transfer_rate)); in fd_ioctl()
|