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()
1094 struct scsi_device *SDp; in process_script_interrupt() local
1102 SDp = __scsi_device_lookup(host, 0, reselection_id, lun); in process_script_interrupt()
1103 if(unlikely(SDp == NULL)) { in process_script_interrupt()
1111 SCp = scsi_host_find_tag(SDp->host, hostdata->msgin[2]); in process_script_interrupt()
1119 DDEBUG(KERN_DEBUG, SDp, in process_script_interrupt()
1125 SCp = SDp->current_cmnd; in process_script_interrupt()
1127 sdev_printk(KERN_ERR, SDp, in process_script_interrupt()
1535 struct scsi_device *SDp; in NCR_700_intr() local
1546 __shost_for_each_device(SDp, host) in NCR_700_intr()
1547 NCR_700_clear_flag(SDp, ~0); in NCR_700_intr()
2037 NCR_700_slave_alloc(struct scsi_device *SDp) in NCR_700_slave_alloc() argument
2039 SDp->hostdata = kzalloc(sizeof(struct NCR_700_Device_Parameters), in NCR_700_slave_alloc()
2042 if (!SDp->hostdata) in NCR_700_slave_alloc()
2049 NCR_700_slave_configure(struct scsi_device *SDp) in NCR_700_slave_configure() argument
2052 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_slave_configure()
2055 if(SDp->tagged_supported) { in NCR_700_slave_configure()
2056 scsi_change_queue_depth(SDp, NCR_700_DEFAULT_TAGS); in NCR_700_slave_configure()
2057 NCR_700_set_tag_neg_state(SDp, NCR_700_START_TAG_NEGOTIATION); in NCR_700_slave_configure()
2062 if (!spi_initial_dv(SDp->sdev_target)) in NCR_700_slave_configure()
2063 spi_dv_device(SDp); in NCR_700_slave_configure()
2065 spi_offset(SDp->sdev_target) = 0; in NCR_700_slave_configure()
2066 spi_period(SDp->sdev_target) = 0; in NCR_700_slave_configure()
2072 NCR_700_slave_destroy(struct scsi_device *SDp) in NCR_700_slave_destroy() argument
2074 kfree(SDp->hostdata); in NCR_700_slave_destroy()
2075 SDp->hostdata = NULL; in NCR_700_slave_destroy()
2079 NCR_700_change_queue_depth(struct scsi_device *SDp, int depth) in NCR_700_change_queue_depth() argument
2083 return scsi_change_queue_depth(SDp, depth); in NCR_700_change_queue_depth()
2089 struct scsi_device *SDp = to_scsi_device(dev); in NCR_700_show_active_tags() local
2091 return snprintf(buf, 20, "%d\n", NCR_700_get_depth(SDp)); in NCR_700_show_active_tags()