Lines Matching refs:drives_table
261 DriveInfo drives_table[MAX_DRIVES+1]; variable
922 if (!drives_table[index].used) { in drive_get_free_idx()
923 drives_table[index].used = 1; in drive_get_free_idx()
963 if (drives_table[index].type == type && in drive_get_index()
964 drives_table[index].bus == bus && in drive_get_index()
965 drives_table[index].unit == unit && in drive_get_index()
966 drives_table[index].used) in drive_get_index()
979 if(drives_table[index].type == type && in drive_get_max_bus()
980 drives_table[index].bus > max_bus) in drive_get_max_bus()
981 max_bus = drives_table[index].bus; in drive_get_max_bus()
991 if (drives_table[index].bdrv == bdrv) in drive_get_serial()
992 return drives_table[index].serial; in drive_get_serial()
1002 if (drives_table[index].bdrv == bdrv) in drive_get_onerror()
1003 return drives_table[index].onerror; in drive_get_onerror()
1018 if (drives_table[i].bdrv == bdrv) { in drive_uninit()
1019 drives_table[i].bdrv = NULL; in drive_uninit()
1020 drives_table[i].used = 0; in drive_uninit()
1021 drive_remove(drives_table[i].drive_opt_idx); in drive_uninit()
1324 drives_table[drives_table_idx].bdrv = bdrv; in drive_init()
1325 drives_table[drives_table_idx].type = type; in drive_init()
1326 drives_table[drives_table_idx].bus = bus_id; in drive_init()
1327 drives_table[drives_table_idx].unit = unit_id; in drive_init()
1328 drives_table[drives_table_idx].onerror = onerror; in drive_init()
1329 drives_table[drives_table_idx].drive_opt_idx = arg - drives_opt; in drive_init()
1330 strncpy(drives_table[drives_table_idx].serial, serial, sizeof(serial)); in drive_init()