Lines Matching full:hd
100 * @hd: Pointer to a SCSI Host Structure
108 mptspi_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target, in mptspi_setTargetNegoParms() argument
111 MPT_ADAPTER *ioc = hd->ioc; in mptspi_setTargetNegoParms()
244 * @hd: Pointer to a SCSI Host Structure
254 mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel , u8 id) in mptspi_writeIOCPage4() argument
256 MPT_ADAPTER *ioc = hd->ioc; in mptspi_writeIOCPage4()
316 * @hd: Pointer to MPT_SCSI_HOST structure
328 mptspi_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget, in mptspi_initTarget() argument
343 if ((sdev->type == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te)) { in mptspi_initTarget()
347 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget()
358 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget()
362 mptspi_setTargetNegoParms(hd, vtarget, sdev); in mptspi_initTarget()
367 * @hd: Pointer to a SCSI HOST structure
376 mptspi_is_raid(struct _MPT_SCSI_HOST *hd, u32 id) in mptspi_is_raid() argument
379 MPT_ADAPTER *ioc = hd->ioc; in mptspi_is_raid()
400 struct _MPT_SCSI_HOST *hd = shost_priv(shost); in mptspi_target_alloc() local
404 if (hd == NULL) in mptspi_target_alloc()
407 ioc = hd->ioc; in mptspi_target_alloc()
431 mptspi_is_raid(hd, starget->id)) { in mptspi_target_alloc()
465 * @hd: Pointer to a SCSI HOST structure
471 mptspi_print_write_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii) in mptspi_print_write_nego() argument
473 ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d Requested = 0x%08x" in mptspi_print_write_nego()
475 hd->ioc->name, starget->id, ii, in mptspi_print_write_nego()
490 * @hd: Pointer to a SCSI HOST structure
496 mptspi_print_read_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii) in mptspi_print_read_nego() argument
498 ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d Read = 0x%08x" in mptspi_print_read_nego()
500 hd->ioc->name, starget->id, ii, in mptspi_print_read_nego()
517 struct _MPT_SCSI_HOST *hd = shost_priv(shost); in mptspi_read_spi_device_pg0() local
518 struct _MPT_ADAPTER *ioc = hd->ioc; in mptspi_read_spi_device_pg0()
528 mptspi_is_raid(hd, starget->id)) in mptspi_read_spi_device_pg0()
568 mptspi_print_read_nego(hd, starget, le32_to_cpu(spi_dev_pg0->NegotiatedParameters)); in mptspi_read_spi_device_pg0()
618 mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id) in mptscsih_quiesce_raid() argument
620 MPT_ADAPTER *ioc = hd->ioc; in mptscsih_quiesce_raid()
631 dfailprintk(hd->ioc, printk(MYIOC_s_WARN_FMT in mptscsih_quiesce_raid()
683 static void mptspi_dv_device(struct _MPT_SCSI_HOST *hd, in mptspi_dv_device() argument
687 MPT_ADAPTER *ioc = hd->ioc; in mptspi_dv_device()
691 mptspi_is_raid(hd, sdev->id)) in mptspi_dv_device()
696 mptscsih_quiesce_raid(hd, 1, vtarget->channel, vtarget->id) < 0) { in mptspi_dv_device()
702 hd->spi_pending |= (1 << sdev->id); in mptspi_dv_device()
704 hd->spi_pending &= ~(1 << sdev->id); in mptspi_dv_device()
707 mptscsih_quiesce_raid(hd, 0, vtarget->channel, vtarget->id) < 0) in mptspi_dv_device()
718 MPT_SCSI_HOST *hd = shost_priv(sdev->host); in mptspi_slave_alloc() local
722 MPT_ADAPTER *ioc = hd->ioc; in mptspi_slave_alloc()
751 struct _MPT_SCSI_HOST *hd = shost_priv(sdev->host); in mptspi_slave_configure() local
755 mptspi_initTarget(hd, vtarget, sdev); in mptspi_slave_configure()
762 ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d min_period=0x%02x" in mptspi_slave_configure()
763 " max_offset=0x%02x max_width=%d\n", hd->ioc->name, in mptspi_slave_configure()
769 !(mptspi_is_raid(hd, sdev->id))) && in mptspi_slave_configure()
771 mptspi_dv_device(hd, sdev); in mptspi_slave_configure()
779 struct _MPT_SCSI_HOST *hd = shost_priv(shost); in mptspi_qcmd() local
781 MPT_ADAPTER *ioc = hd->ioc; in mptspi_qcmd()
854 struct _MPT_SCSI_HOST *hd = shost_priv(shost); in mptspi_write_spi_device_pg1() local
855 struct _MPT_ADAPTER *ioc = hd->ioc; in mptspi_write_spi_device_pg1()
869 mptspi_is_raid(hd, starget->id)) in mptspi_write_spi_device_pg1()
921 mptspi_print_write_nego(hd, starget, le32_to_cpu(pg1->RequestedParameters)); in mptspi_write_spi_device_pg1()
1064 struct _MPT_SCSI_HOST *hd = shost_priv(shost); in MPTSPI_SIMPLE_TRANSPORT_PARM() local
1069 hd->ioc->spi_data.noQas) in MPTSPI_SIMPLE_TRANSPORT_PARM()
1107 struct _MPT_SCSI_HOST *hd; member
1115 struct _MPT_SCSI_HOST *hd = wqw->hd; in mpt_work_wrapper() local
1116 MPT_ADAPTER *ioc = hd->ioc; in mpt_work_wrapper()
1144 mptspi_dv_device(hd, sdev); in mpt_work_wrapper()
1152 static void mpt_dv_raid(struct _MPT_SCSI_HOST *hd, int disk) in mpt_dv_raid() argument
1155 MPT_ADAPTER *ioc = hd->ioc; in mpt_dv_raid()
1164 wqw->hd = hd; in mpt_dv_raid()
1174 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_event_process() local
1179 if (hd && event == MPI_EVENT_INTEGRATED_RAID) { in mptspi_event_process()
1185 mpt_dv_raid(hd, disk); in mptspi_event_process()
1194 struct _MPT_SCSI_HOST *hd = in mptspi_deny_binding() local
1196 return ((mptspi_is_raid(hd, starget->id)) && in mptspi_deny_binding()
1261 struct _MPT_SCSI_HOST *hd = wqw->hd; in mptspi_dv_renegotiate_work() local
1266 MPT_ADAPTER *ioc = hd->ioc; in mptspi_dv_renegotiate_work()
1270 if (hd->spi_pending) { in mptspi_dv_renegotiate_work()
1272 if (hd->spi_pending & (1 << sdev->id)) in mptspi_dv_renegotiate_work()
1283 mptspi_dv_device(hd, sdev); in mptspi_dv_renegotiate_work()
1288 mptspi_dv_renegotiate(struct _MPT_SCSI_HOST *hd) in mptspi_dv_renegotiate() argument
1296 wqw->hd = hd; in mptspi_dv_renegotiate()
1317 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_ioc_reset() local
1319 mptspi_dv_renegotiate(hd); in mptspi_ioc_reset()
1333 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_resume() local
1337 mptspi_dv_renegotiate(hd); in mptspi_resume()
1356 MPT_SCSI_HOST *hd; in mptspi_probe() local
1491 hd = shost_priv(sh); in mptspi_probe()
1492 hd->ioc = ioc; in mptspi_probe()
1514 hd->last_queue_full = 0; in mptspi_probe()
1515 hd->spi_pending = 0; in mptspi_probe()
1533 mptscsih_IssueTaskMgmt(hd, in mptspi_probe()