Lines Matching refs:SDp
275 NCR_700_get_SXFER(struct scsi_device *SDp) in NCR_700_get_SXFER() argument
278 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_get_SXFER()
281 spi_offset(SDp->sdev_target), in NCR_700_get_SXFER()
282 spi_period(SDp->sdev_target)); in NCR_700_get_SXFER()
1095 struct scsi_device *SDp; in process_script_interrupt() local
1103 SDp = __scsi_device_lookup(host, 0, reselection_id, lun); in process_script_interrupt()
1104 if(unlikely(SDp == NULL)) { in process_script_interrupt()
1110 struct scsi_cmnd *SCp = scsi_find_tag(SDp, hostdata->msgin[2]); in process_script_interrupt()
1118 DDEBUG(KERN_DEBUG, SDp, in process_script_interrupt()
1122 struct scsi_cmnd *SCp = scsi_find_tag(SDp, SCSI_NO_TAG); in process_script_interrupt()
1124 sdev_printk(KERN_ERR, SDp, in process_script_interrupt()
1532 struct scsi_device *SDp; in NCR_700_intr() local
1543 __shost_for_each_device(SDp, host) in NCR_700_intr()
1544 NCR_700_clear_flag(SDp, ~0); in NCR_700_intr()
2034 NCR_700_slave_alloc(struct scsi_device *SDp) in NCR_700_slave_alloc() argument
2036 SDp->hostdata = kzalloc(sizeof(struct NCR_700_Device_Parameters), in NCR_700_slave_alloc()
2039 if (!SDp->hostdata) in NCR_700_slave_alloc()
2046 NCR_700_slave_configure(struct scsi_device *SDp) in NCR_700_slave_configure() argument
2049 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_slave_configure()
2052 if(SDp->tagged_supported) { in NCR_700_slave_configure()
2053 scsi_change_queue_depth(SDp, NCR_700_DEFAULT_TAGS); in NCR_700_slave_configure()
2054 NCR_700_set_tag_neg_state(SDp, NCR_700_START_TAG_NEGOTIATION); in NCR_700_slave_configure()
2059 if (!spi_initial_dv(SDp->sdev_target)) in NCR_700_slave_configure()
2060 spi_dv_device(SDp); in NCR_700_slave_configure()
2062 spi_offset(SDp->sdev_target) = 0; in NCR_700_slave_configure()
2063 spi_period(SDp->sdev_target) = 0; in NCR_700_slave_configure()
2069 NCR_700_slave_destroy(struct scsi_device *SDp) in NCR_700_slave_destroy() argument
2071 kfree(SDp->hostdata); in NCR_700_slave_destroy()
2072 SDp->hostdata = NULL; in NCR_700_slave_destroy()
2076 NCR_700_change_queue_depth(struct scsi_device *SDp, int depth) in NCR_700_change_queue_depth() argument
2080 return scsi_change_queue_depth(SDp, depth); in NCR_700_change_queue_depth()
2086 struct scsi_device *SDp = to_scsi_device(dev); in NCR_700_show_active_tags() local
2088 return snprintf(buf, 20, "%d\n", NCR_700_get_depth(SDp)); in NCR_700_show_active_tags()