Lines Matching refs:mindev
22 int majdev, int mindev, char *path);
159 int majdev, mindev; in get_device_numbers() local
165 mindev = minor(st.st_rdev); in get_device_numbers()
168 mindev = minor(st.st_rdev); in get_device_numbers()
169 if (fio_lookup_raw(st.st_rdev, &majdev, &mindev)) in get_device_numbers()
175 mindev = minor(st.st_dev); in get_device_numbers()
190 mindev = minor(st.st_dev); in get_device_numbers()
193 *min = mindev; in get_device_numbers()
229 int majdev, mindev; in find_add_disk_slaves() local
256 if (read_block_dev_entry(temppath, &majdev, &mindev)) { in find_add_disk_slaves()
265 slavedu = disk_util_exists(majdev, mindev); in find_add_disk_slaves()
270 __init_per_file_disk_util(td, majdev, mindev, temppath); in find_add_disk_slaves()
271 slavedu = disk_util_exists(majdev, mindev); in find_add_disk_slaves()
285 int mindev, char *path) in disk_util_add() argument
291 dprint(FD_DISKUTIL, "add maj/min %d/%d: %s\n", majdev, mindev, path); in disk_util_add()
309 du->minor = mindev; in disk_util_add()
341 static int check_dev_match(int majdev, int mindev, char *path) in check_dev_match() argument
348 if (majdev == major && mindev == minor) in check_dev_match()
354 static int find_block_dir(int majdev, int mindev, char *path, int link_ok) in find_block_dir() argument
374 if (!check_dev_match(majdev, mindev, full_path)) { in find_block_dir()
395 found = find_block_dir(majdev, mindev, full_path, 0); in find_block_dir()
407 int majdev, int mindev, in __init_per_file_disk_util() argument
432 return disk_util_add(td, majdev, mindev, path); in __init_per_file_disk_util()
441 int mindev, majdev; in init_per_file_disk_util() local
443 if (get_device_numbers(filename, &majdev, &mindev)) in init_per_file_disk_util()
447 mindev); in init_per_file_disk_util()
449 du = disk_util_exists(majdev, mindev); in init_per_file_disk_util()
459 if (mindev == last_mindev && majdev == last_majdev) in init_per_file_disk_util()
462 last_mindev = mindev; in init_per_file_disk_util()
466 if (!find_block_dir(majdev, mindev, foo, 1)) in init_per_file_disk_util()
469 return __init_per_file_disk_util(td, majdev, mindev, foo); in init_per_file_disk_util()