Lines Matching refs:raid_map

1123 	struct pqi_scsi_dev *device, struct raid_map *raid_map)
1129 raid_map_size = get_unaligned_le32(&raid_map->structure_size);
1131 if (raid_map_size < offsetof(struct raid_map, disk_data)) {
1137 if (get_unaligned_le16(&raid_map->layout_map_count) != 2) {
1142 if (get_unaligned_le16(&raid_map->layout_map_count) != 3) {
1148 get_unaligned_le16(&raid_map->layout_map_count) > 1) {
1151 get_unaligned_le16(&raid_map->strip_size) *
1152 get_unaligned_le16(&raid_map->data_disks_per_row);
1175 struct raid_map *raid_map;
1177 raid_map = kmalloc(sizeof(*raid_map), GFP_KERNEL);
1178 if (!raid_map)
1182 device->scsi3addr, raid_map, sizeof(*raid_map),
1188 raid_map_size = get_unaligned_le32(&raid_map->structure_size);
1190 if (raid_map_size > sizeof(*raid_map)) {
1192 kfree(raid_map);
1194 raid_map = kmalloc(raid_map_size, GFP_KERNEL);
1195 if (!raid_map)
1199 device->scsi3addr, raid_map, raid_map_size,
1204 if (get_unaligned_le32(&raid_map->structure_size)
1209 get_unaligned_le32(&raid_map->structure_size));
1215 rc = pqi_validate_raid_map(ctrl_info, device, raid_map);
1219 device->raid_map = raid_map;
1224 kfree(raid_map);
1719 kfree(existing_device->raid_map);
1720 existing_device->raid_map = new_device->raid_map;
1728 new_device->raid_map = NULL;
1734 kfree(device->raid_map);
2218 struct pqi_encryption_info *encryption_info, struct raid_map *raid_map,
2228 volume_blk_size = get_unaligned_le32(&raid_map->volume_blk_size);
2233 get_unaligned_le16(&raid_map->data_encryption_key_index);
2248 struct raid_map *raid_map;
2337 raid_map = device->raid_map;
2340 if (last_block >= get_unaligned_le64(&raid_map->volume_blk_cnt) ||
2344 data_disks_per_row = get_unaligned_le16(&raid_map->data_disks_per_row);
2345 strip_size = get_unaligned_le16(&raid_map->strip_size);
2346 layout_map_count = get_unaligned_le16(&raid_map->layout_map_count);
2380 get_unaligned_le16(&raid_map->metadata_disks_per_row);
2381 map_row = ((u32)(first_row >> raid_map->parity_rotation_shift)) %
2382 get_unaligned_le16(&raid_map->row_cnt);
2514 ((u32)(first_row >> raid_map->parity_rotation_shift)) %
2515 get_unaligned_le16(&raid_map->row_cnt);
2518 (get_unaligned_le16(&raid_map->row_cnt) *
2523 aio_handle = raid_map->disk_data[map_index].aio_handle;
2524 disk_block = get_unaligned_le64(&raid_map->disk_starting_blk) +
2530 if (raid_map->phys_blk_shift) {
2531 disk_block <<= raid_map->phys_blk_shift;
2532 disk_block_cnt <<= raid_map->phys_blk_shift;
2557 if (get_unaligned_le16(&raid_map->flags) &
2559 pqi_set_encryption_info(&encryption_info, raid_map,