• Home
  • Raw
  • Download

Lines Matching refs:devices

52 struct device *devices; /* the device table */  variable
243 drive = devices[cur_dev].drive; in syntax()
412 if(devices[i].drive != drive || in purge()
413 devices[i].file_nr == fn) in purge()
414 devices[j++] = devices[i]; in purge()
423 if(!(devices=Grow(devices, nr_dev, struct device))){ in grow()
433 memset((char *)&devices[cur_dev], 0, sizeof(struct device)); in init_drive()
434 devices[cur_dev].ssize = 2; in init_drive()
444 devices[i] = devices[i-1]; in prepend()
467 if(!devices[cur_dev].name) in finish_drive_clause()
469 if(devices[cur_dev].tracks || in finish_drive_clause()
470 devices[cur_dev].heads || in finish_drive_clause()
471 devices[cur_dev].sectors) { in finish_drive_clause()
472 if(!devices[cur_dev].tracks || in finish_drive_clause()
473 !devices[cur_dev].heads || in finish_drive_clause()
474 !devices[cur_dev].sectors) in finish_drive_clause()
476 if(!(devices[cur_dev].misc_flags & in finish_drive_clause()
480 devices[cur_dev].file_nr = file_nr; in finish_drive_clause()
481 devices[cur_dev].cfg_filename = filename; in finish_drive_clause()
482 if(! (flag_mask & PRIV_FLAG) && IS_SCSI(&devices[cur_dev])) in finish_drive_clause()
483 devices[cur_dev].misc_flags |= PRIV_FLAG; in finish_drive_clause()
484 if(!trusted && (devices[cur_dev].misc_flags & PRIV_FLAG)) { in finish_drive_clause()
487 canon_drv(devices[cur_dev].drive), filename); in finish_drive_clause()
488 devices[cur_dev].misc_flags &= ~PRIV_FLAG; in finish_drive_clause()
588 devices[cur_dev].drive = ':'; in set_cmd_line_image()
594 devices[cur_dev].name = strdup(img); in set_cmd_line_image()
595 devices[cur_dev].offset = 0; in set_cmd_line_image()
597 devices[cur_dev].name = strndup(img, ofsp - img); in set_cmd_line_image()
598 devices[cur_dev].offset = str_to_offset(ofsp+2); in set_cmd_line_image()
601 devices[cur_dev].fat_bits = 0; in set_cmd_line_image()
602 devices[cur_dev].tracks = 0; in set_cmd_line_image()
603 devices[cur_dev].heads = 0; in set_cmd_line_image()
604 devices[cur_dev].sectors = 0; in set_cmd_line_image()
605 if (strchr(devices[cur_dev].name, '|')) { in set_cmd_line_image()
606 char *pipechar = strchr(devices[cur_dev].name, '|'); in set_cmd_line_image()
662 &devices[cur_dev].drive,name,&devices[cur_dev].fat_bits, in parse_old_device_line()
663 &devices[cur_dev].tracks,&heads, in parse_old_device_line()
665 devices[cur_dev].heads = tou16(heads, "heads"); in parse_old_device_line()
666 devices[cur_dev].sectors = tou16(sectors, "sectors"); in parse_old_device_line()
668 devices[cur_dev].offset = (off_t) offset; in parse_old_device_line()
671 devices[cur_dev].fat_bits = 0; in parse_old_device_line()
674 devices[cur_dev].sectors = 0; in parse_old_device_line()
675 devices[cur_dev].heads = 0; in parse_old_device_line()
676 devices[cur_dev].tracks = 0; in parse_old_device_line()
679 devices[cur_dev].offset = 0; in parse_old_device_line()
689 if(!devices[cur_dev].tracks){ in parse_old_device_line()
690 devices[cur_dev].sectors = 0; in parse_old_device_line()
691 devices[cur_dev].heads = 0; in parse_old_device_line()
694 devices[cur_dev].drive = ch_canon_drv(devices[cur_dev].drive); in parse_old_device_line()
695 maintain_default_drive(devices[cur_dev].drive); in parse_old_device_line()
696 if (!(devices[cur_dev].name = strdup(name))) { in parse_old_device_line()
700 devices[cur_dev].misc_flags |= MFORMAT_ONLY_FLAG; in parse_old_device_line()
733 memset((char*)(devices+cur_dev), 0, sizeof(*devices)); in parse_one()
736 devices[cur_dev].drive = ch_canon_drv(token[0]); in parse_one()
737 maintain_default_drive(devices[cur_dev].drive); in parse_one()
749 (caddr_t)&devices[cur_dev]) && in parse_one()
750 set_openflags(&devices[cur_dev]) && in parse_one()
751 set_misc_flags(&devices[cur_dev]) && in parse_one()
752 set_def_format(&devices[cur_dev]))) && in parse_one()
807 devices = NewArray(nr_dev, struct device); in read_config()
808 if(!devices) { in read_config()
813 memcpy(devices, const_devices, in read_config()
831 memset((char *)&devices[cur_devs],0,sizeof(struct device)); in read_config()
854 for (dev=devices; dev->name; dev++) { in mtoolstest()