SDp 262 drivers/scsi/53c700.c NCR_700_get_SXFER(struct scsi_device *SDp) SDp 265 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; SDp 268 drivers/scsi/53c700.c spi_offset(SDp->sdev_target), SDp 269 drivers/scsi/53c700.c spi_period(SDp->sdev_target)); SDp 1079 drivers/scsi/53c700.c struct scsi_device *SDp; SDp 1087 drivers/scsi/53c700.c SDp = __scsi_device_lookup(host, 0, reselection_id, lun); SDp 1088 drivers/scsi/53c700.c if(unlikely(SDp == NULL)) { SDp 1096 drivers/scsi/53c700.c SCp = scsi_host_find_tag(SDp->host, hostdata->msgin[2]); SDp 1104 drivers/scsi/53c700.c DDEBUG(KERN_DEBUG, SDp, SDp 1108 drivers/scsi/53c700.c struct NCR_700_Device_Parameters *p = SDp->hostdata; SDp 1112 drivers/scsi/53c700.c sdev_printk(KERN_ERR, SDp, SDp 1520 drivers/scsi/53c700.c struct scsi_device *SDp; SDp 1531 drivers/scsi/53c700.c __shost_for_each_device(SDp, host) SDp 1532 drivers/scsi/53c700.c NCR_700_clear_flag(SDp, ~0); SDp 2009 drivers/scsi/53c700.c NCR_700_slave_alloc(struct scsi_device *SDp) SDp 2011 drivers/scsi/53c700.c SDp->hostdata = kzalloc(sizeof(struct NCR_700_Device_Parameters), SDp 2014 drivers/scsi/53c700.c if (!SDp->hostdata) SDp 2021 drivers/scsi/53c700.c NCR_700_slave_configure(struct scsi_device *SDp) SDp 2024 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; SDp 2027 drivers/scsi/53c700.c if(SDp->tagged_supported) { SDp 2028 drivers/scsi/53c700.c scsi_change_queue_depth(SDp, NCR_700_DEFAULT_TAGS); SDp 2029 drivers/scsi/53c700.c NCR_700_set_tag_neg_state(SDp, NCR_700_START_TAG_NEGOTIATION); SDp 2034 drivers/scsi/53c700.c if (!spi_initial_dv(SDp->sdev_target)) SDp 2035 drivers/scsi/53c700.c spi_dv_device(SDp); SDp 2037 drivers/scsi/53c700.c spi_offset(SDp->sdev_target) = 0; SDp 2038 drivers/scsi/53c700.c spi_period(SDp->sdev_target) = 0; SDp 2044 drivers/scsi/53c700.c NCR_700_slave_destroy(struct scsi_device *SDp) SDp 2046 drivers/scsi/53c700.c kfree(SDp->hostdata); SDp 2047 drivers/scsi/53c700.c SDp->hostdata = NULL; SDp 2051 drivers/scsi/53c700.c NCR_700_change_queue_depth(struct scsi_device *SDp, int depth) SDp 2055 drivers/scsi/53c700.c return scsi_change_queue_depth(SDp, depth); SDp 2061 drivers/scsi/53c700.c struct scsi_device *SDp = to_scsi_device(dev); SDp 2063 drivers/scsi/53c700.c return snprintf(buf, 20, "%d\n", NCR_700_get_depth(SDp)); SDp 108 drivers/scsi/53c700.h static inline char *NCR_700_get_sense_cmnd(struct scsi_device *SDp) SDp 110 drivers/scsi/53c700.h struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; SDp 116 drivers/scsi/53c700.h NCR_700_set_depth(struct scsi_device *SDp, __u8 depth) SDp 118 drivers/scsi/53c700.h struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; SDp 123 drivers/scsi/53c700.h NCR_700_get_depth(struct scsi_device *SDp) SDp 125 drivers/scsi/53c700.h struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; SDp 130 drivers/scsi/53c700.h NCR_700_is_flag_set(struct scsi_device *SDp, __u32 flag) SDp 132 drivers/scsi/53c700.h return (spi_flags(SDp->sdev_target) & flag) == flag; SDp 135 drivers/scsi/53c700.h NCR_700_is_flag_clear(struct scsi_device *SDp, __u32 flag) SDp 137 drivers/scsi/53c700.h return (spi_flags(SDp->sdev_target) & flag) == 0; SDp 140 drivers/scsi/53c700.h NCR_700_set_flag(struct scsi_device *SDp, __u32 flag) SDp 142 drivers/scsi/53c700.h spi_flags(SDp->sdev_target) |= flag; SDp 145 drivers/scsi/53c700.h NCR_700_clear_flag(struct scsi_device *SDp, __u32 flag) SDp 147 drivers/scsi/53c700.h spi_flags(SDp->sdev_target) &= ~flag; SDp 157 drivers/scsi/53c700.h NCR_700_get_tag_neg_state(struct scsi_device *SDp) SDp 159 drivers/scsi/53c700.h return (enum NCR_700_tag_neg_state)((spi_flags(SDp->sdev_target)>>20) & 0x3); SDp 163 drivers/scsi/53c700.h NCR_700_set_tag_neg_state(struct scsi_device *SDp, SDp 167 drivers/scsi/53c700.h spi_flags(SDp->sdev_target) &= ~(0x3 << 20); SDp 168 drivers/scsi/53c700.h spi_flags(SDp->sdev_target) |= ((__u32)state) << 20; SDp 293 drivers/scsi/st.c static char * st_incompatible(struct scsi_device* SDp) SDp 298 drivers/scsi/st.c if (!strncmp(rp->vendor, SDp->vendor, strlen(rp->vendor)) && SDp 299 drivers/scsi/st.c !strncmp(rp->model, SDp->model, strlen(rp->model)) && SDp 300 drivers/scsi/st.c !strncmp(rp->rev, SDp->rev, strlen(rp->rev))) { SDp 4257 drivers/scsi/st.c struct scsi_device *SDp = to_scsi_device(dev); SDp 4266 drivers/scsi/st.c if (SDp->type != TYPE_TAPE) SDp 4268 drivers/scsi/st.c if ((stp = st_incompatible(SDp))) { SDp 4269 drivers/scsi/st.c sdev_printk(KERN_INFO, SDp, SDp 4271 drivers/scsi/st.c sdev_printk(KERN_INFO, SDp, SDp 4276 drivers/scsi/st.c scsi_autopm_get_device(SDp); SDp 4277 drivers/scsi/st.c i = queue_max_segments(SDp->request_queue); SDp 4280 drivers/scsi/st.c buffer = new_tape_buffer((SDp->host)->unchecked_isa_dma, i); SDp 4282 drivers/scsi/st.c sdev_printk(KERN_ERR, SDp, SDp 4290 drivers/scsi/st.c sdev_printk(KERN_ERR, SDp, SDp 4297 drivers/scsi/st.c sdev_printk(KERN_ERR, SDp, SDp 4306 drivers/scsi/st.c if (!blk_get_queue(SDp->request_queue)) SDp 4308 drivers/scsi/st.c disk->queue = SDp->request_queue; SDp 4311 drivers/scsi/st.c tpnt->device = SDp; SDp 4312 drivers/scsi/st.c if (SDp->scsi_level <= 2) SDp 4324 drivers/scsi/st.c tpnt->restr_dma = (SDp->host)->unchecked_isa_dma; SDp 4325 drivers/scsi/st.c tpnt->use_pf = (SDp->scsi_level >= SCSI_2); SDp 4328 drivers/scsi/st.c tpnt->can_bsr = (SDp->scsi_level > 2 ? 1 : ST_IN_FILE_POS); /* BSR mandatory in SCSI3 */ SDp 4342 drivers/scsi/st.c tpnt->try_dio = try_direct_io && !SDp->host->unchecked_isa_dma; SDp 4388 drivers/scsi/st.c sdev_printk(KERN_ERR, SDp, SDp 4399 drivers/scsi/st.c scsi_autopm_put_device(SDp); SDp 4401 drivers/scsi/st.c sdev_printk(KERN_NOTICE, SDp, SDp 4403 drivers/scsi/st.c sdev_printk(KERN_INFO, SDp, "%s: try direct i/o: %s (alignment %d B)\n", SDp 4405 drivers/scsi/st.c queue_dma_alignment(SDp->request_queue) + 1); SDp 4424 drivers/scsi/st.c scsi_autopm_put_device(SDp);