hpsa.c (39f3deb2bead8a3005130f641af11a78f14cdd28) hpsa.c (c3390df4751177191b1691df2eba5e71af382d0b)
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2014-2015 PMC-Sierra, Inc.
4 * Copyright 2000,2009-2015 Hewlett-Packard Development Company, L.P.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.

--- 4967 unchanged lines hidden (view full) ---

4976 default:
4977 return IO_ACCEL_INELIGIBLE;
4978 }
4979
4980 if (unlikely(map_index >= RAID_MAP_MAX_ENTRIES))
4981 return IO_ACCEL_INELIGIBLE;
4982
4983 c->phys_disk = dev->phys_disk[map_index];
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2014-2015 PMC-Sierra, Inc.
4 * Copyright 2000,2009-2015 Hewlett-Packard Development Company, L.P.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.

--- 4967 unchanged lines hidden (view full) ---

4976 default:
4977 return IO_ACCEL_INELIGIBLE;
4978 }
4979
4980 if (unlikely(map_index >= RAID_MAP_MAX_ENTRIES))
4981 return IO_ACCEL_INELIGIBLE;
4982
4983 c->phys_disk = dev->phys_disk[map_index];
4984 if (!c->phys_disk)
4985 return IO_ACCEL_INELIGIBLE;
4984
4985 disk_handle = dd[map_index].ioaccel_handle;
4986 disk_block = le64_to_cpu(map->disk_starting_blk) +
4987 first_row * le16_to_cpu(map->strip_size) +
4988 (first_row_offset - first_column *
4989 le16_to_cpu(map->strip_size));
4990 disk_block_cnt = block_cnt;
4991

--- 4787 unchanged lines hidden ---
4986
4987 disk_handle = dd[map_index].ioaccel_handle;
4988 disk_block = le64_to_cpu(map->disk_starting_blk) +
4989 first_row * le16_to_cpu(map->strip_size) +
4990 (first_row_offset - first_column *
4991 le16_to_cpu(map->strip_size));
4992 disk_block_cnt = block_cnt;
4993

--- 4787 unchanged lines hidden ---