Lines Matching refs:SDp

262 NCR_700_get_SXFER(struct scsi_device *SDp)  in NCR_700_get_SXFER()  argument
265 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_get_SXFER()
268 spi_offset(SDp->sdev_target), in NCR_700_get_SXFER()
269 spi_period(SDp->sdev_target)); in NCR_700_get_SXFER()
1106 struct scsi_device *SDp; in process_script_interrupt() local
1114 SDp = __scsi_device_lookup(host, 0, reselection_id, lun); in process_script_interrupt()
1115 if(unlikely(SDp == NULL)) { in process_script_interrupt()
1123 SCp = scsi_host_find_tag(SDp->host, hostdata->msgin[2]); in process_script_interrupt()
1131 DDEBUG(KERN_DEBUG, SDp, in process_script_interrupt()
1135 struct NCR_700_Device_Parameters *p = SDp->hostdata; in process_script_interrupt()
1139 sdev_printk(KERN_ERR, SDp, in process_script_interrupt()
1539 struct scsi_device *SDp; in NCR_700_intr() local
1550 __shost_for_each_device(SDp, host) in NCR_700_intr()
1551 NCR_700_clear_flag(SDp, ~0); in NCR_700_intr()
2026 NCR_700_slave_alloc(struct scsi_device *SDp) in NCR_700_slave_alloc() argument
2028 SDp->hostdata = kzalloc(sizeof(struct NCR_700_Device_Parameters), in NCR_700_slave_alloc()
2031 if (!SDp->hostdata) in NCR_700_slave_alloc()
2038 NCR_700_slave_configure(struct scsi_device *SDp) in NCR_700_slave_configure() argument
2041 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_slave_configure()
2044 if(SDp->tagged_supported) { in NCR_700_slave_configure()
2045 scsi_change_queue_depth(SDp, NCR_700_DEFAULT_TAGS); in NCR_700_slave_configure()
2046 NCR_700_set_tag_neg_state(SDp, NCR_700_START_TAG_NEGOTIATION); in NCR_700_slave_configure()
2051 if (!spi_initial_dv(SDp->sdev_target)) in NCR_700_slave_configure()
2052 spi_dv_device(SDp); in NCR_700_slave_configure()
2054 spi_offset(SDp->sdev_target) = 0; in NCR_700_slave_configure()
2055 spi_period(SDp->sdev_target) = 0; in NCR_700_slave_configure()
2061 NCR_700_slave_destroy(struct scsi_device *SDp) in NCR_700_slave_destroy() argument
2063 kfree(SDp->hostdata); in NCR_700_slave_destroy()
2064 SDp->hostdata = NULL; in NCR_700_slave_destroy()
2068 NCR_700_change_queue_depth(struct scsi_device *SDp, int depth) in NCR_700_change_queue_depth() argument
2072 return scsi_change_queue_depth(SDp, depth); in NCR_700_change_queue_depth()
2078 struct scsi_device *SDp = to_scsi_device(dev); in NCR_700_show_active_tags() local
2080 return snprintf(buf, 20, "%d\n", NCR_700_get_depth(SDp)); in NCR_700_show_active_tags()