• Home
  • Raw
  • Download

Lines Matching refs:drives_table

194 DriveInfo drives_table[MAX_DRIVES+1];  variable
725 if (!drives_table[index].used) { in drive_get_free_idx()
726 drives_table[index].used = 1; in drive_get_free_idx()
766 if (drives_table[index].type == type && in drive_get_index()
767 drives_table[index].bus == bus && in drive_get_index()
768 drives_table[index].unit == unit && in drive_get_index()
769 drives_table[index].used) in drive_get_index()
782 if(drives_table[index].type == type && in drive_get_max_bus()
783 drives_table[index].bus > max_bus) in drive_get_max_bus()
784 max_bus = drives_table[index].bus; in drive_get_max_bus()
794 if (drives_table[index].bdrv == bdrv) in drive_get_serial()
795 return drives_table[index].serial; in drive_get_serial()
805 if (drives_table[index].bdrv == bdrv) in drive_get_onerror()
806 return drives_table[index].onerror; in drive_get_onerror()
821 if (drives_table[i].bdrv == bdrv) { in drive_uninit()
822 drives_table[i].bdrv = NULL; in drive_uninit()
823 drives_table[i].used = 0; in drive_uninit()
824 drive_remove(drives_table[i].drive_opt_idx); in drive_uninit()
1127 drives_table[drives_table_idx].bdrv = bdrv; in drive_init()
1128 drives_table[drives_table_idx].type = type; in drive_init()
1129 drives_table[drives_table_idx].bus = bus_id; in drive_init()
1130 drives_table[drives_table_idx].unit = unit_id; in drive_init()
1131 drives_table[drives_table_idx].onerror = onerror; in drive_init()
1132 drives_table[drives_table_idx].drive_opt_idx = arg - drives_opt; in drive_init()
1133 strncpy(drives_table[drives_table_idx].serial, serial, sizeof(serial)); in drive_init()