Lines Matching refs:hd

100  *	@hd: Pointer to a SCSI Host Structure
108 mptspi_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target,
111 MPT_ADAPTER *ioc = hd->ioc;
244 * @hd: Pointer to a SCSI Host Structure
254 mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel , u8 id)
256 MPT_ADAPTER *ioc = hd->ioc;
316 * @hd: Pointer to MPT_SCSI_HOST structure
328 mptspi_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget,
343 if ((sdev->type == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te)) {
347 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id);
358 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id);
362 mptspi_setTargetNegoParms(hd, vtarget, sdev);
367 * @hd: Pointer to a SCSI HOST structure
376 mptspi_is_raid(struct _MPT_SCSI_HOST *hd, u32 id)
379 MPT_ADAPTER *ioc = hd->ioc;
400 struct _MPT_SCSI_HOST *hd = shost_priv(shost);
404 if (hd == NULL)
407 ioc = hd->ioc;
431 mptspi_is_raid(hd, starget->id)) {
465 * @hd: Pointer to a SCSI HOST structure
471 mptspi_print_write_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii)
473 ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d Requested = 0x%08x"
475 hd->ioc->name, starget->id, ii,
490 * @hd: Pointer to a SCSI HOST structure
496 mptspi_print_read_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii)
498 ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d Read = 0x%08x"
500 hd->ioc->name, starget->id, ii,
517 struct _MPT_SCSI_HOST *hd = shost_priv(shost);
518 struct _MPT_ADAPTER *ioc = hd->ioc;
528 mptspi_is_raid(hd, starget->id))
568 mptspi_print_read_nego(hd, starget, le32_to_cpu(spi_dev_pg0->NegotiatedParameters));
618 mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id)
620 MPT_ADAPTER *ioc = hd->ioc;
631 dfailprintk(hd->ioc, printk(MYIOC_s_WARN_FMT
683 static void mptspi_dv_device(struct _MPT_SCSI_HOST *hd,
687 MPT_ADAPTER *ioc = hd->ioc;
691 mptspi_is_raid(hd, sdev->id))
696 mptscsih_quiesce_raid(hd, 1, vtarget->channel, vtarget->id) < 0) {
702 hd->spi_pending |= (1 << sdev->id);
704 hd->spi_pending &= ~(1 << sdev->id);
707 mptscsih_quiesce_raid(hd, 0, vtarget->channel, vtarget->id) < 0)
718 MPT_SCSI_HOST *hd = shost_priv(sdev->host);
722 MPT_ADAPTER *ioc = hd->ioc;
751 struct _MPT_SCSI_HOST *hd = shost_priv(sdev->host);
755 mptspi_initTarget(hd, vtarget, sdev);
762 ddvprintk(hd->ioc, printk(MYIOC_s_DEBUG_FMT "id=%d min_period=0x%02x"
763 " max_offset=0x%02x max_width=%d\n", hd->ioc->name,
769 !(mptspi_is_raid(hd, sdev->id))) &&
771 mptspi_dv_device(hd, sdev);
779 struct _MPT_SCSI_HOST *hd = shost_priv(shost);
781 MPT_ADAPTER *ioc = hd->ioc;
853 struct _MPT_SCSI_HOST *hd = shost_priv(shost);
854 struct _MPT_ADAPTER *ioc = hd->ioc;
868 mptspi_is_raid(hd, starget->id))
920 mptspi_print_write_nego(hd, starget, le32_to_cpu(pg1->RequestedParameters));
1063 struct _MPT_SCSI_HOST *hd = shost_priv(shost);
1068 hd->ioc->spi_data.noQas)
1106 struct _MPT_SCSI_HOST *hd;
1114 struct _MPT_SCSI_HOST *hd = wqw->hd;
1115 MPT_ADAPTER *ioc = hd->ioc;
1143 mptspi_dv_device(hd, sdev);
1151 static void mpt_dv_raid(struct _MPT_SCSI_HOST *hd, int disk)
1154 MPT_ADAPTER *ioc = hd->ioc;
1163 wqw->hd = hd;
1173 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
1178 if (hd && event == MPI_EVENT_INTEGRATED_RAID) {
1184 mpt_dv_raid(hd, disk);
1193 struct _MPT_SCSI_HOST *hd =
1195 return ((mptspi_is_raid(hd, starget->id)) &&
1260 struct _MPT_SCSI_HOST *hd = wqw->hd;
1265 MPT_ADAPTER *ioc = hd->ioc;
1269 if (hd->spi_pending) {
1271 if (hd->spi_pending & (1 << sdev->id))
1282 mptspi_dv_device(hd, sdev);
1287 mptspi_dv_renegotiate(struct _MPT_SCSI_HOST *hd)
1295 wqw->hd = hd;
1316 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
1318 mptspi_dv_renegotiate(hd);
1332 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
1336 mptspi_dv_renegotiate(hd);
1355 MPT_SCSI_HOST *hd;
1490 hd = shost_priv(sh);
1491 hd->ioc = ioc;
1513 hd->last_queue_full = 0;
1514 hd->spi_pending = 0;
1532 mptscsih_IssueTaskMgmt(hd,