Lines Matching defs:scsi_device

76 struct scsi_device {  struct
77 struct Scsi_Host *host;
78 struct request_queue *request_queue;
81 struct list_head siblings; /* list of all devices on this host */
82 struct list_head same_target_siblings; /* just the devices sharing same target id */
84 atomic_t device_busy; /* commands actually active on LLDD */
85 atomic_t device_blocked; /* Device returned QUEUE_FULL. */
87 spinlock_t list_lock;
88 struct list_head cmd_list; /* queue of in use SCSI Command structures */
89 struct list_head starved_entry;
90 struct scsi_cmnd *current_cmnd; /* currently active command */
91 unsigned short queue_depth; /* How deep of a queue we want */
92 unsigned short max_queue_depth; /* max queue depth */
93 unsigned short last_queue_full_depth; /* These two are used by */
94 unsigned short last_queue_full_count; /* scsi_track_queue_full() */
95 unsigned long last_queue_full_time; /* last queue full time */
96 unsigned long queue_ramp_up_period; /* ramp up period in jiffies */
99 unsigned long last_queue_ramp_up; /* last queue ramp up time */
101 unsigned int id, channel;
102 u64 lun;
103 unsigned int manufacturer; /* Manufacturer of device, for using
105 unsigned sector_size; /* size in bytes */
107 void *hostdata; /* available to low-level driver */
108 char type;
109 char scsi_level;
110 char inq_periph_qual; /* PQ from INQUIRY data */
111 unsigned char inquiry_len; /* valid bytes in 'inquiry' */
112 unsigned char * inquiry; /* INQUIRY response data */
113 const char * vendor; /* [back_compat] point into 'inquiry' ... */
114 const char * model; /* ... after scan; point to static string */
115 const char * rev; /* ... "nullnullnullnull" before scan */
118 int vpd_pg83_len;
119 unsigned char *vpd_pg83;
120 int vpd_pg80_len;
121 unsigned char *vpd_pg80;
122 unsigned char current_tag; /* current tag */
123 struct scsi_target *sdev_target; /* used only for single_lun */
125 unsigned int sdev_bflags; /* black/white flags as also found in
129 unsigned int eh_timeout; /* Error handling timeout */
130 unsigned removable:1;
131 unsigned changed:1; /* Data invalid due to media change */
132 unsigned busy:1; /* Used to prevent races */
133 unsigned lockable:1; /* Able to prevent media removal */
134 unsigned locked:1; /* Media removal disabled */
135 unsigned borken:1; /* Tell the Seagate driver to be
137 unsigned disconnect:1; /* can disconnect */
138 unsigned soft_reset:1; /* Uses soft reset option */
139 unsigned sdtr:1; /* Device supports SDTR messages */
140 unsigned wdtr:1; /* Device supports WDTR messages */
141 unsigned ppr:1; /* Device supports PPR messages */
142 unsigned tagged_supported:1; /* Supports SCSI-II tagged queuing */
143 unsigned simple_tags:1; /* simple queue tag messages are enabled */
144 unsigned was_reset:1; /* There was a bus reset on the bus for
146 unsigned expecting_cc_ua:1; /* Expecting a CHECK_CONDITION/UNIT_ATTN
148 unsigned use_10_for_rw:1; /* first try 10-byte read / write */
149 unsigned use_10_for_ms:1; /* first try 10-byte mode sense/select */
150 unsigned no_report_opcodes:1; /* no REPORT SUPPORTED OPERATION CODES */
151 unsigned no_write_same:1; /* no WRITE SAME command */
152 unsigned use_16_for_rw:1; /* Use read/write(16) over read/write(10) */
153 unsigned skip_ms_page_8:1; /* do not use MODE SENSE page 0x08 */
154 unsigned skip_ms_page_3f:1; /* do not use MODE SENSE page 0x3f */
155 unsigned skip_vpd_pages:1; /* do not read VPD pages */
156 unsigned try_vpd_pages:1; /* attempt to read VPD pages */
157 unsigned use_192_bytes_for_3f:1; /* ask for 192 bytes from page 0x3f */
158 unsigned no_start_on_add:1; /* do not issue start on add */
159 unsigned allow_restart:1; /* issue START_UNIT in error handler */
160 unsigned manage_start_stop:1; /* Let HLD (sd) manage start/stop */
161 unsigned start_stop_pwr_cond:1; /* Set power cond. in START_STOP_UNIT */
162 unsigned no_uld_attach:1; /* disable connecting to upper level drivers */
163 unsigned select_no_atn:1;
164 unsigned fix_capacity:1; /* READ_CAPACITY is too high by 1 */
165 unsigned guess_capacity:1; /* READ_CAPACITY might be too high by 1 */
166 unsigned retry_hwerror:1; /* Retry HARDWARE_ERROR */
167 unsigned last_sector_bug:1; /* do not use multisector accesses on
169 unsigned no_read_disc_info:1; /* Avoid READ_DISC_INFO cmds */
170 unsigned no_read_capacity_16:1; /* Avoid READ_CAPACITY_16 cmds */
171 unsigned try_rc_10_first:1; /* Try READ_CAPACACITY_10 first */
172 unsigned is_visible:1; /* is the device visible in sysfs */
173 unsigned wce_default_on:1; /* Cache is ON by default */
174 unsigned no_dif:1; /* T10 PI (DIF) should be disabled */
175 unsigned broken_fua:1; /* Don't set FUA bit */
199 enum scsi_device_state sdev_state; argument
211 int (*check_sense)(struct scsi_device *, struct scsi_sense_hdr *); argument