Lines Matching defs:SDp
106 static inline char *NCR_700_get_sense_cmnd(struct scsi_device *SDp)
108 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata;
114 NCR_700_set_depth(struct scsi_device *SDp, __u8 depth)
116 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata;
121 NCR_700_get_depth(struct scsi_device *SDp)
123 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata;
128 NCR_700_is_flag_set(struct scsi_device *SDp, __u32 flag)
130 return (spi_flags(SDp->sdev_target) & flag) == flag;
133 NCR_700_is_flag_clear(struct scsi_device *SDp, __u32 flag)
135 return (spi_flags(SDp->sdev_target) & flag) == 0;
138 NCR_700_set_flag(struct scsi_device *SDp, __u32 flag)
140 spi_flags(SDp->sdev_target) |= flag;
143 NCR_700_clear_flag(struct scsi_device *SDp, __u32 flag)
145 spi_flags(SDp->sdev_target) &= ~flag;
155 NCR_700_get_tag_neg_state(struct scsi_device *SDp)
157 return (enum NCR_700_tag_neg_state)((spi_flags(SDp->sdev_target)>>20) & 0x3);
161 NCR_700_set_tag_neg_state(struct scsi_device *SDp,
165 spi_flags(SDp->sdev_target) &= ~(0x3 << 20);
166 spi_flags(SDp->sdev_target) |= ((__u32)state) << 20;