Home
last modified time | relevance | path

Searched refs:raid_map (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.1/drivers/scsi/smartpqi/
Dsmartpqi_init.c1361 struct pqi_scsi_dev *device, struct raid_map *raid_map) in pqi_validate_raid_map() argument
1367 raid_map_size = get_unaligned_le32(&raid_map->structure_size); in pqi_validate_raid_map()
1369 if (raid_map_size < offsetof(struct raid_map, disk_data)) { in pqi_validate_raid_map()
1375 if (get_unaligned_le16(&raid_map->layout_map_count) != 2) { in pqi_validate_raid_map()
1380 if (get_unaligned_le16(&raid_map->layout_map_count) != 3) { in pqi_validate_raid_map()
1386 get_unaligned_le16(&raid_map->layout_map_count) > 1) { in pqi_validate_raid_map()
1389 get_unaligned_le16(&raid_map->strip_size) * in pqi_validate_raid_map()
1390 get_unaligned_le16(&raid_map->data_disks_per_row); in pqi_validate_raid_map()
1413 struct raid_map *raid_map; in pqi_get_raid_map() local
1415 raid_map = kmalloc(sizeof(*raid_map), GFP_KERNEL); in pqi_get_raid_map()
[all …]
Dsmartpqi.h1002 struct raid_map { struct
1137 struct raid_map *raid_map; /* RAID bypass map */ member
/Linux-v6.1/fs/btrfs/
Draid56.c168 u64 num = rbio->bioc->raid_map[0]; in rbio_bucket()
512 if (last->bioc->raid_map[0] != cur->bioc->raid_map[0]) in rbio_can_merge()
625 if (cur->bioc->raid_map[0] != rbio->bioc->raid_map[0]) in lock_stripe_add()
1097 rbio->bioc->raid_map[0]; in index_one_bio()
1390 u64 stripe_start = rbio->bioc->raid_map[i]; in find_logical_bio_stripe()
1777 const u64 full_stripe_start = rbio->bioc->raid_map[0]; in rbio_add_bio()
1966 if (rbio->bioc->raid_map[failb] == RAID6_Q_STRIPE) { in __raid_recover_end_io()
1967 if (rbio->bioc->raid_map[faila] == in __raid_recover_end_io()
1979 if (rbio->bioc->raid_map[failb] == RAID5_P_STRIPE) { in __raid_recover_end_io()
2324 ASSERT(logical >= rbio->bioc->raid_map[0]); in raid56_add_scrub_pages()
[all …]
Dscrub.c1416 u64 *raid_map, in scrub_stripe_index_and_offset() argument
1426 if (raid_map[i] == RAID6_Q_STRIPE || in scrub_stripe_index_and_offset()
1427 raid_map[i] == RAID5_P_STRIPE) in scrub_stripe_index_and_offset()
1430 if (logical >= raid_map[i] && in scrub_stripe_index_and_offset()
1431 logical < raid_map[i] + BTRFS_STRIPE_LEN) in scrub_stripe_index_and_offset()
1436 *stripe_offset = logical - raid_map[i]; in scrub_stripe_index_and_offset()
1524 bioc->raid_map, in scrub_setup_recheck_block()
2353 if (ret || !bioc || !bioc->raid_map) in scrub_missing_raid56_pages()
2961 if (ret || !bioc || !bioc->raid_map) in scrub_parity_check_and_repair()
Dvolumes.h513 u64 *raid_map; member
Dvolumes.c5886 if (bioc->raid_map[i] > bioc->raid_map[i + 1]) { in sort_parity_stripes()
5888 swap(bioc->raid_map[i], bioc->raid_map[i + 1]); in sort_parity_stripes()
5917 bioc->raid_map = (u64 *)(bioc->tgtdev_map + real_stripes); in alloc_btrfs_io_context()
6596 bioc->raid_map[(i + rot) % num_stripes] = in __btrfs_map_block()
6599 bioc->raid_map[(i + rot) % map->num_stripes] = RAID5_P_STRIPE; in __btrfs_map_block()
6601 bioc->raid_map[(i + rot + 1) % num_stripes] = in __btrfs_map_block()
/Linux-v6.1/drivers/scsi/
Dhpsa.h99 struct raid_map_data raid_map; /* I/O accelerator RAID map */ member
Dhpsa.c1386 h->dev[entry]->raid_map = new_entry->raid_map; in hpsa_scsi_update_entry()
1705 struct raid_map_data *map = &logical_drive->raid_map; in hpsa_figure_phys_disk_ptrs()
3318 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map()
3319 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map()
3338 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map()
3339 sizeof(this_device->raid_map)) { in hpsa_get_raid_map()
3343 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map()
4854 struct raid_map_data *map = &dev->raid_map; in set_encrypt_ioaccel2()
5107 struct raid_map_data *map = &dev->raid_map; in hpsa_scsi_ioaccel_raid_map()
/Linux-v6.1/drivers/md/
Ddm-raid.c3324 static int raid_map(struct dm_target *ti, struct bio *bio) in raid_map() function
4074 .map = raid_map,
/Linux-v6.1/include/trace/events/
Dbtrfs.h2347 __entry->full_stripe = rbio->bioc->raid_map[0];