Lines Matching refs:scsi_device
103 struct scsi_device { struct
251 container_of(d, struct scsi_device, sdev_gendev) argument
253 container_of(d, struct scsi_device, sdev_dev)
265 sdev_prefix_printk(const char *, const struct scsi_device *, const char *,
299 struct scsi_device *starget_sdev_user;
338 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target()
348 extern struct scsi_device *__scsi_add_device(struct Scsi_Host *,
353 extern void scsi_remove_device(struct scsi_device *);
355 void scsi_attach_vpd(struct scsi_device *sdev);
357 extern struct scsi_device *scsi_device_from_queue(struct request_queue *q);
358 extern int __must_check scsi_device_get(struct scsi_device *);
359 extern void scsi_device_put(struct scsi_device *);
360 extern struct scsi_device *scsi_device_lookup(struct Scsi_Host *,
362 extern struct scsi_device *__scsi_device_lookup(struct Scsi_Host *,
364 extern struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *,
366 extern struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *,
369 void (*fn)(struct scsi_device *, void *));
371 void (*fn)(struct scsi_device *,
375 extern struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *,
376 struct scsi_device *);
408 extern int scsi_change_queue_depth(struct scsi_device *, int);
409 extern int scsi_track_queue_full(struct scsi_device *, int);
411 extern int scsi_set_medium_removal(struct scsi_device *, char);
413 extern int scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage,
417 extern int scsi_mode_select(struct scsi_device *sdev, int pf, int sp,
422 extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout,
424 extern int scsi_get_vpd_page(struct scsi_device *, u8 page, unsigned char *buf,
426 extern int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
428 extern int scsi_device_set_state(struct scsi_device *sdev,
432 extern void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt);
433 extern void sdev_evt_send_simple(struct scsi_device *sdev,
435 extern int scsi_device_quiesce(struct scsi_device *sdev);
436 extern void scsi_device_resume(struct scsi_device *sdev);
450 extern int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
465 static inline int scsi_execute_req(struct scsi_device *sdev, in scsi_execute_req()
473 extern void sdev_disable_disk_events(struct scsi_device *sdev);
474 extern void sdev_enable_disk_events(struct scsi_device *sdev);
475 extern int scsi_vpd_lun_id(struct scsi_device *, char *, size_t);
476 extern int scsi_vpd_tpg_id(struct scsi_device *, int *);
479 extern int scsi_autopm_get_device(struct scsi_device *);
480 extern void scsi_autopm_put_device(struct scsi_device *);
482 static inline int scsi_autopm_get_device(struct scsi_device *d) { return 0; } in scsi_autopm_get_device()
483 static inline void scsi_autopm_put_device(struct scsi_device *d) {} in scsi_autopm_put_device()
486 static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) in scsi_device_reprobe()
491 static inline unsigned int sdev_channel(struct scsi_device *sdev) in sdev_channel()
496 static inline unsigned int sdev_id(struct scsi_device *sdev) in sdev_id()
507 static inline int scsi_device_online(struct scsi_device *sdev) in scsi_device_online()
513 static inline int scsi_device_blocked(struct scsi_device *sdev) in scsi_device_blocked()
518 static inline int scsi_device_created(struct scsi_device *sdev) in scsi_device_created()
524 int scsi_internal_device_block_nowait(struct scsi_device *sdev);
525 int scsi_internal_device_unblock_nowait(struct scsi_device *sdev,
529 static inline int scsi_device_sync(struct scsi_device *sdev) in scsi_device_sync()
533 static inline int scsi_device_wide(struct scsi_device *sdev) in scsi_device_wide()
537 static inline int scsi_device_dt(struct scsi_device *sdev) in scsi_device_dt()
541 static inline int scsi_device_dt_only(struct scsi_device *sdev) in scsi_device_dt_only()
547 static inline int scsi_device_ius(struct scsi_device *sdev) in scsi_device_ius()
553 static inline int scsi_device_qas(struct scsi_device *sdev) in scsi_device_qas()
559 static inline int scsi_device_enclosure(struct scsi_device *sdev) in scsi_device_enclosure()
564 static inline int scsi_device_protection(struct scsi_device *sdev) in scsi_device_protection()
572 static inline int scsi_device_tpgs(struct scsi_device *sdev) in scsi_device_tpgs()
585 static inline int scsi_device_supports_vpd(struct scsi_device *sdev) in scsi_device_supports_vpd()
602 static inline int scsi_device_busy(struct scsi_device *sdev) in scsi_device_busy()