• 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/

Lines Matching refs:SDp

277 NCR_700_get_SXFER(struct scsi_device *SDp)
280 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0];
283 spi_offset(SDp->sdev_target),
284 spi_period(SDp->sdev_target));
1100 struct scsi_device *SDp;
1108 SDp = __scsi_device_lookup(host, 0, reselection_id, lun);
1109 if(unlikely(SDp == NULL)) {
1115 struct scsi_cmnd *SCp = scsi_find_tag(SDp, hostdata->msgin[2]);
1123 DDEBUG(KERN_DEBUG, SDp,
1127 struct scsi_cmnd *SCp = scsi_find_tag(SDp, SCSI_NO_TAG);
1129 sdev_printk(KERN_ERR, SDp,
1535 struct scsi_device *SDp;
1546 __shost_for_each_device(SDp, host)
1547 NCR_700_clear_flag(SDp, ~0);
2007 NCR_700_slave_alloc(struct scsi_device *SDp)
2009 SDp->hostdata = kzalloc(sizeof(struct NCR_700_Device_Parameters),
2012 if (!SDp->hostdata)
2019 NCR_700_slave_configure(struct scsi_device *SDp)
2022 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0];
2025 if(SDp->tagged_supported) {
2026 scsi_set_tag_type(SDp, MSG_ORDERED_TAG);
2027 scsi_activate_tcq(SDp, NCR_700_DEFAULT_TAGS);
2028 NCR_700_set_tag_neg_state(SDp, NCR_700_START_TAG_NEGOTIATION);
2031 scsi_adjust_queue_depth(SDp, 0, SDp->host->cmd_per_lun);
2035 if (!spi_initial_dv(SDp->sdev_target))
2036 spi_dv_device(SDp);
2038 spi_offset(SDp->sdev_target) = 0;
2039 spi_period(SDp->sdev_target) = 0;
2045 NCR_700_slave_destroy(struct scsi_device *SDp)
2047 kfree(SDp->hostdata);
2048 SDp->hostdata = NULL;
2052 NCR_700_change_queue_depth(struct scsi_device *SDp, int depth, int reason)
2060 scsi_adjust_queue_depth(SDp, scsi_get_tag_type(SDp), depth);
2064 static int NCR_700_change_queue_type(struct scsi_device *SDp, int tag_type)
2066 int change_tag = ((tag_type ==0 && scsi_get_tag_type(SDp) != 0)
2067 || (tag_type != 0 && scsi_get_tag_type(SDp) == 0));
2069 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0];
2071 scsi_set_tag_type(SDp, tag_type);
2078 scsi_target_quiesce(SDp->sdev_target);
2083 scsi_deactivate_tcq(SDp, SDp->host->cmd_per_lun);
2084 hostdata->tag_negotiated &= ~(1 << sdev_id(SDp));
2088 scsi_activate_tcq(SDp, SDp->queue_depth);
2090 NCR_700_set_tag_neg_state(SDp, NCR_700_START_TAG_NEGOTIATION);
2093 scsi_target_resume(SDp->sdev_target);
2101 struct scsi_device *SDp = to_scsi_device(dev);
2103 return snprintf(buf, 20, "%d\n", NCR_700_get_depth(SDp));