Lines Matching refs:scsi_device
107 struct scsi_device { struct
260 container_of(d, struct scsi_device, sdev_gendev) argument
262 container_of(d, struct scsi_device, sdev_dev)
274 sdev_prefix_printk(const char *, const struct scsi_device *, const char *,
308 struct scsi_device *starget_sdev_user;
347 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target()
357 extern struct scsi_device *__scsi_add_device(struct Scsi_Host *,
362 extern void scsi_remove_device(struct scsi_device *);
364 void scsi_attach_vpd(struct scsi_device *sdev);
366 extern struct scsi_device *scsi_device_from_queue(struct request_queue *q);
367 extern int __must_check scsi_device_get(struct scsi_device *);
368 extern void scsi_device_put(struct scsi_device *);
369 extern struct scsi_device *scsi_device_lookup(struct Scsi_Host *,
371 extern struct scsi_device *__scsi_device_lookup(struct Scsi_Host *,
373 extern struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *,
375 extern struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *,
378 void (*fn)(struct scsi_device *, void *));
380 void (*fn)(struct scsi_device *,
384 extern struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *,
385 struct scsi_device *);
417 extern int scsi_change_queue_depth(struct scsi_device *, int);
418 extern int scsi_track_queue_full(struct scsi_device *, int);
420 extern int scsi_set_medium_removal(struct scsi_device *, char);
422 extern int scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage,
426 extern int scsi_mode_select(struct scsi_device *sdev, int pf, int sp,
430 extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout,
432 extern int scsi_get_vpd_page(struct scsi_device *, u8 page, unsigned char *buf,
434 extern int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
436 extern int scsi_device_set_state(struct scsi_device *sdev,
440 extern void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt);
441 extern void sdev_evt_send_simple(struct scsi_device *sdev,
443 extern int scsi_device_quiesce(struct scsi_device *sdev);
444 extern void scsi_device_resume(struct scsi_device *sdev);
458 extern int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
473 static inline int scsi_execute_req(struct scsi_device *sdev, in scsi_execute_req()
481 extern void sdev_disable_disk_events(struct scsi_device *sdev);
482 extern void sdev_enable_disk_events(struct scsi_device *sdev);
483 extern int scsi_vpd_lun_id(struct scsi_device *, char *, size_t);
484 extern int scsi_vpd_tpg_id(struct scsi_device *, int *);
487 extern int scsi_autopm_get_device(struct scsi_device *);
488 extern void scsi_autopm_put_device(struct scsi_device *);
490 static inline int scsi_autopm_get_device(struct scsi_device *d) { return 0; } in scsi_autopm_get_device()
491 static inline void scsi_autopm_put_device(struct scsi_device *d) {} in scsi_autopm_put_device()
494 static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) in scsi_device_reprobe()
499 static inline unsigned int sdev_channel(struct scsi_device *sdev) in sdev_channel()
504 static inline unsigned int sdev_id(struct scsi_device *sdev) in sdev_id()
515 static inline int scsi_device_online(struct scsi_device *sdev) in scsi_device_online()
521 static inline int scsi_device_blocked(struct scsi_device *sdev) in scsi_device_blocked()
526 static inline int scsi_device_created(struct scsi_device *sdev) in scsi_device_created()
532 int scsi_internal_device_block_nowait(struct scsi_device *sdev);
533 int scsi_internal_device_unblock_nowait(struct scsi_device *sdev,
537 static inline int scsi_device_sync(struct scsi_device *sdev) in scsi_device_sync()
541 static inline int scsi_device_wide(struct scsi_device *sdev) in scsi_device_wide()
545 static inline int scsi_device_dt(struct scsi_device *sdev) in scsi_device_dt()
549 static inline int scsi_device_dt_only(struct scsi_device *sdev) in scsi_device_dt_only()
555 static inline int scsi_device_ius(struct scsi_device *sdev) in scsi_device_ius()
561 static inline int scsi_device_qas(struct scsi_device *sdev) in scsi_device_qas()
567 static inline int scsi_device_enclosure(struct scsi_device *sdev) in scsi_device_enclosure()
572 static inline int scsi_device_protection(struct scsi_device *sdev) in scsi_device_protection()
580 static inline int scsi_device_tpgs(struct scsi_device *sdev) in scsi_device_tpgs()
593 static inline int scsi_device_supports_vpd(struct scsi_device *sdev) in scsi_device_supports_vpd()
610 static inline int scsi_device_busy(struct scsi_device *sdev) in scsi_device_busy()