2 * QLogic Fibre Channel HBA Driver
3 * Copyright (c) 2003-2008 QLogic Corporation
5 * See LICENSE.qla2xxx for copyright and licensing details.
10 #include <linux/moduleparam.h>
11 #include <linux/vmalloc.h>
12 #include <linux/list.h>
14 #include <scsi/scsi_tcq.h>
15 #include <scsi/scsicam.h>
16 #include <linux/delay.h>
19 qla2x00_vp_stop_timer(scsi_qla_host_t
*vha
)
21 if (vha
->vp_idx
&& vha
->timer_active
) {
22 del_timer_sync(&vha
->timer
);
23 vha
->timer_active
= 0;
28 qla24xx_allocate_vp_id(scsi_qla_host_t
*vha
)
31 struct qla_hw_data
*ha
= vha
->hw
;
33 /* Find an empty slot and assign an vp_id */
34 mutex_lock(&ha
->vport_lock
);
35 vp_id
= find_first_zero_bit(ha
->vp_idx_map
, ha
->max_npiv_vports
+ 1);
36 if (vp_id
> ha
->max_npiv_vports
) {
37 DEBUG15(printk ("vp_id %d is bigger than max-supported %d.\n",
38 vp_id
, ha
->max_npiv_vports
));
39 mutex_unlock(&ha
->vport_lock
);
43 set_bit(vp_id
, ha
->vp_idx_map
);
45 ha
->cur_vport_count
++;
47 list_add_tail(&vha
->list
, &ha
->vp_list
);
48 mutex_unlock(&ha
->vport_lock
);
53 qla24xx_deallocate_vp_id(scsi_qla_host_t
*vha
)
56 struct qla_hw_data
*ha
= vha
->hw
;
58 mutex_lock(&ha
->vport_lock
);
61 ha
->cur_vport_count
--;
62 clear_bit(vp_id
, ha
->vp_idx_map
);
64 mutex_unlock(&ha
->vport_lock
);
67 static scsi_qla_host_t
*
68 qla24xx_find_vhost_by_name(struct qla_hw_data
*ha
, uint8_t *port_name
)
71 struct scsi_qla_host
*tvha
;
73 /* Locate matching device in database. */
74 list_for_each_entry_safe(vha
, tvha
, &ha
->vp_list
, list
) {
75 if (!memcmp(port_name
, vha
->port_name
, WWN_SIZE
))
82 * qla2x00_mark_vp_devices_dead
83 * Updates fcport state when device goes offline.
86 * ha = adapter block pointer.
87 * fcport = port structure pointer.
95 qla2x00_mark_vp_devices_dead(scsi_qla_host_t
*vha
)
99 list_for_each_entry(fcport
, &vha
->vp_fcports
, list
) {
100 DEBUG15(printk("scsi(%ld): Marking port dead, "
101 "loop_id=0x%04x :%x\n",
102 vha
->host_no
, fcport
->loop_id
, fcport
->vp_idx
));
104 atomic_set(&fcport
->state
, FCS_DEVICE_DEAD
);
105 qla2x00_mark_device_lost(vha
, fcport
, 0, 0);
106 atomic_set(&fcport
->state
, FCS_UNCONFIGURED
);
111 qla24xx_disable_vp(scsi_qla_host_t
*vha
)
115 ret
= qla24xx_control_vp(vha
, VCE_COMMAND_DISABLE_VPS_LOGO_ALL
);
116 atomic_set(&vha
->loop_state
, LOOP_DOWN
);
117 atomic_set(&vha
->loop_down_timer
, LOOP_DOWN_TIME
);
119 qla2x00_mark_vp_devices_dead(vha
);
120 atomic_set(&vha
->vp_state
, VP_FAILED
);
121 vha
->flags
.management_server_logged_in
= 0;
122 if (ret
== QLA_SUCCESS
) {
123 fc_vport_set_state(vha
->fc_vport
, FC_VPORT_DISABLED
);
125 fc_vport_set_state(vha
->fc_vport
, FC_VPORT_FAILED
);
132 qla24xx_enable_vp(scsi_qla_host_t
*vha
)
135 struct qla_hw_data
*ha
= vha
->hw
;
136 scsi_qla_host_t
*base_vha
= pci_get_drvdata(ha
->pdev
);
138 /* Check if physical ha port is Up */
139 if (atomic_read(&base_vha
->loop_state
) == LOOP_DOWN
||
140 atomic_read(&base_vha
->loop_state
) == LOOP_DEAD
) {
141 vha
->vp_err_state
= VP_ERR_PORTDWN
;
142 fc_vport_set_state(vha
->fc_vport
, FC_VPORT_LINKDOWN
);
146 /* Initialize the new vport unless it is a persistent port */
147 mutex_lock(&ha
->vport_lock
);
148 ret
= qla24xx_modify_vp_config(vha
);
149 mutex_unlock(&ha
->vport_lock
);
151 if (ret
!= QLA_SUCCESS
) {
152 fc_vport_set_state(vha
->fc_vport
, FC_VPORT_FAILED
);
156 DEBUG15(qla_printk(KERN_INFO
, ha
,
157 "Virtual port with id: %d - Enabled\n", vha
->vp_idx
));
161 DEBUG15(qla_printk(KERN_INFO
, ha
,
162 "Virtual port with id: %d - Disabled\n", vha
->vp_idx
));
167 qla24xx_configure_vp(scsi_qla_host_t
*vha
)
169 struct fc_vport
*fc_vport
;
172 fc_vport
= vha
->fc_vport
;
174 DEBUG15(printk("scsi(%ld): %s: change request #3 for this host.\n",
175 vha
->host_no
, __func__
));
176 ret
= qla2x00_send_change_request(vha
, 0x3, vha
->vp_idx
);
177 if (ret
!= QLA_SUCCESS
) {
178 DEBUG15(qla_printk(KERN_ERR
, vha
->hw
, "Failed to enable "
179 "receiving of RSCN requests: 0x%x\n", ret
));
182 /* Corresponds to SCR enabled */
183 clear_bit(VP_SCR_NEEDED
, &vha
->vp_flags
);
186 vha
->flags
.online
= 1;
187 if (qla24xx_configure_vhba(vha
))
190 atomic_set(&vha
->vp_state
, VP_ACTIVE
);
191 fc_vport_set_state(fc_vport
, FC_VPORT_ACTIVE
);
195 qla2x00_alert_all_vps(struct rsp_que
*rsp
, uint16_t *mb
)
197 scsi_qla_host_t
*vha
, *tvha
;
198 struct qla_hw_data
*ha
= rsp
->hw
;
201 list_for_each_entry_safe(vha
, tvha
, &ha
->vp_list
, list
) {
204 case MBA_LIP_OCCURRED
:
208 case MBA_POINT_TO_POINT
:
209 case MBA_CHG_IN_CONNECTION
:
210 case MBA_PORT_UPDATE
:
211 case MBA_RSCN_UPDATE
:
212 DEBUG15(printk("scsi(%ld)%s: Async_event for"
213 " VP[%d], mb = 0x%x, vha=%p\n",
214 vha
->host_no
, __func__
, i
, *mb
, vha
));
215 qla2x00_async_event(vha
, rsp
, mb
);
224 qla2x00_vp_abort_isp(scsi_qla_host_t
*vha
)
227 * Physical port will do most of the abort and recovery work. We can
228 * just treat it as a loop down
230 if (atomic_read(&vha
->loop_state
) != LOOP_DOWN
) {
231 atomic_set(&vha
->loop_state
, LOOP_DOWN
);
232 qla2x00_mark_all_devices_lost(vha
, 0);
234 if (!atomic_read(&vha
->loop_down_timer
))
235 atomic_set(&vha
->loop_down_timer
, LOOP_DOWN_TIME
);
238 /* To exclusively reset vport, we need to log it out first.*/
239 if (!test_bit(ABORT_ISP_ACTIVE
, &vha
->dpc_flags
))
240 qla24xx_control_vp(vha
, VCE_COMMAND_DISABLE_VPS_LOGO_ALL
);
242 DEBUG15(printk("scsi(%ld): Scheduling enable of Vport %d...\n",
243 vha
->host_no
, vha
->vp_idx
));
244 return qla24xx_enable_vp(vha
);
248 qla2x00_do_dpc_vp(scsi_qla_host_t
*vha
)
250 struct qla_hw_data
*ha
= vha
->hw
;
251 scsi_qla_host_t
*base_vha
= pci_get_drvdata(ha
->pdev
);
253 if (!(ha
->current_topology
& ISP_CFG_F
))
256 if (test_and_clear_bit(VP_IDX_ACQUIRED
, &vha
->vp_flags
)) {
257 /* VP acquired. complete port configuration */
258 if (atomic_read(&base_vha
->loop_state
) == LOOP_READY
) {
259 qla24xx_configure_vp(vha
);
261 set_bit(VP_IDX_ACQUIRED
, &vha
->vp_flags
);
262 set_bit(VP_DPC_NEEDED
, &base_vha
->dpc_flags
);
268 if (test_bit(FCPORT_UPDATE_NEEDED
, &vha
->dpc_flags
)) {
269 qla2x00_update_fcports(vha
);
270 clear_bit(FCPORT_UPDATE_NEEDED
, &vha
->dpc_flags
);
273 if ((test_and_clear_bit(RELOGIN_NEEDED
, &vha
->dpc_flags
)) &&
274 !test_bit(LOOP_RESYNC_NEEDED
, &vha
->dpc_flags
) &&
275 atomic_read(&vha
->loop_state
) != LOOP_DOWN
) {
277 DEBUG(printk("scsi(%ld): qla2x00_port_login()\n",
279 qla2x00_relogin(vha
);
281 DEBUG(printk("scsi(%ld): qla2x00_port_login - end\n",
285 if (test_and_clear_bit(RESET_MARKER_NEEDED
, &vha
->dpc_flags
) &&
286 (!(test_and_set_bit(RESET_ACTIVE
, &vha
->dpc_flags
)))) {
287 clear_bit(RESET_ACTIVE
, &vha
->dpc_flags
);
290 if (test_and_clear_bit(LOOP_RESYNC_NEEDED
, &vha
->dpc_flags
)) {
291 if (!(test_and_set_bit(LOOP_RESYNC_ACTIVE
, &vha
->dpc_flags
))) {
292 qla2x00_loop_resync(vha
);
293 clear_bit(LOOP_RESYNC_ACTIVE
, &vha
->dpc_flags
);
301 qla2x00_do_dpc_all_vps(scsi_qla_host_t
*vha
)
304 struct qla_hw_data
*ha
= vha
->hw
;
306 struct scsi_qla_host
*tvp
;
310 if (list_empty(&ha
->vp_list
))
313 clear_bit(VP_DPC_NEEDED
, &vha
->dpc_flags
);
315 list_for_each_entry_safe(vp
, tvp
, &ha
->vp_list
, list
) {
317 ret
= qla2x00_do_dpc_vp(vp
);
322 qla24xx_vport_create_req_sanity_check(struct fc_vport
*fc_vport
)
324 scsi_qla_host_t
*base_vha
= shost_priv(fc_vport
->shost
);
325 struct qla_hw_data
*ha
= base_vha
->hw
;
326 scsi_qla_host_t
*vha
;
327 uint8_t port_name
[WWN_SIZE
];
329 if (fc_vport
->roles
!= FC_PORT_ROLE_FCP_INITIATOR
)
330 return VPCERR_UNSUPPORTED
;
332 /* Check up the F/W and H/W support NPIV */
333 if (!ha
->flags
.npiv_supported
)
334 return VPCERR_UNSUPPORTED
;
336 /* Check up whether npiv supported switch presented */
337 if (!(ha
->switch_cap
& FLOGI_MID_SUPPORT
))
338 return VPCERR_NO_FABRIC_SUPP
;
340 /* Check up unique WWPN */
341 u64_to_wwn(fc_vport
->port_name
, port_name
);
342 if (!memcmp(port_name
, base_vha
->port_name
, WWN_SIZE
))
343 return VPCERR_BAD_WWN
;
344 vha
= qla24xx_find_vhost_by_name(ha
, port_name
);
346 return VPCERR_BAD_WWN
;
348 /* Check up max-npiv-supports */
349 if (ha
->num_vhosts
> ha
->max_npiv_vports
) {
350 DEBUG15(printk("scsi(%ld): num_vhosts %ud is bigger than "
351 "max_npv_vports %ud.\n", base_vha
->host_no
,
352 ha
->num_vhosts
, ha
->max_npiv_vports
));
353 return VPCERR_UNSUPPORTED
;
359 qla24xx_create_vhost(struct fc_vport
*fc_vport
)
361 scsi_qla_host_t
*base_vha
= shost_priv(fc_vport
->shost
);
362 struct qla_hw_data
*ha
= base_vha
->hw
;
363 scsi_qla_host_t
*vha
;
364 struct scsi_host_template
*sht
= &qla2xxx_driver_template
;
365 struct Scsi_Host
*host
;
367 vha
= qla2x00_create_host(sht
, ha
);
369 DEBUG(printk("qla2xxx: scsi_host_alloc() failed for vport\n"));
374 fc_vport
->dd_data
= vha
;
376 u64_to_wwn(fc_vport
->node_name
, vha
->node_name
);
377 u64_to_wwn(fc_vport
->port_name
, vha
->port_name
);
379 vha
->fc_vport
= fc_vport
;
380 vha
->device_flags
= 0;
381 vha
->vp_idx
= qla24xx_allocate_vp_id(vha
);
382 if (vha
->vp_idx
> ha
->max_npiv_vports
) {
383 DEBUG15(printk("scsi(%ld): Couldn't allocate vp_id.\n",
385 goto create_vhost_failed
;
387 vha
->mgmt_svr_loop_id
= 10 + vha
->vp_idx
;
390 set_bit(REGISTER_FDMI_NEEDED
, &vha
->dpc_flags
);
391 set_bit(REGISTER_FC4_NEEDED
, &vha
->dpc_flags
);
394 * To fix the issue of processing a parent's RSCN for the vport before
395 * its SCR is complete.
397 set_bit(VP_SCR_NEEDED
, &vha
->vp_flags
);
398 atomic_set(&vha
->loop_state
, LOOP_DOWN
);
399 atomic_set(&vha
->loop_down_timer
, LOOP_DOWN_TIME
);
401 qla2x00_start_timer(vha
, qla2x00_timer
, WATCH_INTERVAL
);
403 vha
->req
= base_vha
->req
;
404 host
->can_queue
= base_vha
->req
->length
+ 128;
406 host
->cmd_per_lun
= 3;
407 host
->max_cmd_len
= MAX_CMDSZ
;
408 host
->max_channel
= MAX_BUSES
- 1;
409 host
->max_lun
= MAX_LUNS
;
410 host
->unique_id
= host
->host_no
;
411 host
->max_id
= MAX_TARGETS_2200
;
412 host
->transportt
= qla2xxx_transport_vport_template
;
414 DEBUG15(printk("DEBUG: detect vport hba %ld at address = %p\n",
417 vha
->flags
.init_done
= 1;
426 qla25xx_free_req_que(struct scsi_qla_host
*vha
, struct req_que
*req
)
428 struct qla_hw_data
*ha
= vha
->hw
;
429 uint16_t que_id
= req
->id
;
431 dma_free_coherent(&ha
->pdev
->dev
, (req
->length
+ 1) *
432 sizeof(request_t
), req
->ring
, req
->dma
);
436 ha
->req_q_map
[que_id
] = NULL
;
437 mutex_lock(&ha
->vport_lock
);
438 clear_bit(que_id
, ha
->req_qid_map
);
439 mutex_unlock(&ha
->vport_lock
);
446 qla25xx_free_rsp_que(struct scsi_qla_host
*vha
, struct rsp_que
*rsp
)
448 struct qla_hw_data
*ha
= vha
->hw
;
449 uint16_t que_id
= rsp
->id
;
451 if (rsp
->msix
&& rsp
->msix
->have_irq
) {
452 free_irq(rsp
->msix
->vector
, rsp
);
453 rsp
->msix
->have_irq
= 0;
454 rsp
->msix
->rsp
= NULL
;
456 dma_free_coherent(&ha
->pdev
->dev
, (rsp
->length
+ 1) *
457 sizeof(response_t
), rsp
->ring
, rsp
->dma
);
461 ha
->rsp_q_map
[que_id
] = NULL
;
462 mutex_lock(&ha
->vport_lock
);
463 clear_bit(que_id
, ha
->rsp_qid_map
);
464 mutex_unlock(&ha
->vport_lock
);
471 qla25xx_delete_req_que(struct scsi_qla_host
*vha
, struct req_que
*req
)
476 req
->options
|= BIT_0
;
477 ret
= qla25xx_init_req_que(vha
, req
);
479 if (ret
== QLA_SUCCESS
)
480 qla25xx_free_req_que(vha
, req
);
486 qla25xx_delete_rsp_que(struct scsi_qla_host
*vha
, struct rsp_que
*rsp
)
491 rsp
->options
|= BIT_0
;
492 ret
= qla25xx_init_rsp_que(vha
, rsp
);
494 if (ret
== QLA_SUCCESS
)
495 qla25xx_free_rsp_que(vha
, rsp
);
500 int qla25xx_update_req_que(struct scsi_qla_host
*vha
, uint8_t que
, uint8_t qos
)
503 struct qla_hw_data
*ha
= vha
->hw
;
504 struct req_que
*req
= ha
->req_q_map
[que
];
506 req
->options
|= BIT_3
;
508 ret
= qla25xx_init_req_que(vha
, req
);
509 if (ret
!= QLA_SUCCESS
)
510 DEBUG2_17(printk(KERN_WARNING
"%s failed\n", __func__
));
511 /* restore options bit */
512 req
->options
&= ~BIT_3
;
517 /* Delete all queues for a given vhost */
519 qla25xx_delete_queues(struct scsi_qla_host
*vha
)
522 struct req_que
*req
= NULL
;
523 struct rsp_que
*rsp
= NULL
;
524 struct qla_hw_data
*ha
= vha
->hw
;
526 /* Delete request queues */
527 for (cnt
= 1; cnt
< ha
->max_req_queues
; cnt
++) {
528 req
= ha
->req_q_map
[cnt
];
530 ret
= qla25xx_delete_req_que(vha
, req
);
531 if (ret
!= QLA_SUCCESS
) {
532 qla_printk(KERN_WARNING
, ha
,
533 "Couldn't delete req que %d\n",
540 /* Delete response queues */
541 for (cnt
= 1; cnt
< ha
->max_rsp_queues
; cnt
++) {
542 rsp
= ha
->rsp_q_map
[cnt
];
544 ret
= qla25xx_delete_rsp_que(vha
, rsp
);
545 if (ret
!= QLA_SUCCESS
) {
546 qla_printk(KERN_WARNING
, ha
,
547 "Couldn't delete rsp que %d\n",
557 qla25xx_create_req_que(struct qla_hw_data
*ha
, uint16_t options
,
558 uint8_t vp_idx
, uint16_t rid
, int rsp_que
, uint8_t qos
)
561 struct req_que
*req
= NULL
;
562 struct scsi_qla_host
*base_vha
= pci_get_drvdata(ha
->pdev
);
564 device_reg_t __iomem
*reg
;
567 req
= kzalloc(sizeof(struct req_que
), GFP_KERNEL
);
569 qla_printk(KERN_WARNING
, ha
, "could not allocate memory"
570 "for request que\n");
574 req
->length
= REQUEST_ENTRY_CNT_24XX
;
575 req
->ring
= dma_alloc_coherent(&ha
->pdev
->dev
,
576 (req
->length
+ 1) * sizeof(request_t
),
577 &req
->dma
, GFP_KERNEL
);
578 if (req
->ring
== NULL
) {
579 qla_printk(KERN_WARNING
, ha
,
580 "Memory Allocation failed - request_ring\n");
584 mutex_lock(&ha
->vport_lock
);
585 que_id
= find_first_zero_bit(ha
->req_qid_map
, ha
->max_req_queues
);
586 if (que_id
>= ha
->max_req_queues
) {
587 mutex_unlock(&ha
->vport_lock
);
588 qla_printk(KERN_INFO
, ha
, "No resources to create "
589 "additional request queue\n");
592 set_bit(que_id
, ha
->req_qid_map
);
593 ha
->req_q_map
[que_id
] = req
;
595 req
->vp_idx
= vp_idx
;
601 req
->rsp
= ha
->rsp_q_map
[rsp_que
];
602 /* Use alternate PCI bus number */
605 /* Use alternate PCI devfn */
608 req
->options
= options
;
610 for (cnt
= 1; cnt
< MAX_OUTSTANDING_COMMANDS
; cnt
++)
611 req
->outstanding_cmds
[cnt
] = NULL
;
612 req
->current_outstanding_cmd
= 1;
614 req
->ring_ptr
= req
->ring
;
616 req
->cnt
= req
->length
;
618 reg
= ISP_QUE_REG(ha
, que_id
);
619 req
->max_q_depth
= ha
->req_q_map
[0]->max_q_depth
;
620 mutex_unlock(&ha
->vport_lock
);
622 ret
= qla25xx_init_req_que(base_vha
, req
);
623 if (ret
!= QLA_SUCCESS
) {
624 qla_printk(KERN_WARNING
, ha
, "%s failed\n", __func__
);
625 mutex_lock(&ha
->vport_lock
);
626 clear_bit(que_id
, ha
->req_qid_map
);
627 mutex_unlock(&ha
->vport_lock
);
634 qla25xx_free_req_que(base_vha
, req
);
638 static void qla_do_work(struct work_struct
*work
)
640 struct rsp_que
*rsp
= container_of(work
, struct rsp_que
, q_work
);
641 struct scsi_qla_host
*vha
;
643 vha
= qla25xx_get_host(rsp
);
644 qla24xx_process_response_queue(vha
, rsp
);
647 /* create response queue */
649 qla25xx_create_rsp_que(struct qla_hw_data
*ha
, uint16_t options
,
650 uint8_t vp_idx
, uint16_t rid
, int req
)
653 struct rsp_que
*rsp
= NULL
;
654 struct scsi_qla_host
*base_vha
= pci_get_drvdata(ha
->pdev
);
656 device_reg_t __iomem
*reg
;
658 rsp
= kzalloc(sizeof(struct rsp_que
), GFP_KERNEL
);
660 qla_printk(KERN_WARNING
, ha
, "could not allocate memory for"
665 rsp
->length
= RESPONSE_ENTRY_CNT_MQ
;
666 rsp
->ring
= dma_alloc_coherent(&ha
->pdev
->dev
,
667 (rsp
->length
+ 1) * sizeof(response_t
),
668 &rsp
->dma
, GFP_KERNEL
);
669 if (rsp
->ring
== NULL
) {
670 qla_printk(KERN_WARNING
, ha
,
671 "Memory Allocation failed - response_ring\n");
675 mutex_lock(&ha
->vport_lock
);
676 que_id
= find_first_zero_bit(ha
->rsp_qid_map
, ha
->max_rsp_queues
);
677 if (que_id
>= ha
->max_rsp_queues
) {
678 mutex_unlock(&ha
->vport_lock
);
679 qla_printk(KERN_INFO
, ha
, "No resources to create "
680 "additional response queue\n");
683 set_bit(que_id
, ha
->rsp_qid_map
);
685 if (ha
->flags
.msix_enabled
)
686 rsp
->msix
= &ha
->msix_entries
[que_id
+ 1];
688 qla_printk(KERN_WARNING
, ha
, "msix not enabled\n");
690 ha
->rsp_q_map
[que_id
] = rsp
;
692 rsp
->vp_idx
= vp_idx
;
694 /* Use alternate PCI bus number */
697 /* Use alternate PCI devfn */
700 rsp
->options
= options
;
702 reg
= ISP_QUE_REG(ha
, que_id
);
703 rsp
->rsp_q_in
= ®
->isp25mq
.rsp_q_in
;
704 rsp
->rsp_q_out
= ®
->isp25mq
.rsp_q_out
;
705 mutex_unlock(&ha
->vport_lock
);
707 ret
= qla25xx_request_irq(rsp
);
711 ret
= qla25xx_init_rsp_que(base_vha
, rsp
);
712 if (ret
!= QLA_SUCCESS
) {
713 qla_printk(KERN_WARNING
, ha
, "%s failed\n", __func__
);
714 mutex_lock(&ha
->vport_lock
);
715 clear_bit(que_id
, ha
->rsp_qid_map
);
716 mutex_unlock(&ha
->vport_lock
);
720 rsp
->req
= ha
->req_q_map
[req
];
724 qla2x00_init_response_q_entries(rsp
);
726 INIT_WORK(&rsp
->q_work
, qla_do_work
);
730 qla25xx_free_rsp_que(base_vha
, rsp
);
735 qla25xx_create_queues(struct scsi_qla_host
*vha
, uint8_t qos
)
737 uint16_t options
= 0;
739 struct qla_hw_data
*ha
= vha
->hw
;
743 ret
= qla25xx_create_rsp_que(ha
, options
, vha
->vp_idx
, 0, -1);
745 qla_printk(KERN_WARNING
, ha
, "Response Que create failed\n");
748 qla_printk(KERN_INFO
, ha
, "Response Que:%d created.\n", ret
);
749 rsp
= ha
->rsp_q_map
[ret
];
754 ret
= qla25xx_create_req_que(ha
, options
, vha
->vp_idx
, 0, ret
,
757 vha
->req
= ha
->req_q_map
[ret
];
758 qla_printk(KERN_INFO
, ha
, "Request Que:%d created.\n", ret
);
760 qla_printk(KERN_WARNING
, ha
, "Request Que create failed\n");
761 rsp
->req
= ha
->req_q_map
[ret
];