aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index b9ee56567940..23ee05913fc5 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -110,7 +110,7 @@ static int qla2x00_device_reset(scsi_qla_host_t *, fc_port_t *);
110static int qla2x00_change_queue_depth(struct scsi_device *, int); 110static int qla2x00_change_queue_depth(struct scsi_device *, int);
111static int qla2x00_change_queue_type(struct scsi_device *, int); 111static int qla2x00_change_queue_type(struct scsi_device *, int);
112 112
113struct scsi_host_template qla2x00_driver_template = { 113static struct scsi_host_template qla2x00_driver_template = {
114 .module = THIS_MODULE, 114 .module = THIS_MODULE,
115 .name = QLA2XXX_DRIVER_NAME, 115 .name = QLA2XXX_DRIVER_NAME,
116 .queuecommand = qla2x00_queuecommand, 116 .queuecommand = qla2x00_queuecommand,
@@ -178,13 +178,6 @@ struct scsi_transport_template *qla2xxx_transport_vport_template = NULL;
178 * Timer routines 178 * Timer routines
179 */ 179 */
180 180
181void qla2x00_timer(scsi_qla_host_t *);
182
183__inline__ void qla2x00_start_timer(scsi_qla_host_t *,
184 void *, unsigned long);
185static __inline__ void qla2x00_restart_timer(scsi_qla_host_t *, unsigned long);
186__inline__ void qla2x00_stop_timer(scsi_qla_host_t *);
187
188__inline__ void 181__inline__ void
189qla2x00_start_timer(scsi_qla_host_t *ha, void *func, unsigned long interval) 182qla2x00_start_timer(scsi_qla_host_t *ha, void *func, unsigned long interval)
190{ 183{
@@ -202,7 +195,7 @@ qla2x00_restart_timer(scsi_qla_host_t *ha, unsigned long interval)
202 mod_timer(&ha->timer, jiffies + interval * HZ); 195 mod_timer(&ha->timer, jiffies + interval * HZ);
203} 196}
204 197
205__inline__ void 198static __inline__ void
206qla2x00_stop_timer(scsi_qla_host_t *ha) 199qla2x00_stop_timer(scsi_qla_host_t *ha)
207{ 200{
208 del_timer_sync(&ha->timer); 201 del_timer_sync(&ha->timer);
@@ -213,12 +206,11 @@ static int qla2x00_do_dpc(void *data);
213 206
214static void qla2x00_rst_aen(scsi_qla_host_t *); 207static void qla2x00_rst_aen(scsi_qla_host_t *);
215 208
216uint8_t qla2x00_mem_alloc(scsi_qla_host_t *); 209static uint8_t qla2x00_mem_alloc(scsi_qla_host_t *);
217void qla2x00_mem_free(scsi_qla_host_t *ha); 210static void qla2x00_mem_free(scsi_qla_host_t *ha);
218static int qla2x00_allocate_sp_pool( scsi_qla_host_t *ha); 211static int qla2x00_allocate_sp_pool( scsi_qla_host_t *ha);
219static void qla2x00_free_sp_pool(scsi_qla_host_t *ha); 212static void qla2x00_free_sp_pool(scsi_qla_host_t *ha);
220static void qla2x00_sp_free_dma(scsi_qla_host_t *, srb_t *); 213static void qla2x00_sp_free_dma(scsi_qla_host_t *, srb_t *);
221void qla2x00_sp_compl(scsi_qla_host_t *ha, srb_t *);
222 214
223/* -------------------------------------------------------------------------- */ 215/* -------------------------------------------------------------------------- */
224 216
@@ -2008,7 +2000,7 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *ha, int defer)
2008* 0 = success. 2000* 0 = success.
2009* 1 = failure. 2001* 1 = failure.
2010*/ 2002*/
2011uint8_t 2003static uint8_t
2012qla2x00_mem_alloc(scsi_qla_host_t *ha) 2004qla2x00_mem_alloc(scsi_qla_host_t *ha)
2013{ 2005{
2014 char name[16]; 2006 char name[16];
@@ -2205,7 +2197,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
2205* Input: 2197* Input:
2206* ha = adapter block pointer. 2198* ha = adapter block pointer.
2207*/ 2199*/
2208void 2200static void
2209qla2x00_mem_free(scsi_qla_host_t *ha) 2201qla2x00_mem_free(scsi_qla_host_t *ha)
2210{ 2202{
2211 struct list_head *fcpl, *fcptemp; 2203 struct list_head *fcpl, *fcptemp;