diff options
author | Eric Moore <eric.moore@lsi.com> | 2009-05-18 15:02:08 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-05-23 16:44:17 -0400 |
commit | d5d135b3a76750df250e18956476b6b2c4ad97c2 (patch) | |
tree | a3634bd11f235cfd7d30625b24f224e180b37f4e /drivers/scsi/mpt2sas/mpt2sas_scsih.c | |
parent | ddf59a35e98aa12255ed64c892271339504cc65c (diff) |
[SCSI] mpt2sas: using the same naming convention for all static function
This fix's is for all local function so their name has the "_" preceeding
the module name, then function name. Most the code is already is using this
naming convention.
Signed-off-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index f45837630b24..2a01a5f2a84d 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -197,12 +197,12 @@ static struct pci_device_id scsih_pci_table[] = { | |||
197 | MODULE_DEVICE_TABLE(pci, scsih_pci_table); | 197 | MODULE_DEVICE_TABLE(pci, scsih_pci_table); |
198 | 198 | ||
199 | /** | 199 | /** |
200 | * scsih_set_debug_level - global setting of ioc->logging_level. | 200 | * _scsih_set_debug_level - global setting of ioc->logging_level. |
201 | * | 201 | * |
202 | * Note: The logging levels are defined in mpt2sas_debug.h. | 202 | * Note: The logging levels are defined in mpt2sas_debug.h. |
203 | */ | 203 | */ |
204 | static int | 204 | static int |
205 | scsih_set_debug_level(const char *val, struct kernel_param *kp) | 205 | _scsih_set_debug_level(const char *val, struct kernel_param *kp) |
206 | { | 206 | { |
207 | int ret = param_set_int(val, kp); | 207 | int ret = param_set_int(val, kp); |
208 | struct MPT2SAS_ADAPTER *ioc; | 208 | struct MPT2SAS_ADAPTER *ioc; |
@@ -215,7 +215,7 @@ scsih_set_debug_level(const char *val, struct kernel_param *kp) | |||
215 | ioc->logging_level = logging_level; | 215 | ioc->logging_level = logging_level; |
216 | return 0; | 216 | return 0; |
217 | } | 217 | } |
218 | module_param_call(logging_level, scsih_set_debug_level, param_get_int, | 218 | module_param_call(logging_level, _scsih_set_debug_level, param_get_int, |
219 | &logging_level, 0644); | 219 | &logging_level, 0644); |
220 | 220 | ||
221 | /** | 221 | /** |
@@ -1082,14 +1082,14 @@ _scsih_build_scatter_gather(struct MPT2SAS_ADAPTER *ioc, | |||
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | /** | 1084 | /** |
1085 | * scsih_change_queue_depth - setting device queue depth | 1085 | * _scsih_change_queue_depth - setting device queue depth |
1086 | * @sdev: scsi device struct | 1086 | * @sdev: scsi device struct |
1087 | * @qdepth: requested queue depth | 1087 | * @qdepth: requested queue depth |
1088 | * | 1088 | * |
1089 | * Returns queue depth. | 1089 | * Returns queue depth. |
1090 | */ | 1090 | */ |
1091 | static int | 1091 | static int |
1092 | scsih_change_queue_depth(struct scsi_device *sdev, int qdepth) | 1092 | _scsih_change_queue_depth(struct scsi_device *sdev, int qdepth) |
1093 | { | 1093 | { |
1094 | struct Scsi_Host *shost = sdev->host; | 1094 | struct Scsi_Host *shost = sdev->host; |
1095 | int max_depth; | 1095 | int max_depth; |
@@ -1114,14 +1114,14 @@ scsih_change_queue_depth(struct scsi_device *sdev, int qdepth) | |||
1114 | } | 1114 | } |
1115 | 1115 | ||
1116 | /** | 1116 | /** |
1117 | * scsih_change_queue_depth - changing device queue tag type | 1117 | * _scsih_change_queue_depth - changing device queue tag type |
1118 | * @sdev: scsi device struct | 1118 | * @sdev: scsi device struct |
1119 | * @tag_type: requested tag type | 1119 | * @tag_type: requested tag type |
1120 | * | 1120 | * |
1121 | * Returns queue tag type. | 1121 | * Returns queue tag type. |
1122 | */ | 1122 | */ |
1123 | static int | 1123 | static int |
1124 | scsih_change_queue_type(struct scsi_device *sdev, int tag_type) | 1124 | _scsih_change_queue_type(struct scsi_device *sdev, int tag_type) |
1125 | { | 1125 | { |
1126 | if (sdev->tagged_supported) { | 1126 | if (sdev->tagged_supported) { |
1127 | scsi_set_tag_type(sdev, tag_type); | 1127 | scsi_set_tag_type(sdev, tag_type); |
@@ -1136,14 +1136,14 @@ scsih_change_queue_type(struct scsi_device *sdev, int tag_type) | |||
1136 | } | 1136 | } |
1137 | 1137 | ||
1138 | /** | 1138 | /** |
1139 | * scsih_target_alloc - target add routine | 1139 | * _scsih_target_alloc - target add routine |
1140 | * @starget: scsi target struct | 1140 | * @starget: scsi target struct |
1141 | * | 1141 | * |
1142 | * Returns 0 if ok. Any other return is assumed to be an error and | 1142 | * Returns 0 if ok. Any other return is assumed to be an error and |
1143 | * the device is ignored. | 1143 | * the device is ignored. |
1144 | */ | 1144 | */ |
1145 | static int | 1145 | static int |
1146 | scsih_target_alloc(struct scsi_target *starget) | 1146 | _scsih_target_alloc(struct scsi_target *starget) |
1147 | { | 1147 | { |
1148 | struct Scsi_Host *shost = dev_to_shost(&starget->dev); | 1148 | struct Scsi_Host *shost = dev_to_shost(&starget->dev); |
1149 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 1149 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
@@ -1198,13 +1198,13 @@ scsih_target_alloc(struct scsi_target *starget) | |||
1198 | } | 1198 | } |
1199 | 1199 | ||
1200 | /** | 1200 | /** |
1201 | * scsih_target_destroy - target destroy routine | 1201 | * _scsih_target_destroy - target destroy routine |
1202 | * @starget: scsi target struct | 1202 | * @starget: scsi target struct |
1203 | * | 1203 | * |
1204 | * Returns nothing. | 1204 | * Returns nothing. |
1205 | */ | 1205 | */ |
1206 | static void | 1206 | static void |
1207 | scsih_target_destroy(struct scsi_target *starget) | 1207 | _scsih_target_destroy(struct scsi_target *starget) |
1208 | { | 1208 | { |
1209 | struct Scsi_Host *shost = dev_to_shost(&starget->dev); | 1209 | struct Scsi_Host *shost = dev_to_shost(&starget->dev); |
1210 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 1210 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
@@ -1247,14 +1247,14 @@ scsih_target_destroy(struct scsi_target *starget) | |||
1247 | } | 1247 | } |
1248 | 1248 | ||
1249 | /** | 1249 | /** |
1250 | * scsih_slave_alloc - device add routine | 1250 | * _scsih_slave_alloc - device add routine |
1251 | * @sdev: scsi device struct | 1251 | * @sdev: scsi device struct |
1252 | * | 1252 | * |
1253 | * Returns 0 if ok. Any other return is assumed to be an error and | 1253 | * Returns 0 if ok. Any other return is assumed to be an error and |
1254 | * the device is ignored. | 1254 | * the device is ignored. |
1255 | */ | 1255 | */ |
1256 | static int | 1256 | static int |
1257 | scsih_slave_alloc(struct scsi_device *sdev) | 1257 | _scsih_slave_alloc(struct scsi_device *sdev) |
1258 | { | 1258 | { |
1259 | struct Scsi_Host *shost; | 1259 | struct Scsi_Host *shost; |
1260 | struct MPT2SAS_ADAPTER *ioc; | 1260 | struct MPT2SAS_ADAPTER *ioc; |
@@ -1308,13 +1308,13 @@ scsih_slave_alloc(struct scsi_device *sdev) | |||
1308 | } | 1308 | } |
1309 | 1309 | ||
1310 | /** | 1310 | /** |
1311 | * scsih_slave_destroy - device destroy routine | 1311 | * _scsih_slave_destroy - device destroy routine |
1312 | * @sdev: scsi device struct | 1312 | * @sdev: scsi device struct |
1313 | * | 1313 | * |
1314 | * Returns nothing. | 1314 | * Returns nothing. |
1315 | */ | 1315 | */ |
1316 | static void | 1316 | static void |
1317 | scsih_slave_destroy(struct scsi_device *sdev) | 1317 | _scsih_slave_destroy(struct scsi_device *sdev) |
1318 | { | 1318 | { |
1319 | struct MPT2SAS_TARGET *sas_target_priv_data; | 1319 | struct MPT2SAS_TARGET *sas_target_priv_data; |
1320 | struct scsi_target *starget; | 1320 | struct scsi_target *starget; |
@@ -1330,13 +1330,13 @@ scsih_slave_destroy(struct scsi_device *sdev) | |||
1330 | } | 1330 | } |
1331 | 1331 | ||
1332 | /** | 1332 | /** |
1333 | * scsih_display_sata_capabilities - sata capabilities | 1333 | * _scsih_display_sata_capabilities - sata capabilities |
1334 | * @ioc: per adapter object | 1334 | * @ioc: per adapter object |
1335 | * @sas_device: the sas_device object | 1335 | * @sas_device: the sas_device object |
1336 | * @sdev: scsi device struct | 1336 | * @sdev: scsi device struct |
1337 | */ | 1337 | */ |
1338 | static void | 1338 | static void |
1339 | scsih_display_sata_capabilities(struct MPT2SAS_ADAPTER *ioc, | 1339 | _scsih_display_sata_capabilities(struct MPT2SAS_ADAPTER *ioc, |
1340 | struct _sas_device *sas_device, struct scsi_device *sdev) | 1340 | struct _sas_device *sas_device, struct scsi_device *sdev) |
1341 | { | 1341 | { |
1342 | Mpi2ConfigReply_t mpi_reply; | 1342 | Mpi2ConfigReply_t mpi_reply; |
@@ -1436,14 +1436,14 @@ _scsih_get_volume_capabilities(struct MPT2SAS_ADAPTER *ioc, | |||
1436 | } | 1436 | } |
1437 | 1437 | ||
1438 | /** | 1438 | /** |
1439 | * scsih_slave_configure - device configure routine. | 1439 | * _scsih_slave_configure - device configure routine. |
1440 | * @sdev: scsi device struct | 1440 | * @sdev: scsi device struct |
1441 | * | 1441 | * |
1442 | * Returns 0 if ok. Any other return is assumed to be an error and | 1442 | * Returns 0 if ok. Any other return is assumed to be an error and |
1443 | * the device is ignored. | 1443 | * the device is ignored. |
1444 | */ | 1444 | */ |
1445 | static int | 1445 | static int |
1446 | scsih_slave_configure(struct scsi_device *sdev) | 1446 | _scsih_slave_configure(struct scsi_device *sdev) |
1447 | { | 1447 | { |
1448 | struct Scsi_Host *shost = sdev->host; | 1448 | struct Scsi_Host *shost = sdev->host; |
1449 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 1449 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
@@ -1524,7 +1524,7 @@ scsih_slave_configure(struct scsi_device *sdev) | |||
1524 | r_level, raid_device->handle, | 1524 | r_level, raid_device->handle, |
1525 | (unsigned long long)raid_device->wwid, | 1525 | (unsigned long long)raid_device->wwid, |
1526 | raid_device->num_pds, ds); | 1526 | raid_device->num_pds, ds); |
1527 | scsih_change_queue_depth(sdev, qdepth); | 1527 | _scsih_change_queue_depth(sdev, qdepth); |
1528 | return 0; | 1528 | return 0; |
1529 | } | 1529 | } |
1530 | 1530 | ||
@@ -1567,10 +1567,10 @@ scsih_slave_configure(struct scsi_device *sdev) | |||
1567 | sas_device->slot); | 1567 | sas_device->slot); |
1568 | 1568 | ||
1569 | if (!ssp_target) | 1569 | if (!ssp_target) |
1570 | scsih_display_sata_capabilities(ioc, sas_device, sdev); | 1570 | _scsih_display_sata_capabilities(ioc, sas_device, sdev); |
1571 | } | 1571 | } |
1572 | 1572 | ||
1573 | scsih_change_queue_depth(sdev, qdepth); | 1573 | _scsih_change_queue_depth(sdev, qdepth); |
1574 | 1574 | ||
1575 | if (ssp_target) | 1575 | if (ssp_target) |
1576 | sas_read_port_mode_page(sdev); | 1576 | sas_read_port_mode_page(sdev); |
@@ -1578,7 +1578,7 @@ scsih_slave_configure(struct scsi_device *sdev) | |||
1578 | } | 1578 | } |
1579 | 1579 | ||
1580 | /** | 1580 | /** |
1581 | * scsih_bios_param - fetch head, sector, cylinder info for a disk | 1581 | * _scsih_bios_param - fetch head, sector, cylinder info for a disk |
1582 | * @sdev: scsi device struct | 1582 | * @sdev: scsi device struct |
1583 | * @bdev: pointer to block device context | 1583 | * @bdev: pointer to block device context |
1584 | * @capacity: device size (in 512 byte sectors) | 1584 | * @capacity: device size (in 512 byte sectors) |
@@ -1590,7 +1590,7 @@ scsih_slave_configure(struct scsi_device *sdev) | |||
1590 | * Return nothing. | 1590 | * Return nothing. |
1591 | */ | 1591 | */ |
1592 | static int | 1592 | static int |
1593 | scsih_bios_param(struct scsi_device *sdev, struct block_device *bdev, | 1593 | _scsih_bios_param(struct scsi_device *sdev, struct block_device *bdev, |
1594 | sector_t capacity, int params[]) | 1594 | sector_t capacity, int params[]) |
1595 | { | 1595 | { |
1596 | int heads; | 1596 | int heads; |
@@ -1671,7 +1671,7 @@ _scsih_response_code(struct MPT2SAS_ADAPTER *ioc, u8 response_code) | |||
1671 | } | 1671 | } |
1672 | 1672 | ||
1673 | /** | 1673 | /** |
1674 | * scsih_tm_done - tm completion routine | 1674 | * _scsih_tm_done - tm completion routine |
1675 | * @ioc: per adapter object | 1675 | * @ioc: per adapter object |
1676 | * @smid: system request message index | 1676 | * @smid: system request message index |
1677 | * @VF_ID: virtual function id | 1677 | * @VF_ID: virtual function id |
@@ -1683,7 +1683,7 @@ _scsih_response_code(struct MPT2SAS_ADAPTER *ioc, u8 response_code) | |||
1683 | * Return nothing. | 1683 | * Return nothing. |
1684 | */ | 1684 | */ |
1685 | static void | 1685 | static void |
1686 | scsih_tm_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 VF_ID, u32 reply) | 1686 | _scsih_tm_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 VF_ID, u32 reply) |
1687 | { | 1687 | { |
1688 | MPI2DefaultReply_t *mpi_reply; | 1688 | MPI2DefaultReply_t *mpi_reply; |
1689 | 1689 | ||
@@ -1858,13 +1858,13 @@ mpt2sas_scsih_issue_tm(struct MPT2SAS_ADAPTER *ioc, u16 handle, uint lun, | |||
1858 | } | 1858 | } |
1859 | 1859 | ||
1860 | /** | 1860 | /** |
1861 | * scsih_abort - eh threads main abort routine | 1861 | * _scsih_abort - eh threads main abort routine |
1862 | * @sdev: scsi device struct | 1862 | * @sdev: scsi device struct |
1863 | * | 1863 | * |
1864 | * Returns SUCCESS if command aborted else FAILED | 1864 | * Returns SUCCESS if command aborted else FAILED |
1865 | */ | 1865 | */ |
1866 | static int | 1866 | static int |
1867 | scsih_abort(struct scsi_cmnd *scmd) | 1867 | _scsih_abort(struct scsi_cmnd *scmd) |
1868 | { | 1868 | { |
1869 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); | 1869 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); |
1870 | struct MPT2SAS_DEVICE *sas_device_priv_data; | 1870 | struct MPT2SAS_DEVICE *sas_device_priv_data; |
@@ -1925,13 +1925,13 @@ scsih_abort(struct scsi_cmnd *scmd) | |||
1925 | } | 1925 | } |
1926 | 1926 | ||
1927 | /** | 1927 | /** |
1928 | * scsih_dev_reset - eh threads main device reset routine | 1928 | * _scsih_dev_reset - eh threads main device reset routine |
1929 | * @sdev: scsi device struct | 1929 | * @sdev: scsi device struct |
1930 | * | 1930 | * |
1931 | * Returns SUCCESS if command aborted else FAILED | 1931 | * Returns SUCCESS if command aborted else FAILED |
1932 | */ | 1932 | */ |
1933 | static int | 1933 | static int |
1934 | scsih_dev_reset(struct scsi_cmnd *scmd) | 1934 | _scsih_dev_reset(struct scsi_cmnd *scmd) |
1935 | { | 1935 | { |
1936 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); | 1936 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); |
1937 | struct MPT2SAS_DEVICE *sas_device_priv_data; | 1937 | struct MPT2SAS_DEVICE *sas_device_priv_data; |
@@ -1997,13 +1997,13 @@ scsih_dev_reset(struct scsi_cmnd *scmd) | |||
1997 | } | 1997 | } |
1998 | 1998 | ||
1999 | /** | 1999 | /** |
2000 | * scsih_target_reset - eh threads main target reset routine | 2000 | * _scsih_target_reset - eh threads main target reset routine |
2001 | * @sdev: scsi device struct | 2001 | * @sdev: scsi device struct |
2002 | * | 2002 | * |
2003 | * Returns SUCCESS if command aborted else FAILED | 2003 | * Returns SUCCESS if command aborted else FAILED |
2004 | */ | 2004 | */ |
2005 | static int | 2005 | static int |
2006 | scsih_target_reset(struct scsi_cmnd *scmd) | 2006 | _scsih_target_reset(struct scsi_cmnd *scmd) |
2007 | { | 2007 | { |
2008 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); | 2008 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); |
2009 | struct MPT2SAS_DEVICE *sas_device_priv_data; | 2009 | struct MPT2SAS_DEVICE *sas_device_priv_data; |
@@ -2068,13 +2068,13 @@ scsih_target_reset(struct scsi_cmnd *scmd) | |||
2068 | } | 2068 | } |
2069 | 2069 | ||
2070 | /** | 2070 | /** |
2071 | * scsih_abort - eh threads main host reset routine | 2071 | * _scsih_abort - eh threads main host reset routine |
2072 | * @sdev: scsi device struct | 2072 | * @sdev: scsi device struct |
2073 | * | 2073 | * |
2074 | * Returns SUCCESS if command aborted else FAILED | 2074 | * Returns SUCCESS if command aborted else FAILED |
2075 | */ | 2075 | */ |
2076 | static int | 2076 | static int |
2077 | scsih_host_reset(struct scsi_cmnd *scmd) | 2077 | _scsih_host_reset(struct scsi_cmnd *scmd) |
2078 | { | 2078 | { |
2079 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); | 2079 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); |
2080 | int r, retval; | 2080 | int r, retval; |
@@ -2596,7 +2596,7 @@ _scsih_eedp_error_handling(struct scsi_cmnd *scmd, u16 ioc_status) | |||
2596 | } | 2596 | } |
2597 | 2597 | ||
2598 | /** | 2598 | /** |
2599 | * scsih_qcmd - main scsi request entry point | 2599 | * _scsih_qcmd - main scsi request entry point |
2600 | * @scmd: pointer to scsi command object | 2600 | * @scmd: pointer to scsi command object |
2601 | * @done: function pointer to be invoked on completion | 2601 | * @done: function pointer to be invoked on completion |
2602 | * | 2602 | * |
@@ -2607,7 +2607,7 @@ _scsih_eedp_error_handling(struct scsi_cmnd *scmd, u16 ioc_status) | |||
2607 | * SCSI_MLQUEUE_HOST_BUSY if the entire host queue is full | 2607 | * SCSI_MLQUEUE_HOST_BUSY if the entire host queue is full |
2608 | */ | 2608 | */ |
2609 | static int | 2609 | static int |
2610 | scsih_qcmd(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *)) | 2610 | _scsih_qcmd(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *)) |
2611 | { | 2611 | { |
2612 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); | 2612 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); |
2613 | struct MPT2SAS_DEVICE *sas_device_priv_data; | 2613 | struct MPT2SAS_DEVICE *sas_device_priv_data; |
@@ -2999,7 +2999,7 @@ _scsih_smart_predicted_fault(struct MPT2SAS_ADAPTER *ioc, u16 handle) | |||
2999 | } | 2999 | } |
3000 | 3000 | ||
3001 | /** | 3001 | /** |
3002 | * scsih_io_done - scsi request callback | 3002 | * _scsih_io_done - scsi request callback |
3003 | * @ioc: per adapter object | 3003 | * @ioc: per adapter object |
3004 | * @smid: system request message index | 3004 | * @smid: system request message index |
3005 | * @VF_ID: virtual function id | 3005 | * @VF_ID: virtual function id |
@@ -3010,7 +3010,7 @@ _scsih_smart_predicted_fault(struct MPT2SAS_ADAPTER *ioc, u16 handle) | |||
3010 | * Return nothing. | 3010 | * Return nothing. |
3011 | */ | 3011 | */ |
3012 | static void | 3012 | static void |
3013 | scsih_io_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 VF_ID, u32 reply) | 3013 | _scsih_io_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 VF_ID, u32 reply) |
3014 | { | 3014 | { |
3015 | Mpi2SCSIIORequest_t *mpi_request; | 3015 | Mpi2SCSIIORequest_t *mpi_request; |
3016 | Mpi2SCSIIOReply_t *mpi_reply; | 3016 | Mpi2SCSIIOReply_t *mpi_reply; |
@@ -5351,19 +5351,19 @@ static struct scsi_host_template scsih_driver_template = { | |||
5351 | .module = THIS_MODULE, | 5351 | .module = THIS_MODULE, |
5352 | .name = "Fusion MPT SAS Host", | 5352 | .name = "Fusion MPT SAS Host", |
5353 | .proc_name = MPT2SAS_DRIVER_NAME, | 5353 | .proc_name = MPT2SAS_DRIVER_NAME, |
5354 | .queuecommand = scsih_qcmd, | 5354 | .queuecommand = _scsih_qcmd, |
5355 | .target_alloc = scsih_target_alloc, | 5355 | .target_alloc = _scsih_target_alloc, |
5356 | .slave_alloc = scsih_slave_alloc, | 5356 | .slave_alloc = _scsih_slave_alloc, |
5357 | .slave_configure = scsih_slave_configure, | 5357 | .slave_configure = _scsih_slave_configure, |
5358 | .target_destroy = scsih_target_destroy, | 5358 | .target_destroy = _scsih_target_destroy, |
5359 | .slave_destroy = scsih_slave_destroy, | 5359 | .slave_destroy = _scsih_slave_destroy, |
5360 | .change_queue_depth = scsih_change_queue_depth, | 5360 | .change_queue_depth = _scsih_change_queue_depth, |
5361 | .change_queue_type = scsih_change_queue_type, | 5361 | .change_queue_type = _scsih_change_queue_type, |
5362 | .eh_abort_handler = scsih_abort, | 5362 | .eh_abort_handler = _scsih_abort, |
5363 | .eh_device_reset_handler = scsih_dev_reset, | 5363 | .eh_device_reset_handler = _scsih_dev_reset, |
5364 | .eh_target_reset_handler = scsih_target_reset, | 5364 | .eh_target_reset_handler = _scsih_target_reset, |
5365 | .eh_host_reset_handler = scsih_host_reset, | 5365 | .eh_host_reset_handler = _scsih_host_reset, |
5366 | .bios_param = scsih_bios_param, | 5366 | .bios_param = _scsih_bios_param, |
5367 | .can_queue = 1, | 5367 | .can_queue = 1, |
5368 | .this_id = -1, | 5368 | .this_id = -1, |
5369 | .sg_tablesize = MPT2SAS_SG_DEPTH, | 5369 | .sg_tablesize = MPT2SAS_SG_DEPTH, |
@@ -5450,13 +5450,13 @@ _scsih_expander_node_remove(struct MPT2SAS_ADAPTER *ioc, | |||
5450 | } | 5450 | } |
5451 | 5451 | ||
5452 | /** | 5452 | /** |
5453 | * scsih_remove - detach and remove add host | 5453 | * _scsih_remove - detach and remove add host |
5454 | * @pdev: PCI device struct | 5454 | * @pdev: PCI device struct |
5455 | * | 5455 | * |
5456 | * Return nothing. | 5456 | * Return nothing. |
5457 | */ | 5457 | */ |
5458 | static void __devexit | 5458 | static void __devexit |
5459 | scsih_remove(struct pci_dev *pdev) | 5459 | _scsih_remove(struct pci_dev *pdev) |
5460 | { | 5460 | { |
5461 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 5461 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
5462 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 5462 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
@@ -5664,14 +5664,14 @@ _scsih_probe_devices(struct MPT2SAS_ADAPTER *ioc) | |||
5664 | } | 5664 | } |
5665 | 5665 | ||
5666 | /** | 5666 | /** |
5667 | * scsih_probe - attach and add scsi host | 5667 | * _scsih_probe - attach and add scsi host |
5668 | * @pdev: PCI device struct | 5668 | * @pdev: PCI device struct |
5669 | * @id: pci device id | 5669 | * @id: pci device id |
5670 | * | 5670 | * |
5671 | * Returns 0 success, anything else error. | 5671 | * Returns 0 success, anything else error. |
5672 | */ | 5672 | */ |
5673 | static int | 5673 | static int |
5674 | scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id) | 5674 | _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
5675 | { | 5675 | { |
5676 | struct MPT2SAS_ADAPTER *ioc; | 5676 | struct MPT2SAS_ADAPTER *ioc; |
5677 | struct Scsi_Host *shost; | 5677 | struct Scsi_Host *shost; |
@@ -5761,14 +5761,14 @@ scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
5761 | 5761 | ||
5762 | #ifdef CONFIG_PM | 5762 | #ifdef CONFIG_PM |
5763 | /** | 5763 | /** |
5764 | * scsih_suspend - power management suspend main entry point | 5764 | * _scsih_suspend - power management suspend main entry point |
5765 | * @pdev: PCI device struct | 5765 | * @pdev: PCI device struct |
5766 | * @state: PM state change to (usually PCI_D3) | 5766 | * @state: PM state change to (usually PCI_D3) |
5767 | * | 5767 | * |
5768 | * Returns 0 success, anything else error. | 5768 | * Returns 0 success, anything else error. |
5769 | */ | 5769 | */ |
5770 | static int | 5770 | static int |
5771 | scsih_suspend(struct pci_dev *pdev, pm_message_t state) | 5771 | _scsih_suspend(struct pci_dev *pdev, pm_message_t state) |
5772 | { | 5772 | { |
5773 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 5773 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
5774 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 5774 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
@@ -5789,13 +5789,13 @@ scsih_suspend(struct pci_dev *pdev, pm_message_t state) | |||
5789 | } | 5789 | } |
5790 | 5790 | ||
5791 | /** | 5791 | /** |
5792 | * scsih_resume - power management resume main entry point | 5792 | * _scsih_resume - power management resume main entry point |
5793 | * @pdev: PCI device struct | 5793 | * @pdev: PCI device struct |
5794 | * | 5794 | * |
5795 | * Returns 0 success, anything else error. | 5795 | * Returns 0 success, anything else error. |
5796 | */ | 5796 | */ |
5797 | static int | 5797 | static int |
5798 | scsih_resume(struct pci_dev *pdev) | 5798 | _scsih_resume(struct pci_dev *pdev) |
5799 | { | 5799 | { |
5800 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 5800 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
5801 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 5801 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
@@ -5824,22 +5824,22 @@ scsih_resume(struct pci_dev *pdev) | |||
5824 | static struct pci_driver scsih_driver = { | 5824 | static struct pci_driver scsih_driver = { |
5825 | .name = MPT2SAS_DRIVER_NAME, | 5825 | .name = MPT2SAS_DRIVER_NAME, |
5826 | .id_table = scsih_pci_table, | 5826 | .id_table = scsih_pci_table, |
5827 | .probe = scsih_probe, | 5827 | .probe = _scsih_probe, |
5828 | .remove = __devexit_p(scsih_remove), | 5828 | .remove = __devexit_p(_scsih_remove), |
5829 | #ifdef CONFIG_PM | 5829 | #ifdef CONFIG_PM |
5830 | .suspend = scsih_suspend, | 5830 | .suspend = _scsih_suspend, |
5831 | .resume = scsih_resume, | 5831 | .resume = _scsih_resume, |
5832 | #endif | 5832 | #endif |
5833 | }; | 5833 | }; |
5834 | 5834 | ||
5835 | 5835 | ||
5836 | /** | 5836 | /** |
5837 | * scsih_init - main entry point for this driver. | 5837 | * _scsih_init - main entry point for this driver. |
5838 | * | 5838 | * |
5839 | * Returns 0 success, anything else error. | 5839 | * Returns 0 success, anything else error. |
5840 | */ | 5840 | */ |
5841 | static int __init | 5841 | static int __init |
5842 | scsih_init(void) | 5842 | _scsih_init(void) |
5843 | { | 5843 | { |
5844 | int error; | 5844 | int error; |
5845 | 5845 | ||
@@ -5855,10 +5855,10 @@ scsih_init(void) | |||
5855 | mpt2sas_base_initialize_callback_handler(); | 5855 | mpt2sas_base_initialize_callback_handler(); |
5856 | 5856 | ||
5857 | /* queuecommand callback hander */ | 5857 | /* queuecommand callback hander */ |
5858 | scsi_io_cb_idx = mpt2sas_base_register_callback_handler(scsih_io_done); | 5858 | scsi_io_cb_idx = mpt2sas_base_register_callback_handler(_scsih_io_done); |
5859 | 5859 | ||
5860 | /* task managment callback handler */ | 5860 | /* task managment callback handler */ |
5861 | tm_cb_idx = mpt2sas_base_register_callback_handler(scsih_tm_done); | 5861 | tm_cb_idx = mpt2sas_base_register_callback_handler(_scsih_tm_done); |
5862 | 5862 | ||
5863 | /* base internal commands callback handler */ | 5863 | /* base internal commands callback handler */ |
5864 | base_cb_idx = mpt2sas_base_register_callback_handler(mpt2sas_base_done); | 5864 | base_cb_idx = mpt2sas_base_register_callback_handler(mpt2sas_base_done); |
@@ -5884,12 +5884,12 @@ scsih_init(void) | |||
5884 | } | 5884 | } |
5885 | 5885 | ||
5886 | /** | 5886 | /** |
5887 | * scsih_exit - exit point for this driver (when it is a module). | 5887 | * _scsih_exit - exit point for this driver (when it is a module). |
5888 | * | 5888 | * |
5889 | * Returns 0 success, anything else error. | 5889 | * Returns 0 success, anything else error. |
5890 | */ | 5890 | */ |
5891 | static void __exit | 5891 | static void __exit |
5892 | scsih_exit(void) | 5892 | _scsih_exit(void) |
5893 | { | 5893 | { |
5894 | printk(KERN_INFO "mpt2sas version %s unloading\n", | 5894 | printk(KERN_INFO "mpt2sas version %s unloading\n", |
5895 | MPT2SAS_DRIVER_VERSION); | 5895 | MPT2SAS_DRIVER_VERSION); |
@@ -5907,5 +5907,5 @@ scsih_exit(void) | |||
5907 | mpt2sas_ctl_exit(); | 5907 | mpt2sas_ctl_exit(); |
5908 | } | 5908 | } |
5909 | 5909 | ||
5910 | module_init(scsih_init); | 5910 | module_init(_scsih_init); |
5911 | module_exit(scsih_exit); | 5911 | module_exit(_scsih_exit); |