• Home
  • Raw
  • Download

Lines Matching refs:sdev

27 static inline int scsi_get_tag_type(struct scsi_device *sdev)  in scsi_get_tag_type()  argument
29 if (!sdev->tagged_supported) in scsi_get_tag_type()
31 if (sdev->ordered_tags) in scsi_get_tag_type()
33 if (sdev->simple_tags) in scsi_get_tag_type()
38 static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag) in scsi_set_tag_type() argument
42 sdev->ordered_tags = 1; in scsi_set_tag_type()
45 sdev->simple_tags = 1; in scsi_set_tag_type()
50 sdev->ordered_tags = 0; in scsi_set_tag_type()
51 sdev->simple_tags = 0; in scsi_set_tag_type()
65 static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth) in scsi_activate_tcq() argument
67 if (!sdev->tagged_supported) in scsi_activate_tcq()
70 if (!blk_queue_tagged(sdev->request_queue)) in scsi_activate_tcq()
71 blk_queue_init_tags(sdev->request_queue, depth, in scsi_activate_tcq()
72 sdev->host->bqt); in scsi_activate_tcq()
74 scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth); in scsi_activate_tcq()
81 static inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth) in scsi_deactivate_tcq() argument
83 if (blk_queue_tagged(sdev->request_queue)) in scsi_deactivate_tcq()
84 blk_queue_free_tags(sdev->request_queue); in scsi_deactivate_tcq()
85 scsi_adjust_queue_depth(sdev, 0, depth); in scsi_deactivate_tcq()
119 static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag) in scsi_find_tag() argument
125 req = blk_queue_find_tag(sdev->request_queue, tag); in scsi_find_tag()
130 return sdev->current_cmnd; in scsi_find_tag()