• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/qla2xxx/

Lines Matching refs:vha

35 	scsi_qla_host_t	*vha;
57 vha = pci_get_drvdata(ha->pdev);
72 ha->isp_ops->fw_dump(vha, 1);
73 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
85 qla2x00_mbx_completion(vha, mb[0]);
91 qla2x00_async_event(vha, rsp, mb);
96 vha->host_no, mb[0]));
131 scsi_qla_host_t *vha;
154 vha = pci_get_drvdata(ha->pdev);
177 ha->isp_ops->fw_dump(vha, 1);
178 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
188 qla2x00_mbx_completion(vha, MSW(stat));
199 qla2x00_async_event(vha, rsp, mb);
207 qla2x00_async_event(vha, rsp, mb);
213 qla2x00_async_event(vha, rsp, mb);
218 vha->host_no, stat & 0xff));
241 qla2x00_mbx_completion(scsi_qla_host_t *vha, uint16_t mb0)
245 struct qla_hw_data *ha = vha->hw;
266 __func__, vha->host_no, ha->mcp->mb[0]));
269 __func__, vha->host_no));
274 qla81xx_idc_event(scsi_qla_host_t *vha, uint16_t aen, uint16_t descr)
279 struct device_reg_24xx __iomem *reg24 = &vha->hw->iobase->isp24;
289 "%04x %04x %04x %04x %04x %04x %04x.\n", vha->host_no,
299 "ACK timeout=%d.\n", vha->host_no, event[aen & 0xff], timeout));
301 rval = qla2x00_post_idc_ack_work(vha, mb);
303 qla_printk(KERN_WARNING, vha->hw,
313 qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)
321 struct qla_hw_data *ha = vha->hw;
386 if (!vha->flags.online)
390 qla2x00_process_completed_request(vha, rsp->req,
396 vha->host_no));
398 set_bit(RESET_MARKER_NEEDED, &vha->dpc_flags);
407 ha->isp_ops->fw_dump(vha, 1);
414 vha->flags.online = 0;
416 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
421 vha->flags.online = 0;
423 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
428 vha->host_no, mb[1]));
432 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
437 vha->host_no));
440 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
445 vha->host_no));
449 DEBUG2(printk("scsi(%ld): LIP occurred (%x).\n", vha->host_no,
453 if (atomic_read(&vha->loop_state) != LOOP_DOWN) {
454 atomic_set(&vha->loop_state, LOOP_DOWN);
455 atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME);
456 qla2x00_mark_all_devices_lost(vha, 1);
459 if (vha->vp_idx) {
460 atomic_set(&vha->vp_state, VP_FAILED);
461 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED);
464 set_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags);
465 set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags);
467 vha->flags.management_server_logged_in = 0;
468 qla2x00_post_aen_work(vha, FCH_EVT_LIP, mb[1]);
485 vha->host_no, link_speed));
489 vha->flags.management_server_logged_in = 0;
490 qla2x00_post_aen_work(vha, FCH_EVT_LINKUP, ha->link_data_rate);
496 "(%x %x %x %x).\n", vha->host_no, mb[1], mb[2], mb[3],
502 if (atomic_read(&vha->loop_state) != LOOP_DOWN) {
503 atomic_set(&vha->loop_state, LOOP_DOWN);
504 atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME);
505 vha->device_flags |= DFLG_NO_CABLE;
506 qla2x00_mark_all_devices_lost(vha, 1);
509 if (vha->vp_idx) {
510 atomic_set(&vha->vp_state, VP_FAILED);
511 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED);
514 vha->flags.management_server_logged_in = 0;
516 qla2x00_post_aen_work(vha, FCH_EVT_LINKDOWN, 0);
521 vha->host_no, mb[1]));
525 if (atomic_read(&vha->loop_state) != LOOP_DOWN) {
526 atomic_set(&vha->loop_state, LOOP_DOWN);
527 atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME);
528 qla2x00_mark_all_devices_lost(vha, 1);
531 if (vha->vp_idx) {
532 atomic_set(&vha->vp_state, VP_FAILED);
533 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED);
536 set_bit(RESET_MARKER_NEEDED, &vha->dpc_flags);
539 vha->flags.management_server_logged_in = 0;
540 qla2x00_post_aen_work(vha, FCH_EVT_LIPRESET, mb[1]);
550 "%04x\n", vha->host_no, mb[1], mb[2], mb[3]));
556 "received.\n", vha->host_no));
562 if (atomic_read(&vha->loop_state) != LOOP_DOWN) {
563 atomic_set(&vha->loop_state, LOOP_DOWN);
564 if (!atomic_read(&vha->loop_down_timer))
565 atomic_set(&vha->loop_down_timer,
567 qla2x00_mark_all_devices_lost(vha, 1);
570 if (vha->vp_idx) {
571 atomic_set(&vha->vp_state, VP_FAILED);
572 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED);
575 if (!(test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)))
576 set_bit(RESET_MARKER_NEEDED, &vha->dpc_flags);
578 set_bit(REGISTER_FC4_NEEDED, &vha->dpc_flags);
579 set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags);
582 vha->flags.management_server_logged_in = 0;
591 vha->host_no));
595 if (atomic_read(&vha->loop_state) != LOOP_DOWN) {
596 atomic_set(&vha->loop_state, LOOP_DOWN);
597 if (!atomic_read(&vha->loop_down_timer))
598 atomic_set(&vha->loop_down_timer,
600 qla2x00_mark_all_devices_lost(vha, 1);
603 if (vha->vp_idx) {
604 atomic_set(&vha->vp_state, VP_FAILED);
605 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED);
608 set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags);
609 set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags);
630 (mb[1] != 0xffff)) && vha->vp_idx != (mb[3] & 0xff))
636 vha->host_no));
639 vha->host_no, mb[1], mb[2], mb[3]));
641 if (atomic_read(&vha->loop_state) != LOOP_DOWN) {
642 atomic_set(&vha->loop_state, LOOP_DOWN);
643 atomic_set(&vha->loop_down_timer,
645 vha->device_flags |= DFLG_NO_CABLE;
646 qla2x00_mark_all_devices_lost(vha, 1);
649 if (vha->vp_idx) {
650 atomic_set(&vha->vp_state, VP_FAILED);
651 fc_vport_set_state(vha->fc_vport,
653 qla2x00_mark_all_devices_lost(vha, 1);
656 vha->flags.management_server_logged_in = 0;
666 atomic_set(&vha->loop_down_timer, 0);
667 if (atomic_read(&vha->loop_state) != LOOP_DOWN &&
668 atomic_read(&vha->loop_state) != LOOP_DEAD) {
670 "ignored %04x/%04x/%04x.\n", vha->host_no, mb[1],
676 vha->host_no));
679 vha->host_no, mb[1], mb[2], mb[3]));
684 atomic_set(&vha->loop_state, LOOP_UP);
686 qla2x00_mark_all_devices_lost(vha, 1);
688 vha->flags.rscn_queue_overflow = 1;
690 set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags);
691 set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags);
696 if (vha->vp_idx && test_bit(VP_SCR_NEEDED, &vha->vp_flags))
699 if (ha->flags.npiv_supported && vha->vp_idx != (mb[3] & 0xff))
703 vha->host_no));
706 vha->host_no, mb[1], mb[2], mb[3]));
709 host_pid = (vha->d_id.b.domain << 16) | (vha->d_id.b.area << 8)
710 | vha->d_id.b.al_pa;
715 vha->host_no, host_pid));
721 rscn_queue_index = vha->rscn_in_ptr + 1;
724 if (rscn_queue_index != vha->rscn_out_ptr) {
725 vha->rscn_queue[vha->rscn_in_ptr] = rscn_entry;
726 vha->rscn_in_ptr = rscn_queue_index;
728 vha->flags.rscn_queue_overflow = 1;
731 atomic_set(&vha->loop_state, LOOP_UPDATE);
732 atomic_set(&vha->loop_down_timer, 0);
733 vha->flags.management_server_logged_in = 0;
735 set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags);
736 set_bit(RSCN_UPDATE, &vha->dpc_flags);
737 qla2x00_post_aen_work(vha, FCH_EVT_RSCN, rscn_entry);
743 vha->host_no));
746 qla24xx_process_response_queue(vha, rsp);
753 "%04x.\n", vha->host_no, mb[1], mb[2], mb[3]));
758 vha->host_no, mb[1], mb[2]));
763 "%04x %04x %04x\n", vha->host_no, mb[1], mb[2], mb[3]));
798 vha->host_no, mb[1], mb[2], mb[3]));
802 "%04x %04x %04x\n", vha->host_no, mb[1], mb[2], mb[3]));
806 "%04x %04x %04x\n", vha->host_no, mb[1], mb[2], mb[3]));
811 qla81xx_idc_event(vha, mb[0], mb[1]);
815 if (!vha->vp_idx && ha->num_vhosts)
825 qla2x00_process_completed_request(struct scsi_qla_host *vha,
829 struct qla_hw_data *ha = vha->hw;
834 vha->host_no, index));
838 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
852 " handle(0x%x)\n", vha->host_no, req->id, index));
856 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
861 qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func,
864 struct qla_hw_data *ha = vha->hw;
873 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
897 qla2x00_mbx_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
909 sp = qla2x00_get_sp_from_handle(vha, func, req, mbx);
927 fcport->vha->host_no, sp->handle, type,
946 fcport->vha->host_no, sp->handle, type,
976 fcport->vha->host_no, sp->handle, type, fcport->d_id.b.domain,
987 qla2x00_ct_entry(scsi_qla_host_t *vha, struct req_que *req,
992 struct qla_hw_data *ha = vha->hw;
998 sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
1034 vha->host_no, type, comp_status,
1040 vha->host_no, type, comp_status));
1067 qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req,
1072 struct qla_hw_data *ha = vha->hw;
1080 sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
1121 vha->host_no, sp->handle, type, comp_status, fw_status[1], fw_status[2],
1130 vha->host_no, sp->handle, type, comp_status,
1161 qla24xx_logio_entry(scsi_qla_host_t *vha, struct req_que *req,
1173 sp = qla2x00_get_sp_from_handle(vha, func, req, logio);
1190 fcport->vha->host_no, sp->handle, type,
1202 fcport->vha->host_no, sp->handle, type,
1251 fcport->vha->host_no, sp->handle, type, fcport->d_id.b.domain,
1262 qla24xx_tm_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
1274 sp = qla2x00_get_sp_from_handle(vha, func, req, tsk);
1286 fcport->vha->host_no, sp->handle, type,
1291 fcport->vha->host_no, sp->handle, type,
1297 fcport->vha->host_no, sp->handle, type,
1302 fcport->vha->host_no, sp->handle, type,
1307 fcport->vha->host_no, sp->handle, type,
1328 struct scsi_qla_host *vha;
1335 vha = pci_get_drvdata(ha->pdev);
1337 if (!vha->flags.online)
1353 "scsi(%ld): Process error entry.\n", vha->host_no));
1355 qla2x00_error_entry(vha, rsp, pkt);
1363 qla2x00_status_entry(vha, rsp, pkt);
1368 qla2x00_process_completed_request(vha, rsp->req,
1375 qla2x00_process_completed_request(vha, rsp->req,
1383 qla2x00_mbx_iocb_entry(vha, rsp->req,
1387 qla2x00_ct_entry(vha, rsp->req, pkt, CT_IOCB_TYPE);
1394 vha->host_no, pkt->entry_type, pkt->entry_status));
1428 "cmd=%p pid=%ld\n", __func__, sp->fcport->vha->host_no,
1513 qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)
1528 struct qla_hw_data *ha = vha->hw;
1549 qla2x00_process_completed_request(vha, req, handle);
1563 "scsi(%ld): Invalid status handle (0x%x).\n", vha->host_no,
1566 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
1567 qla2xxx_wake_dpc(vha);
1574 vha->host_no, sts->handle, sp);
1621 "(0x%x/0x%x).\n", vha->host_no, cp->device->id,
1654 vha->host_no, cp->device->id,
1666 vha->host_no, cp->device->id, cp->device->lun));
1689 "(0x%x of 0x%x bytes).\n", vha->host_no,
1703 vha->host_no, cp->device->id,
1712 "of 0x%x bytes).\n", vha->host_no, cp->device->id,
1731 vha->host_no, cp->device->id,
1771 vha->host_no, cp->device->id, cp->device->lun,
1775 qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1);
1799 "rsp_info=0x%x resid=0x%x fw_resid=0x%x\n", vha->host_no,
1866 qla2x00_error_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, sts_entry_t *pkt)
1869 struct qla_hw_data *ha = vha->hw;
1914 vha->host_no));
1918 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
1919 qla2xxx_wake_dpc(vha);
1929 qla24xx_mbx_completion(scsi_qla_host_t *vha, uint16_t mb0)
1933 struct qla_hw_data *ha = vha->hw;
1948 __func__, vha->host_no, ha->mcp->mb[0]));
1951 __func__, vha->host_no));
1959 void qla24xx_process_response_queue(struct scsi_qla_host *vha,
1963 struct qla_hw_data *ha = vha->hw;
1965 if (!vha->flags.online)
1981 "scsi(%ld): Process error entry.\n", vha->host_no));
1983 qla2x00_error_entry(vha, rsp, (sts_entry_t *) pkt);
1991 qla2x00_status_entry(vha, rsp, pkt);
1997 qla24xx_report_id_acquisition(vha,
2001 qla24xx_logio_entry(vha, rsp->req,
2005 qla24xx_tm_iocb_entry(vha, rsp->req,
2009 qla24xx_els_ct_entry(vha, rsp->req, pkt, CT_IOCB_TYPE);
2010 clear_bit(MBX_INTERRUPT, &vha->hw->mbx_cmd_flags);
2013 qla24xx_els_ct_entry(vha, rsp->req, pkt, ELS_IOCB_TYPE);
2020 vha->host_no, pkt->entry_type, pkt->entry_status));
2036 qla2xxx_check_risc_status(scsi_qla_host_t *vha)
2040 struct qla_hw_data *ha = vha->hw;
2094 scsi_qla_host_t *vha;
2120 vha = pci_get_drvdata(ha->pdev);
2132 qla2xxx_check_risc_status(vha);
2134 ha->isp_ops->fw_dump(vha, 1);
2135 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
2145 qla24xx_mbx_completion(vha, MSW(stat));
2154 qla2x00_async_event(vha, rsp, mb);
2158 qla24xx_process_response_queue(vha, rsp);
2163 vha->host_no, stat & 0xff));
2186 struct scsi_qla_host *vha;
2200 vha = pci_get_drvdata(ha->pdev);
2201 qla24xx_process_response_queue(vha, rsp);
2243 scsi_qla_host_t *vha;
2264 vha = pci_get_drvdata(ha->pdev);
2276 qla2xxx_check_risc_status(vha);
2278 ha->isp_ops->fw_dump(vha, 1);
2279 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
2289 qla24xx_mbx_completion(vha, MSW(stat));
2298 qla2x00_async_event(vha, rsp, mb);
2302 qla24xx_process_response_queue(vha, rsp);
2307 vha->host_no, stat & 0xff));
2525 qla2x00_free_irqs(scsi_qla_host_t *vha)
2527 struct qla_hw_data *ha = vha->hw;