Searched refs:raid_map (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/drivers/scsi/smartpqi/ |
D | smartpqi_init.c | 1023 struct pqi_scsi_dev *device, struct raid_map *raid_map) in pqi_validate_raid_map() argument 1031 raid_map_size = get_unaligned_le32(&raid_map->structure_size); in pqi_validate_raid_map() 1033 if (raid_map_size < offsetof(struct raid_map, disk_data)) { in pqi_validate_raid_map() 1038 if (raid_map_size > sizeof(*raid_map)) { in pqi_validate_raid_map() 1043 num_phys_disks = get_unaligned_le16(&raid_map->layout_map_count) * in pqi_validate_raid_map() 1044 (get_unaligned_le16(&raid_map->data_disks_per_row) + in pqi_validate_raid_map() 1045 get_unaligned_le16(&raid_map->metadata_disks_per_row)); in pqi_validate_raid_map() 1047 get_unaligned_le16(&raid_map->row_cnt); in pqi_validate_raid_map() 1055 if (get_unaligned_le16(&raid_map->layout_map_count) != 2) { in pqi_validate_raid_map() 1060 if (get_unaligned_le16(&raid_map->layout_map_count) != 3) { in pqi_validate_raid_map() [all …]
|
D | smartpqi.h | 771 struct raid_map { struct 838 struct raid_map *raid_map; /* RAID bypass map */ member
|
/Linux-v4.19/fs/btrfs/ |
D | raid56.c | 268 u64 num = rbio->bbio->raid_map[0]; in rbio_bucket() 556 if (last->bbio->raid_map[0] != in rbio_can_merge() 557 cur->bbio->raid_map[0]) in rbio_can_merge() 669 if (cur->bbio->raid_map[0] == rbio->bbio->raid_map[0]) { in lock_stripe_add() 1156 stripe_offset = start - rbio->bbio->raid_map[0]; in index_rbio_pages() 1383 stripe_start = rbio->bbio->raid_map[i]; in find_logical_bio_stripe() 1885 if (rbio->bbio->raid_map[failb] == RAID6_Q_STRIPE) { in __raid_recover_end_io() 1886 if (rbio->bbio->raid_map[faila] == in __raid_recover_end_io() 1898 if (rbio->bbio->raid_map[failb] == RAID5_P_STRIPE) { in __raid_recover_end_io() 2300 ASSERT(logical >= rbio->bbio->raid_map[0]); in raid56_add_scrub_pages() [all …]
|
D | scrub.c | 1221 u64 *raid_map, in scrub_stripe_index_and_offset() argument 1232 if (raid_map[i] == RAID6_Q_STRIPE || in scrub_stripe_index_and_offset() 1233 raid_map[i] == RAID5_P_STRIPE) in scrub_stripe_index_and_offset() 1236 if (logical >= raid_map[i] && in scrub_stripe_index_and_offset() 1237 logical < raid_map[i] + mapped_length) in scrub_stripe_index_and_offset() 1242 *stripe_offset = logical - raid_map[i]; in scrub_stripe_index_and_offset() 1341 bbio->raid_map, in scrub_setup_recheck_block() 2154 if (ret || !bbio || !bbio->raid_map) in scrub_missing_raid56_pages() 2746 if (ret || !bbio || !bbio->raid_map) in scrub_parity_check_and_repair()
|
D | volumes.h | 315 u64 *raid_map; member
|
D | volumes.c | 5227 if (parity_smaller(bbio->raid_map[i], in sort_parity_stripes() 5228 bbio->raid_map[i+1])) { in sort_parity_stripes() 5230 l = bbio->raid_map[i]; in sort_parity_stripes() 5232 bbio->raid_map[i] = bbio->raid_map[i+1]; in sort_parity_stripes() 5234 bbio->raid_map[i+1] = l; in sort_parity_stripes() 5838 bbio->raid_map = (u64 *)((void *)bbio->stripes + in __btrfs_map_block() 5849 bbio->raid_map[(i+rot) % num_stripes] = in __btrfs_map_block() 5852 bbio->raid_map[(i+rot) % map->num_stripes] = RAID5_P_STRIPE; in __btrfs_map_block() 5854 bbio->raid_map[(i+rot+1) % num_stripes] = in __btrfs_map_block() 5872 if (bbio->raid_map) in __btrfs_map_block()
|
/Linux-v4.19/drivers/scsi/ |
D | hpsa.h | 96 struct raid_map_data raid_map; /* I/O accelerator RAID map */ member
|
D | hpsa.c | 1374 h->dev[entry]->raid_map = new_entry->raid_map; in hpsa_scsi_update_entry() 1693 struct raid_map_data *map = &logical_drive->raid_map; in hpsa_figure_phys_disk_ptrs() 3302 if (fill_cmd(c, HPSA_GET_RAID_MAP, h, &this_device->raid_map, in hpsa_get_raid_map() 3303 sizeof(this_device->raid_map), 0, in hpsa_get_raid_map() 3322 if (le32_to_cpu(this_device->raid_map.structure_size) > in hpsa_get_raid_map() 3323 sizeof(this_device->raid_map)) { in hpsa_get_raid_map() 3327 hpsa_debug_map_buff(h, rc, &this_device->raid_map); in hpsa_get_raid_map() 4818 struct raid_map_data *map = &dev->raid_map; in set_encrypt_ioaccel2() 5058 struct raid_map_data *map = &dev->raid_map; in hpsa_scsi_ioaccel_raid_map()
|
/Linux-v4.19/drivers/md/ |
D | dm-raid.c | 3316 static int raid_map(struct dm_target *ti, struct bio *bio) in raid_map() function 4021 .map = raid_map,
|