Lines Matching full:hd

95 static void	mptscsih_copy_sense_data(struct scsi_cmnd *sc, MPT_SCSI_HOST *hd, MPT_FRAME_HDR *mf, SC…
97 int mptscsih_IssueTaskMgmt(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id,
108 static int mptscsih_do_cmd(MPT_SCSI_HOST *hd, INTERNAL_CMD *iocmd);
109 static void mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice);
589 MPT_SCSI_HOST *hd; in mptscsih_io_done() local
596 hd = shost_priv(ioc->sh); in mptscsih_io_done()
686 mptscsih_copy_sense_data(sc, hd, mf, pScsiReply); in mptscsih_io_done()
724 if (hd->sel_timeout[pScsiReq->TargetID] < 0xFFFF) in mptscsih_io_done()
725 hd->sel_timeout[pScsiReq->TargetID]++; in mptscsih_io_done()
1023 * @hd: Pointer to a SCSI HOST structure
1030 mptscsih_flush_running_cmds(MPT_SCSI_HOST *hd) in mptscsih_flush_running_cmds() argument
1032 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_flush_running_cmds()
1069 * @hd: Pointer to a SCSI HOST structure
1077 mptscsih_search_running_cmds(MPT_SCSI_HOST *hd, VirtDevice *vdevice) in mptscsih_search_running_cmds() argument
1083 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_search_running_cmds()
1147 MPT_SCSI_HOST *hd; in mptscsih_report_queue_full() local
1154 if ((hd = shost_priv(sc->device->host)) == NULL) in mptscsih_report_queue_full()
1156 ioc = hd->ioc; in mptscsih_report_queue_full()
1157 if (time - hd->last_queue_full > 10 * HZ) { in mptscsih_report_queue_full()
1160 hd->last_queue_full = time; in mptscsih_report_queue_full()
1176 MPT_SCSI_HOST *hd; in mptscsih_remove() local
1180 hd = NULL; in mptscsih_remove()
1182 hd = shost_priv(host); in mptscsih_remove()
1198 if (hd) in mptscsih_remove()
1199 kfree(hd->info_kbuf); in mptscsih_remove()
1287 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_show_info() local
1288 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_show_info()
1315 MPT_SCSI_HOST *hd; in mptscsih_qcmd() local
1327 hd = shost_priv(SCpnt->device->host); in mptscsih_qcmd()
1328 ioc = hd->ioc; in mptscsih_qcmd()
1442 * @hd: Pointer to the MPT_SCSI_HOST instance
1496 * @hd: Pointer to MPT_SCSI_HOST structure
1513 mptscsih_IssueTaskMgmt(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id, u64 lun, in mptscsih_IssueTaskMgmt() argument
1520 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_IssueTaskMgmt()
1683 MPT_SCSI_HOST *hd; in mptscsih_abort() local
1693 if ((hd = shost_priv(SCpnt->device->host)) == NULL) { in mptscsih_abort()
1701 ioc = hd->ioc; in mptscsih_abort()
1768 retval = mptscsih_IssueTaskMgmt(hd, in mptscsih_abort()
1806 MPT_SCSI_HOST *hd; in mptscsih_dev_reset() local
1813 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_dev_reset()
1819 ioc = hd->ioc; in mptscsih_dev_reset()
1830 retval = mptscsih_IssueTaskMgmt(hd, in mptscsih_dev_reset()
1858 MPT_SCSI_HOST *hd; in mptscsih_target_reset() local
1865 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_target_reset()
1871 ioc = hd->ioc; in mptscsih_target_reset()
1889 retval = mptscsih_IssueTaskMgmt(hd, in mptscsih_target_reset()
1918 MPT_SCSI_HOST *hd; in mptscsih_bus_reset() local
1925 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_bus_reset()
1931 ioc = hd->ioc; in mptscsih_bus_reset()
1942 retval = mptscsih_IssueTaskMgmt(hd, in mptscsih_bus_reset()
1968 MPT_SCSI_HOST * hd; in mptscsih_host_reset() local
1974 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_host_reset()
1981 mptscsih_flush_running_cmds(hd); in mptscsih_host_reset()
1983 ioc = hd->ioc; in mptscsih_host_reset()
2337 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_slave_destroy() local
2348 mptscsih_search_running_cmds(hd, vdevice); in mptscsih_slave_destroy()
2350 mptscsih_synchronize_cache(hd, vdevice); in mptscsih_slave_destroy()
2366 MPT_SCSI_HOST *hd = shost_priv(sdev->host); in mptscsih_change_queue_depth() local
2370 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_change_queue_depth()
2408 MPT_SCSI_HOST *hd = shost_priv(sh); in mptscsih_slave_configure() local
2409 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_slave_configure()
2455 mptscsih_copy_sense_data(struct scsi_cmnd *sc, MPT_SCSI_HOST *hd, MPT_FRAME_HDR *mf, SCSIIOReply_t … in mptscsih_copy_sense_data() argument
2460 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_copy_sense_data()
2597 MPT_SCSI_HOST *hd; in mptscsih_ioc_reset() local
2602 hd = shost_priv(ioc->sh); in mptscsih_ioc_reset()
2611 mptscsih_flush_running_cmds(hd); in mptscsih_ioc_reset()
2807 * @hd: MPT_SCSI_HOST pointer
2825 mptscsih_do_cmd(MPT_SCSI_HOST *hd, INTERNAL_CMD *io) in mptscsih_do_cmd() argument
2834 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_do_cmd()
3051 * @hd: Pointer to a SCSI HOST structure
3059 mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice) in mptscsih_synchronize_cache() argument
3087 mptscsih_do_cmd(hd, &iocmd); in mptscsih_synchronize_cache()
3095 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_version_fw_show() local
3096 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_version_fw_show()
3111 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_version_bios_show() local
3112 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_version_bios_show()
3127 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_version_mpi_show() local
3128 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_version_mpi_show()
3140 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_version_product_show() local
3141 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_version_product_show()
3154 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_version_nvdata_persistent_show() local
3155 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_version_nvdata_persistent_show()
3168 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_version_nvdata_default_show() local
3169 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_version_nvdata_default_show()
3181 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_board_name_show() local
3182 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_board_name_show()
3193 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_board_assembly_show() local
3194 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_board_assembly_show()
3206 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_board_tracer_show() local
3207 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_board_tracer_show()
3219 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_io_delay_show() local
3220 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_io_delay_show()
3232 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_device_delay_show() local
3233 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_device_delay_show()
3245 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_debug_level_show() local
3246 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_debug_level_show()
3255 MPT_SCSI_HOST *hd = shost_priv(host); in mptscsih_debug_level_store() local
3256 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_debug_level_store()