Lines Matching refs:fdchar
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()
723 if (num_cyl > fdchar.fdc_ncyl || spt > fdchar.fdc_secptrack || in format_diskette()
724 transfer_rate > fdchar.fdc_transfer_rate) { in format_diskette()
732 if (num_cyl != fdchar.fdc_ncyl || spt != fdchar.fdc_secptrack || in format_diskette()
733 transfer_rate != fdchar.fdc_transfer_rate) { in format_diskette()
745 fdchar.fdc_medium = m_flag ? 1 : 0; in format_diskette()
747 fdchar.fdc_transfer_rate = transfer_rate; in format_diskette()
748 fdchar.fdc_ncyl = num_cyl; in format_diskette()
749 fdchar.fdc_sec_size = sec_size; in format_diskette()
750 fdchar.fdc_secptrack = spt; in format_diskette()
752 if (ioctl(fd, FDIOSCHAR, &fdchar) == -1) { in format_diskette()
886 for (hd = 0; hd < fdchar.fdc_nhead; hd++) { in format_diskette()
1510 totalsec = fdchar.fdc_ncyl * fdchar.fdc_nhead * fdchar.fdc_secptrack; in write_DOS_label()
1513 bpb->b_spt[0] = fdchar.fdc_secptrack; in write_DOS_label()
1515 bpb->b_nhead[0] = fdchar.fdc_nhead; in write_DOS_label()