Lines Matching refs:device_list

73 …c void find_devices(HWND hwnd, const GUID* guid, const mountmgr& mm, vector<device>& device_list) {  argument
306 device_list.push_back(dev);
344 device_list.clear();
383 find_devices(hwnd, &GUID_DEVINTERFACE_DISK, mm, device_list);
384 find_devices(hwnd, &GUID_DEVINTERFACE_VOLUME, mm, device_list);
385 find_devices(hwnd, &GUID_DEVINTERFACE_HIDDEN_VOLUME, mm, device_list);
389 sort(device_list.begin(), device_list.end(), sort_devices);
392 for (i = 0; i < device_list.size(); i++) {
393 if (!device_list[i].ignore) {
398 if (device_list[i].disk_num != 0xffffffff && device_list[i].disk_num == last_disk_num)
408 if (device_list[i].disk_num != 0xffffffff) {
411 … if (!load_string(module, device_list[i].part_num != 0 ? IDS_PARTITION : IDS_DISK_NUM, t))
414 …wstring_sprintf(name, t, device_list[i].part_num != 0 ? device_list[i].part_num : device_list[i].d…
416 name = device_list[i].pnp_name;
419 if (bfs && device_list[i].drive == L"" && device_list[i].fstype == L"Btrfs") {
423 …if (RtlCompareMemory(&bfs2->uuid, &device_list[i].fs_uuid, sizeof(BTRFS_UUID)) == sizeof(BTRFS_UUI…
433 …if (RtlCompareMemory(&device_list[i].dev_uuid, &device_list[i].dev_uuid, sizeof(BTRFS_UUID)) == si…
434 for (k = 0; k < device_list.size(); k++) {
435 … if (k != i && device_list[k].fstype == L"Btrfs" && device_list[k].drive != L"" &&
436 …RtlCompareMemory(&device_list[k].fs_uuid, &device_list[i].fs_uuid, sizeof(BTRFS_UUID)) == sizeof(B…
437 device_list[i].drive = device_list[k].drive;
442 device_list[i].multi_device = bfs2->num_devices > 1;
460 if (device_list[i].friendly_name != L"") {
461 name += device_list[i].friendly_name;
465 if (device_list[i].drive != L"") {
466 name += device_list[i].drive;
470 if (device_list[i].fstype != L"") {
471 name += device_list[i].fstype;
475 format_size(device_list[i].size, size, false);
482 tis.itemex.lParam = (LPARAM)&device_list[i];
488 if (device_list[i].part_num == 0) {
490 last_disk_num = device_list[i].disk_num;