Lines Matching defs:fdchar
79 static struct fd_char fdchar;
520 if (ioctl(fd, FDIOGCHAR, &fdchar) == -1) {
528 save_fdchar = fdchar;
536 size_of_dev = fdchar.fdc_ncyl * fdchar.fdc_nhead
537 * fdchar.fdc_secptrack * fdchar.fdc_sec_size;
557 fdchar.fdc_medium = 3;
559 if (fdchar.fdc_medium == 5)
569 switch (fdchar.fdc_transfer_rate) {
612 if (fdchar.fdc_transfer_rate == 500) {
618 fdchar.fdc_steps = 2;
735 if (num_cyl > fdchar.fdc_ncyl || spt > fdchar.fdc_secptrack ||
736 transfer_rate > fdchar.fdc_transfer_rate) {
744 if (num_cyl != fdchar.fdc_ncyl || spt != fdchar.fdc_secptrack ||
745 transfer_rate != fdchar.fdc_transfer_rate) {
757 fdchar.fdc_medium = m_flag ? 1 : 0;
759 fdchar.fdc_transfer_rate = transfer_rate;
760 fdchar.fdc_ncyl = num_cyl;
761 fdchar.fdc_sec_size = sec_size;
762 fdchar.fdc_secptrack = spt;
764 if (ioctl(fd, FDIOSCHAR, &fdchar) == -1) {
884 for (hd = 0; hd < fdchar.fdc_nhead; hd++) {
919 for (hd = 0; hd < fdchar.fdc_nhead; hd++) {
1544 totalsec = fdchar.fdc_ncyl * fdchar.fdc_nhead * fdchar.fdc_secptrack;
1547 bpb->b_spt[0] = fdchar.fdc_secptrack;
1549 bpb->b_nhead[0] = fdchar.fdc_nhead;