Lines Matching refs:Scsi_Host
22 struct Scsi_Host;
77 int (* queuecommand)(struct Scsi_Host *, struct scsi_cmnd *);
87 void (*commit_rqs)(struct Scsi_Host *, u16);
99 const char *(*info)(struct Scsi_Host *);
121 int (*init_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
122 int (*exit_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
251 int (* scan_finished)(struct Scsi_Host *, unsigned long);
260 void (* scan_start)(struct Scsi_Host *);
281 int (* map_queues)(struct Scsi_Host *shost);
291 int (* mq_poll)(struct Scsi_Host *shost, unsigned int queue_num);
326 int (*show_info)(struct seq_file *, struct Scsi_Host *);
327 int (*write_info)(struct Scsi_Host *, char *, int);
352 int (*host_reset)(struct Scsi_Host *shost, int reset_type);
520 int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd) \
546 struct Scsi_Host { struct
730 container_of(d, struct Scsi_Host, shost_dev) argument
735 static inline void *shost_priv(struct Scsi_Host *shost) in shost_priv()
742 static inline struct Scsi_Host *dev_to_shost(struct device *dev) in dev_to_shost()
749 return container_of(dev, struct Scsi_Host, shost_gendev); in dev_to_shost()
752 static inline int scsi_host_in_recovery(struct Scsi_Host *shost) in scsi_host_in_recovery()
760 extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *);
761 extern void scsi_flush_work(struct Scsi_Host *);
763 extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int);
764 extern int __must_check scsi_add_host_with_dma(struct Scsi_Host *,
767 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 short);
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 *,
817 extern struct scsi_device *scsi_get_host_dev(struct Scsi_Host *);
842 static inline void scsi_host_set_prot(struct Scsi_Host *shost, unsigned int mask) in scsi_host_set_prot()
847 static inline unsigned int scsi_host_get_prot(struct Scsi_Host *shost) in scsi_host_get_prot()
852 static inline int scsi_host_prot_dma(struct Scsi_Host *shost) in scsi_host_prot_dma()
857 static inline unsigned int scsi_host_dif_capable(struct Scsi_Host *shost, unsigned int target_type) in scsi_host_dif_capable()
870 static inline unsigned int scsi_host_dix_capable(struct Scsi_Host *shost, unsigned int target_type) in scsi_host_dix_capable()
900 static inline void scsi_host_set_guard(struct Scsi_Host *shost, unsigned char type) in scsi_host_set_guard()
905 static inline unsigned char scsi_host_get_guard(struct Scsi_Host *shost) in scsi_host_get_guard()
910 extern int scsi_host_set_state(struct Scsi_Host *, enum scsi_host_state);