Lines Matching refs:Scsi_Host
20 struct Scsi_Host;
87 int (* queuecommand)(struct Scsi_Host *, struct scsi_cmnd *);
97 void (*commit_rqs)(struct Scsi_Host *, u16);
109 const char *(*info)(struct Scsi_Host *);
131 int (*init_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
132 int (*exit_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
261 int (* scan_finished)(struct Scsi_Host *, unsigned long);
270 void (* scan_start)(struct Scsi_Host *);
291 void (* map_queues)(struct Scsi_Host *shost);
301 int (* mq_poll)(struct Scsi_Host *shost, unsigned int queue_num);
336 int (*show_info)(struct seq_file *, struct Scsi_Host *);
337 int (*write_info)(struct Scsi_Host *, char *, int);
362 int (*host_reset)(struct Scsi_Host *shost, int reset_type);
509 int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd) \
535 struct Scsi_Host { struct
723 container_of(d, struct Scsi_Host, shost_dev) argument
728 static inline void *shost_priv(struct Scsi_Host *shost) in shost_priv()
735 static inline struct Scsi_Host *dev_to_shost(struct device *dev) in dev_to_shost()
742 return container_of(dev, struct Scsi_Host, shost_gendev); in dev_to_shost()
745 static inline int scsi_host_in_recovery(struct Scsi_Host *shost) in scsi_host_in_recovery()
753 extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *);
754 extern void scsi_flush_work(struct Scsi_Host *);
756 extern struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *, int);
757 extern int __must_check scsi_add_host_with_dma(struct Scsi_Host *,
766 extern void scsi_scan_host(struct Scsi_Host *);
769 extern void scsi_remove_host(struct Scsi_Host *);
770 extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *);
771 extern int scsi_host_busy(struct Scsi_Host *shost);
772 extern void scsi_host_put(struct Scsi_Host *t);
773 extern struct Scsi_Host *scsi_host_lookup(unsigned int hostnum);
775 extern void scsi_host_complete_all_commands(struct Scsi_Host *shost,
778 static inline int __must_check scsi_add_host(struct Scsi_Host *host, in scsi_add_host()
784 static inline struct device *scsi_get_device(struct Scsi_Host *shost) in scsi_get_device()
793 static inline int scsi_host_scan_allowed(struct Scsi_Host *shost) in scsi_host_scan_allowed()
799 extern void scsi_unblock_requests(struct Scsi_Host *);
800 extern void scsi_block_requests(struct Scsi_Host *);
801 extern int scsi_host_block(struct Scsi_Host *shost);
802 extern int scsi_host_unblock(struct Scsi_Host *shost, int new_state);
804 void scsi_host_busy_iter(struct Scsi_Host *,
832 static inline void scsi_host_set_prot(struct Scsi_Host *shost, unsigned int mask) in scsi_host_set_prot()
837 static inline unsigned int scsi_host_get_prot(struct Scsi_Host *shost) in scsi_host_get_prot()
842 static inline int scsi_host_prot_dma(struct Scsi_Host *shost) in scsi_host_prot_dma()
847 static inline unsigned int scsi_host_dif_capable(struct Scsi_Host *shost, unsigned int target_type) in scsi_host_dif_capable()
860 static inline unsigned int scsi_host_dix_capable(struct Scsi_Host *shost, unsigned int target_type) in scsi_host_dix_capable()
890 static inline void scsi_host_set_guard(struct Scsi_Host *shost, unsigned char type) in scsi_host_set_guard()
895 static inline unsigned char scsi_host_get_guard(struct Scsi_Host *shost) in scsi_host_get_guard()
900 extern int scsi_host_set_state(struct Scsi_Host *, enum scsi_host_state);