Home
last modified time | relevance | path

Searched refs:devices_info (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer_configuration.py389 devices_info = run_json_cmd("devlink -j dev info")["info"]
390 for d in devices_info:
391 if "mlxsw_spectrum" in devices_info[d]["driver"]:
/Linux-v6.6/fs/btrfs/
Dsuper.c1916 struct btrfs_device_info *devices_info; in btrfs_calc_avail_data_space() local
1941 devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), in btrfs_calc_avail_data_space()
1943 if (!devices_info) in btrfs_calc_avail_data_space()
1985 devices_info[i].dev = device; in btrfs_calc_avail_data_space()
1986 devices_info[i].max_avail = avail_space; in btrfs_calc_avail_data_space()
1994 btrfs_descending_sort_devices(devices_info, nr_devices); in btrfs_calc_avail_data_space()
2001 if (devices_info[i].max_avail >= min_stripe_size) { in btrfs_calc_avail_data_space()
2005 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space()
2006 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()
2008 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
[all …]
Dvolumes.c5186 struct btrfs_device_info *devices_info) in gather_device_info() argument
5244 devices_info[ndevs].dev_offset = dev_offset; in gather_device_info()
5245 devices_info[ndevs].max_avail = max_avail; in gather_device_info()
5246 devices_info[ndevs].total_avail = total_avail; in gather_device_info()
5247 devices_info[ndevs].dev = device; in gather_device_info()
5255 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in gather_device_info()
5262 struct btrfs_device_info *devices_info) in decide_stripe_size_regular() argument
5274 ctl->stripe_size = div_u64(devices_info[ctl->ndevs - 1].max_avail, in decide_stripe_size_regular()
5309 struct btrfs_device_info *devices_info) in decide_stripe_size_zoned() argument
5311 u64 zone_size = devices_info[0].dev->zone_info->zone_size; in decide_stripe_size_zoned()
[all …]