Searched refs:raid_map (Results 1 – 9 of 9) sorted by relevance
| /Linux-v5.4/drivers/scsi/smartpqi/ |
| D | smartpqi_init.c | 1162 struct pqi_scsi_dev *device, struct raid_map *raid_map) in pqi_validate_raid_map() argument 1168 raid_map_size = get_unaligned_le32(&raid_map->structure_size); in pqi_validate_raid_map() 1170 if (raid_map_size < offsetof(struct raid_map, disk_data)) { in pqi_validate_raid_map() 1176 if (get_unaligned_le16(&raid_map->layout_map_count) != 2) { in pqi_validate_raid_map() 1181 if (get_unaligned_le16(&raid_map->layout_map_count) != 3) { in pqi_validate_raid_map() 1187 get_unaligned_le16(&raid_map->layout_map_count) > 1) { in pqi_validate_raid_map() 1190 get_unaligned_le16(&raid_map->strip_size) * in pqi_validate_raid_map() 1191 get_unaligned_le16(&raid_map->data_disks_per_row); in pqi_validate_raid_map() 1214 struct raid_map *raid_map; in pqi_get_raid_map() local 1216 raid_map = kmalloc(sizeof(*raid_map), GFP_KERNEL); in pqi_get_raid_map() [all …]
|
| D | smartpqi.h | 870 struct raid_map { struct 943 struct raid_map *raid_map; /* RAID bypass map */ member
|
| /Linux-v5.4/fs/btrfs/ |
| D | raid56.c | 284 u64 num = rbio->bbio->raid_map[0]; in rbio_bucket() 572 if (last->bbio->raid_map[0] != in rbio_can_merge() 573 cur->bbio->raid_map[0]) in rbio_can_merge() 685 if (cur->bbio->raid_map[0] == rbio->bbio->raid_map[0]) { in lock_stripe_add() 1172 stripe_offset = start - rbio->bbio->raid_map[0]; in index_rbio_pages() 1399 stripe_start = rbio->bbio->raid_map[i]; in find_logical_bio_stripe() 1901 if (rbio->bbio->raid_map[failb] == RAID6_Q_STRIPE) { in __raid_recover_end_io() 1902 if (rbio->bbio->raid_map[faila] == in __raid_recover_end_io() 1914 if (rbio->bbio->raid_map[failb] == RAID5_P_STRIPE) { in __raid_recover_end_io() 2316 ASSERT(logical >= rbio->bbio->raid_map[0]); in raid56_add_scrub_pages() [all …]
|
| D | scrub.c | 1237 u64 *raid_map, in scrub_stripe_index_and_offset() argument 1248 if (raid_map[i] == RAID6_Q_STRIPE || in scrub_stripe_index_and_offset() 1249 raid_map[i] == RAID5_P_STRIPE) in scrub_stripe_index_and_offset() 1252 if (logical >= raid_map[i] && in scrub_stripe_index_and_offset() 1253 logical < raid_map[i] + mapped_length) in scrub_stripe_index_and_offset() 1258 *stripe_offset = logical - raid_map[i]; in scrub_stripe_index_and_offset() 1357 bbio->raid_map, in scrub_setup_recheck_block() 2178 if (ret || !bbio || !bbio->raid_map) in scrub_missing_raid56_pages() 2770 if (ret || !bbio || !bbio->raid_map) in scrub_parity_check_and_repair()
|
| D | volumes.h | 346 u64 *raid_map; member
|
| D | volumes.c | 5529 if (parity_smaller(bbio->raid_map[i], in sort_parity_stripes() 5530 bbio->raid_map[i+1])) { in sort_parity_stripes() 5532 l = bbio->raid_map[i]; in sort_parity_stripes() 5534 bbio->raid_map[i] = bbio->raid_map[i+1]; in sort_parity_stripes() 5536 bbio->raid_map[i+1] = l; in sort_parity_stripes() 6195 bbio->raid_map = (u64 *)((void *)bbio->stripes + in __btrfs_map_block() 6206 bbio->raid_map[(i+rot) % num_stripes] = in __btrfs_map_block() 6209 bbio->raid_map[(i+rot) % map->num_stripes] = RAID5_P_STRIPE; in __btrfs_map_block() 6211 bbio->raid_map[(i+rot+1) % num_stripes] = in __btrfs_map_block() 6229 if (bbio->raid_map) in __btrfs_map_block()
|
| /Linux-v5.4/drivers/scsi/ |
| D | hpsa.h | 98 struct raid_map_data raid_map; /* I/O accelerator RAID map */ member
|
| D | hpsa.c | 1369 h->dev[entry]->raid_map = new_entry->raid_map; in hpsa_scsi_update_entry() 1688 struct raid_map_data *map = &logical_drive->raid_map; in hpsa_figure_phys_disk_ptrs() 3300 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map() 3301 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map() 3320 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map() 3321 sizeof(this_device->raid_map)) { in hpsa_get_raid_map() 3325 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map() 4824 struct raid_map_data *map = &dev->raid_map; in set_encrypt_ioaccel2() 5077 struct raid_map_data *map = &dev->raid_map; in hpsa_scsi_ioaccel_raid_map()
|
| /Linux-v5.4/drivers/md/ |
| D | dm-raid.c | 3311 static int raid_map(struct dm_target *ti, struct bio *bio) in raid_map() function 4024 .map = raid_map,
|