Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/fs/btrfs/ !
Dsuper.c1919 struct btrfs_device_info *devices_info; in btrfs_calc_avail_data_space() local
1944 devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), in btrfs_calc_avail_data_space()
1946 if (!devices_info) in btrfs_calc_avail_data_space()
1988 devices_info[i].dev = device; in btrfs_calc_avail_data_space()
1989 devices_info[i].max_avail = avail_space; in btrfs_calc_avail_data_space()
1997 btrfs_descending_sort_devices(devices_info, nr_devices); in btrfs_calc_avail_data_space()
2004 if (devices_info[i].max_avail >= min_stripe_size) { in btrfs_calc_avail_data_space()
2008 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space()
2009 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()
2011 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
[all …]
Dvolumes.c5187 struct btrfs_device_info *devices_info) in gather_device_info() argument
5245 devices_info[ndevs].dev_offset = dev_offset; in gather_device_info()
5246 devices_info[ndevs].max_avail = max_avail; in gather_device_info()
5247 devices_info[ndevs].total_avail = total_avail; in gather_device_info()
5248 devices_info[ndevs].dev = device; in gather_device_info()
5256 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in gather_device_info()
5263 struct btrfs_device_info *devices_info) in decide_stripe_size_regular() argument
5275 ctl->stripe_size = div_u64(devices_info[ctl->ndevs - 1].max_avail, in decide_stripe_size_regular()
5310 struct btrfs_device_info *devices_info) in decide_stripe_size_zoned() argument
5312 u64 zone_size = devices_info[0].dev->zone_info->zone_size; in decide_stripe_size_zoned()
[all …]