Lines Matching defs:fdchar
85 struct fd_char fdchar;
153 if (ioctl(fd, FDIOGCHAR, &fdchar) < 0) {
159 save_fdchar = fdchar;
167 size_of_dev = fdchar.fdc_ncyl * fdchar.fdc_nhead
168 * fdchar.fdc_secptrack * fdchar.fdc_sec_size;
185 fdchar.fdc_medium = 3;
187 if (fdchar.fdc_medium == 5)
199 switch (fdchar.fdc_transfer_rate) {
234 if (fdchar.fdc_transfer_rate == 500) {
240 fdchar.fdc_steps = 2;
298 if (num_cyl > fdchar.fdc_ncyl || spt > fdchar.fdc_secptrack ||
299 transfer_rate > fdchar.fdc_transfer_rate) {
304 if (num_cyl != fdchar.fdc_ncyl || spt != fdchar.fdc_secptrack ||
305 transfer_rate != fdchar.fdc_transfer_rate) {
317 fdchar.fdc_medium = M_flag ? 1 : 0;
319 fdchar.fdc_transfer_rate = transfer_rate;
320 fdchar.fdc_ncyl = num_cyl;
321 fdchar.fdc_sec_size = sec_size;
322 fdchar.fdc_secptrack = spt;
324 if (ioctl(fd, FDIOSCHAR, &fdchar) < 0) {
382 end_head = fdchar.fdc_nhead;
388 if ((end_cyl > num_cyl) || (end_head > fdchar.fdc_nhead)) {
485 if (fdchar.fdc_nhead == end_head) {