Lines Matching refs:drives_table
255 DriveInfo drives_table[MAX_DRIVES+1]; variable
624 if (!drives_table[index].used) { in drive_get_free_idx()
625 drives_table[index].used = 1; in drive_get_free_idx()
665 if (drives_table[index].type == type && in drive_get_index()
666 drives_table[index].bus == bus && in drive_get_index()
667 drives_table[index].unit == unit && in drive_get_index()
668 drives_table[index].used) in drive_get_index()
681 if(drives_table[index].type == type && in drive_get_max_bus()
682 drives_table[index].bus > max_bus) in drive_get_max_bus()
683 max_bus = drives_table[index].bus; in drive_get_max_bus()
693 if (drives_table[index].bdrv == bdrv) in drive_get_serial()
694 return drives_table[index].serial; in drive_get_serial()
704 if (drives_table[index].bdrv == bdrv) in drive_get_onerror()
705 return drives_table[index].onerror; in drive_get_onerror()
720 if (drives_table[i].bdrv == bdrv) { in drive_uninit()
721 drives_table[i].bdrv = NULL; in drive_uninit()
722 drives_table[i].used = 0; in drive_uninit()
723 drive_remove(drives_table[i].drive_opt_idx); in drive_uninit()
1026 drives_table[drives_table_idx].bdrv = bdrv; in drive_init()
1027 drives_table[drives_table_idx].type = type; in drive_init()
1028 drives_table[drives_table_idx].bus = bus_id; in drive_init()
1029 drives_table[drives_table_idx].unit = unit_id; in drive_init()
1030 drives_table[drives_table_idx].onerror = onerror; in drive_init()
1031 drives_table[drives_table_idx].drive_opt_idx = arg - drives_opt; in drive_init()
1032 strncpy(drives_table[drives_table_idx].serial, serial, sizeof(serial)); in drive_init()