Lines Matching defs:map
1380 * raid map data first. If previously offload_enabled and
1381 * offload_config were set, raid map data had better be
1382 * the same as it was before. If raid map data has changed
1705 struct raid_map_data *map = &logical_drive->raid_map;
1706 struct raid_map_disk_data *dd = &map->data[0];
1708 int total_disks_per_row = le16_to_cpu(map->data_disks_per_row) +
1709 le16_to_cpu(map->metadata_disks_per_row);
1710 int nraid_map_entries = le16_to_cpu(map->row_cnt) *
1711 le16_to_cpu(map->layout_map_count) *
1713 int nphys_disk = le16_to_cpu(map->layout_map_count) *
1748 * map data will refer to a physical disk which isn't actually
1791 * If offload is currently enabled, the RAID map and
2027 * The raid map should be current by now.
3093 /* fill_cmd can't fail here, no data buffer to map. */
3237 int map, row, col;
3279 for (map = 0; map < map_cnt; map++) {
3280 dev_info(&h->pdev->dev, "Map%u:\n", map);
3337 /* @todo in the future, dynamically allocate RAID map memory */
3340 dev_warn(&h->pdev->dev, "RAID map size is too large!\n");
4854 struct raid_map_data *map = &dev->raid_map;
4858 if (!(le16_to_cpu(map->flags) & RAID_MAP_FLAG_ENCRYPT_ON))
4861 cp->dekindex = map->dekindex;
4897 if (le32_to_cpu(map->volume_blk_size) != 512)
4899 le32_to_cpu(map->volume_blk_size)/512;
5073 static void raid_map_helper(struct raid_map_data *map,
5078 *map_index %= le16_to_cpu(map->data_disks_per_row);
5084 le16_to_cpu(map->data_disks_per_row);
5087 if (*current_group < le16_to_cpu(map->layout_map_count) - 1) {
5088 /* select map index from next group */
5089 *map_index += le16_to_cpu(map->data_disks_per_row);
5092 /* select map index from first group */
5093 *map_index %= le16_to_cpu(map->data_disks_per_row);
5107 struct raid_map_data *map = &dev->raid_map;
5108 struct raid_map_disk_data *dd = &map->data[0];
5213 if (last_block >= le64_to_cpu(map->volume_blk_cnt) ||
5218 blocks_per_row = le16_to_cpu(map->data_disks_per_row) *
5219 le16_to_cpu(map->strip_size);
5220 strip_size = le16_to_cpu(map->strip_size);
5250 total_disks_per_row = le16_to_cpu(map->data_disks_per_row) +
5251 le16_to_cpu(map->metadata_disks_per_row);
5252 map_row = ((u32)(first_row >> map->parity_rotation_shift)) %
5253 le16_to_cpu(map->row_cnt);
5265 if (le16_to_cpu(map->layout_map_count) != 2) {
5270 map_index += le16_to_cpu(map->data_disks_per_row);
5278 if (le16_to_cpu(map->layout_map_count) != 3) {
5284 raid_map_helper(map, offload_to_mirror,
5289 le16_to_cpu(map->layout_map_count) - 1)
5299 if (le16_to_cpu(map->layout_map_count) <= 1)
5304 le16_to_cpu(map->strip_size) *
5305 le16_to_cpu(map->data_disks_per_row);
5311 le16_to_cpu(map->layout_map_count);
5359 (void) do_div(tmpdiv, map->strip_size);
5362 (void) do_div(tmpdiv, map->strip_size);
5374 r5or6_first_row_offset / le16_to_cpu(map->strip_size);
5376 r5or6_last_row_offset / le16_to_cpu(map->strip_size);
5382 map_row = ((u32)(first_row >> map->parity_rotation_shift)) %
5383 le16_to_cpu(map->row_cnt);
5386 (le16_to_cpu(map->row_cnt) * total_disks_per_row)) +
5401 disk_block = le64_to_cpu(map->disk_starting_blk) +
5402 first_row * le16_to_cpu(map->strip_size) +
5404 le16_to_cpu(map->strip_size));
5408 if (map->phys_blk_shift) {
5409 disk_block <<= map->phys_blk_shift;
5410 disk_block_cnt <<= map->phys_blk_shift;
6683 /* fill_cmd can't fail here, no data buffer to map */
7641 /* Find and map CISS config table and transfer table