Lines Matching defs:scsi_host_template
31 struct scsi_host_template { struct
40 unsigned int cmd_size;
76 int (* queuecommand)(struct Scsi_Host *, struct scsi_cmnd *);
86 void (*commit_rqs)(struct Scsi_Host *, u16);
88 struct module *module;
89 const char *name;
98 const char *(*info)(struct Scsi_Host *);
105 int (*ioctl)(struct scsi_device *dev, unsigned int cmd,
116 int (*compat_ioctl)(struct scsi_device *dev, unsigned int cmd,
120 int (*init_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
121 int (*exit_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
141 int (* eh_abort_handler)(struct scsi_cmnd *);
142 int (* eh_device_reset_handler)(struct scsi_cmnd *);
143 int (* eh_target_reset_handler)(struct scsi_cmnd *);
144 int (* eh_bus_reset_handler)(struct scsi_cmnd *);
145 int (* eh_host_reset_handler)(struct scsi_cmnd *);
173 int (* slave_alloc)(struct scsi_device *);
204 int (* slave_configure)(struct scsi_device *);
215 void (* slave_destroy)(struct scsi_device *);
229 int (* target_alloc)(struct scsi_target *);
239 void (* target_destroy)(struct scsi_target *);
250 int (* scan_finished)(struct Scsi_Host *, unsigned long);
259 void (* scan_start)(struct Scsi_Host *);
272 int (* change_queue_depth)(struct scsi_device *, int);
280 int (* map_queues)(struct Scsi_Host *shost);
290 int (* mq_poll)(struct Scsi_Host *shost, unsigned int queue_num);
297 bool (* dma_need_drain)(struct request *rq);
307 int (* bios_param)(struct scsi_device *, struct block_device *,
316 void (*unlock_native_capacity)(struct scsi_device *);
325 int (*show_info)(struct seq_file *, struct Scsi_Host *);
326 int (*write_info)(struct Scsi_Host *, char *, int);
335 enum blk_eh_timer_return (*eh_timed_out)(struct scsi_cmnd *);
341 bool (*eh_should_retry_cmd)(struct scsi_cmnd *scmd);
351 int (*host_reset)(struct Scsi_Host *shost, int reset_type);
359 const char *proc_name;
365 struct proc_dir_entry *proc_dir;
372 int can_queue;
381 int this_id;
387 unsigned short sg_tablesize;
388 unsigned short sg_prot_tablesize;
393 unsigned int max_sectors;
398 unsigned int max_segment_size;
404 unsigned long dma_boundary;
406 unsigned long virt_boundary_mask;
425 short cmd_per_lun;
431 unsigned char present;
434 int tag_alloc_policy;
439 unsigned track_queue_depth:1;
444 unsigned supported_mode:2;
449 unsigned emulated:1;
454 unsigned skip_settle_delay:1;
457 unsigned no_write_same:1;
460 unsigned host_tagset:1;
465 unsigned int max_host_blocked;
479 struct device_attribute **shost_attrs;
484 struct device_attribute **sdev_attrs;
490 const struct attribute_group **sdev_groups;
499 u64 vendor_id;
501 struct scsi_host_cmd_pool *cmd_pool;
504 int rpm_autosuspend_delay;