Lines Matching refs:shost

142 	SNIC_SCSI_DBG(snic->shost,  in snic_release_req_buf()
193 SNIC_HOST_ERR(snic->shost, in snic_queue_icmnd_req()
227 SNIC_HOST_ERR(snic->shost, in snic_queue_icmnd_req()
256 SNIC_TRC((u16)snic->shost->host_no, tag, (ulong) sc, 0, in snic_issue_scsi_req()
259 SNIC_HOST_ERR(snic->shost, "issue_sc:Failed to map SG List.\n"); in snic_issue_scsi_req()
286 SNIC_HOST_ERR(snic->shost, in snic_issue_scsi_req()
300 SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, 0, 0, 0, in snic_issue_scsi_req()
313 SNIC_SCSI_DBG(snic->shost, in snic_issue_scsi_req()
317 SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, (ulong) rqi, in snic_issue_scsi_req()
333 snic_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc) in snic_queuecommand() argument
336 struct snic *snic = shost_priv(shost); in snic_queuecommand()
342 SNIC_HOST_ERR(shost, "Tgt %p id %d Not Ready.\n", tgt, tgt->id); in snic_queuecommand()
351 SNIC_HOST_ERR(shost, "snic state is %s\n", in snic_queuecommand()
358 SNIC_SCSI_DBG(shost, "sc %p Tag %d (sc %0x) lun %lld in snic_qcmd\n", in snic_queuecommand()
363 SNIC_HOST_ERR(shost, "Failed to Q, Scsi Req w/ err %d.\n", ret); in snic_queuecommand()
468 SNIC_SCSI_DBG(snic->shost, in snic_process_io_failed_state()
474 SNIC_HOST_ERR(snic->shost, "fw returns failed status %s flags 0x%llx\n", in snic_process_io_failed_state()
530 SNIC_HOST_ERR(snic->shost, in snic_process_icmnd_cmpl_status()
562 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler()
567 SNIC_HOST_ERR(snic->shost, in snic_icmnd_cmpl_handler()
573 sc = scsi_host_find_tag(snic->shost, cmnd_id); in snic_icmnd_cmpl_handler()
578 SNIC_HOST_ERR(snic->shost, in snic_icmnd_cmpl_handler()
584 SNIC_TRC(snic->shost->host_no, cmnd_id, 0, in snic_icmnd_cmpl_handler()
596 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler()
614 SNIC_HOST_ERR(snic->shost, in snic_icmnd_cmpl_handler()
641 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler()
648 SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, in snic_icmnd_cmpl_handler()
657 SNIC_HOST_ERR(snic->shost, in snic_icmnd_cmpl_handler()
674 SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, in snic_icmnd_cmpl_handler()
697 SNIC_SCSI_DBG(snic->shost, "itmf_cmpl: Cmd State = %s\n", in snic_proc_dr_cmpl_locked()
703 SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, in snic_proc_dr_cmpl_locked()
707 SNIC_SCSI_DBG(snic->shost, in snic_proc_dr_cmpl_locked()
718 SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, in snic_proc_dr_cmpl_locked()
722 SNIC_SCSI_DBG(snic->shost, in snic_proc_dr_cmpl_locked()
734 SNIC_SCSI_DBG(snic->shost, in snic_proc_dr_cmpl_locked()
752 SNIC_SCSI_DBG(snic->shost, "Updating Abort stats.\n"); in snic_update_abort_stats()
800 SNIC_HOST_ERR(snic->shost, in snic_process_itmf_cmpl()
830 SNIC_SCSI_DBG(snic->shost, in snic_process_itmf_cmpl()
850 SNIC_SCSI_DBG(snic->shost, in snic_process_itmf_cmpl()
859 SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, in snic_process_itmf_cmpl()
884 SNIC_SCSI_DBG(snic->shost, in snic_process_itmf_cmpl()
898 SNIC_HOST_ERR(snic->shost, in snic_process_itmf_cmpl()
901 SNIC_HOST_ERR(snic->shost, in snic_process_itmf_cmpl()
932 SNIC_SCSI_DBG(snic->shost, in snic_itmf_cmpl_handler()
937 SNIC_SCSI_DBG(snic->shost, in snic_itmf_cmpl_handler()
950 SNIC_HOST_ERR(snic->shost, in snic_itmf_cmpl_handler()
958 sc = scsi_host_find_tag(snic->shost, cmnd_id & SNIC_TAG_MASK); in snic_itmf_cmpl_handler()
964 SNIC_HOST_ERR(snic->shost, in snic_itmf_cmpl_handler()
982 SNIC_SCSI_DBG(snic->shost, "HBA Reset scsi cleanup.\n"); in snic_hba_reset_scsi_cleanup()
1016 SNIC_HOST_INFO(snic->shost, in snic_hba_reset_cmpl_handler()
1020 SNIC_SCSI_DBG(snic->shost, in snic_hba_reset_cmpl_handler()
1027 SNIC_HOST_INFO(snic->shost, in snic_hba_reset_cmpl_handler()
1036 SNIC_HOST_ERR(snic->shost, in snic_hba_reset_cmpl_handler()
1044 sc = scsi_host_find_tag(snic->shost, cmnd_id); in snic_hba_reset_cmpl_handler()
1048 SNIC_HOST_ERR(snic->shost, in snic_hba_reset_cmpl_handler()
1056 SNIC_HOST_INFO(snic->shost, in snic_hba_reset_cmpl_handler()
1065 SNIC_HOST_ERR(snic->shost, in snic_hba_reset_cmpl_handler()
1079 SNIC_HOST_ERR(snic->shost, in snic_hba_reset_cmpl_handler()
1115 SNIC_SCSI_DBG(snic->shost, "reset_cmpl: Queuing discovery work.\n"); in snic_hba_reset_cmpl_handler()
1124 SNIC_HOST_INFO(snic->shost, "Message Ack Received.\n"); in snic_msg_ack_handler()
1139 SNIC_SCSI_DBG(snic->shost, in snic_aen_handler()
1147 SNIC_HOST_INFO(snic->shost, "aen:TGT_OFFLINE Event Recvd.\n"); in snic_aen_handler()
1151 SNIC_HOST_INFO(snic->shost, "aen:TGT_ONLINE Event Recvd.\n"); in snic_aen_handler()
1155 SNIC_HOST_INFO(snic->shost, "aen:LUN_OFFLINE Event Recvd.\n"); in snic_aen_handler()
1159 SNIC_HOST_INFO(snic->shost, "aen:LUN_ONLINE Event Recvd.\n"); in snic_aen_handler()
1163 SNIC_HOST_INFO(snic->shost, "aen:Config Change Event Recvd.\n"); in snic_aen_handler()
1167 SNIC_HOST_INFO(snic->shost, "aen:TGT_ADD Event Recvd.\n"); in snic_aen_handler()
1171 SNIC_HOST_INFO(snic->shost, "aen:TGT_DEL Event Recvd.\n"); in snic_aen_handler()
1175 SNIC_HOST_INFO(snic->shost, "aen:LUN_ADD Event Recvd.\n"); in snic_aen_handler()
1179 SNIC_HOST_INFO(snic->shost, "aen:LUN_DEL Event Recvd.\n"); in snic_aen_handler()
1183 SNIC_HOST_INFO(snic->shost, "aen:DISC_CMPL Event Recvd.\n"); in snic_aen_handler()
1187 SNIC_HOST_INFO(snic->shost, "aen:Unknown Event Recvd.\n"); in snic_aen_handler()
1220 SNIC_HOST_ERR(snic->shost, in snic_io_cmpl_handler()
1225 SNIC_HOST_ERR(snic->shost, in snic_io_cmpl_handler()
1261 SNIC_SCSI_DBG(snic->shost, in snic_io_cmpl_handler()
1344 SNIC_HOST_ERR(snic->shost, in snic_queue_itmf_req()
1348 SNIC_SCSI_DBG(snic->shost, in snic_queue_itmf_req()
1370 SNIC_SCSI_DBG(snic->shost, in snic_issue_tm_req()
1393 SNIC_HOST_ERR(snic->shost, in snic_issue_tm_req()
1397 SNIC_SCSI_DBG(snic->shost, in snic_issue_tm_req()
1416 SNIC_SCSI_DBG(snic->shost, "q_abtreq: sc %p, rqi %p, tag %x, tmf %d\n", in snic_queue_abort_req()
1443 SNIC_SCSI_DBG(snic->shost, in snic_abort_finish()
1461 SNIC_SCSI_DBG(snic->shost, in snic_abort_finish()
1489 SNIC_HOST_INFO(snic->shost, in snic_abort_finish()
1543 SNIC_HOST_ERR(snic->shost, in snic_send_abort_and_wait()
1573 SNIC_SCSI_DBG(snic->shost, "send_abt_cmd: TAG 0x%x\n", tag); in snic_send_abort_and_wait()
1581 SNIC_HOST_ERR(snic->shost, in snic_send_abort_and_wait()
1607 SNIC_SCSI_DBG(snic->shost, in snic_send_abort_and_wait()
1638 SNIC_SCSI_DBG(snic->shost, "abt_cmd:sc %p :0x%x :req = %p :tag = %d\n", in snic_abort_cmd()
1642 SNIC_HOST_ERR(snic->shost, in snic_abort_cmd()
1658 SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, in snic_abort_cmd()
1662 SNIC_SCSI_DBG(snic->shost, in snic_abort_cmd()
1690 sc = scsi_host_find_tag(snic->shost, tag); in snic_is_abts_pending()
1709 SNIC_SCSI_DBG(snic->shost, "Found IO in %s on LUN\n", in snic_is_abts_pending()
1740 sc = scsi_host_find_tag(snic->shost, tag); in snic_dr_clean_single_req()
1759 SNIC_SCSI_DBG(snic->shost, in snic_dr_clean_single_req()
1766 SNIC_SCSI_DBG(snic->shost, in snic_dr_clean_single_req()
1787 SNIC_SCSI_DBG(snic->shost, in snic_dr_clean_single_req()
1804 SNIC_HOST_ERR(snic->shost, in snic_dr_clean_single_req()
1841 SNIC_HOST_ERR(snic->shost, in snic_dr_clean_single_req()
1883 SNIC_HOST_ERR(snic->shost, "clean_err:tag = %d\n", tag); in snic_dr_clean_pending_req()
1899 SNIC_SCSI_DBG(snic->shost, "clean_pending_req: Success.\n"); in snic_dr_clean_pending_req()
1905 SNIC_HOST_ERR(snic->shost, in snic_dr_clean_pending_req()
1930 SNIC_SCSI_DBG(snic->shost, in snic_dr_finish()
1945 SNIC_SCSI_DBG(snic->shost, in snic_dr_finish()
1955 SNIC_SCSI_DBG(snic->shost, in snic_dr_finish()
1962 SNIC_HOST_ERR(snic->shost, in snic_dr_finish()
1982 SNIC_SCSI_DBG(snic->shost, in snic_dr_finish()
2037 SNIC_HOST_ERR(snic->shost, in snic_send_dr_and_wait()
2052 SNIC_SCSI_DBG(snic->shost, "dr: TAG = %x\n", tag); in snic_send_dr_and_wait()
2067 SNIC_HOST_ERR(snic->shost, in snic_send_dr_and_wait()
2133 SNIC_TRC(snic->shost->host_no, snic_cmd_tag(sc), (ulong) sc, in snic_unlink_and_release_req()
2146 struct Scsi_Host *shost = sc->device->host; in snic_device_reset() local
2147 struct snic *snic = shost_priv(shost); in snic_device_reset()
2154 SNIC_SCSI_DBG(shost, "dev_reset:sc %p :0x%x :req = %p :tag = %d\n", in snic_device_reset()
2160 SNIC_HOST_INFO(shost, "LUN Reset Op not supported.\n"); in snic_device_reset()
2168 SNIC_HOST_ERR(shost, "Devrst: Parent Devs are not online.\n"); in snic_device_reset()
2175 SNIC_HOST_INFO(snic->shost, in snic_device_reset()
2194 SNIC_HOST_ERR(snic->shost, in snic_device_reset()
2206 SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, in snic_device_reset()
2210 SNIC_SCSI_DBG(snic->shost, in snic_device_reset()
2247 SNIC_HOST_INFO(snic->shost, "issu_hr:Host reset thru ioctl.\n"); in snic_issue_hba_reset()
2270 SNIC_HOST_ERR(snic->shost, in snic_issue_hba_reset()
2281 SNIC_HOST_INFO(snic->shost, "Queued HBA Reset Successfully.\n"); in snic_issue_hba_reset()
2287 SNIC_HOST_ERR(snic->shost, "reset_cmpl: Reset Timedout.\n"); in snic_issue_hba_reset()
2317 SNIC_HOST_ERR(snic->shost, in snic_issue_hba_reset()
2325 snic_reset(struct Scsi_Host *shost, struct scsi_cmnd *sc) in snic_reset() argument
2327 struct snic *snic = shost_priv(shost); in snic_reset()
2338 SNIC_HOST_INFO(shost, "reset:prev reset is in progres\n"); in snic_reset()
2356 SNIC_HOST_ERR(shost, in snic_reset()
2384 struct Scsi_Host *shost = sc->device->host; in snic_host_reset() local
2388 SNIC_SCSI_DBG(shost, in snic_host_reset()
2393 ret = snic_reset(shost, sc); in snic_host_reset()
2395 SNIC_TRC(shost->host_no, snic_cmd_tag(sc), (ulong) sc, in snic_host_reset()
2410 SNIC_SCSI_DBG(snic->shost, in snic_cmpl_pending_tmreq()
2444 SNIC_SCSI_DBG(snic->shost, "sc_clean: scsi cleanup.\n"); in snic_scsi_cleanup()
2453 sc = scsi_host_find_tag(snic->shost, tag); in snic_scsi_cleanup()
2478 SNIC_SCSI_DBG(snic->shost, in snic_scsi_cleanup()
2487 SNIC_HOST_INFO(snic->shost, in snic_scsi_cleanup()
2495 SNIC_HOST_INFO(snic->shost, in snic_scsi_cleanup()
2504 SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, in snic_scsi_cleanup()
2517 SNIC_HOST_INFO(snic->shost, "Shutdown time SCSI Cleanup.\n"); in snic_shutdown_scsi_cleanup()
2547 SNIC_SCSI_DBG(snic->shost, in snic_internal_abort_io()
2556 SNIC_SCSI_DBG(snic->shost, in snic_internal_abort_io()
2571 SNIC_SCSI_DBG(snic->shost, "internal_abts:dev rst sc %p\n", sc); in snic_internal_abort_io()
2574 SNIC_SCSI_DBG(snic->shost, "internal_abts: Issuing abts tag %x\n", in snic_internal_abort_io()
2581 SNIC_HOST_ERR(snic->shost, in snic_internal_abort_io()
2625 SNIC_SCSI_DBG(snic->shost, "tgt_abt_io: Cleaning Pending IOs.\n"); in snic_tgt_scsi_abort_io()
2636 sc = scsi_host_find_tag(snic->shost, tag); in snic_tgt_scsi_abort_io()
2653 SNIC_HOST_ERR(snic->shost, in snic_tgt_scsi_abort_io()
2664 SNIC_SCSI_DBG(snic->shost, "tgt_abt_io: abt_cnt = %d\n", abt_cnt); in snic_tgt_scsi_abort_io()