Lines Matching refs:tag
13 #define SCSI_NO_TAG (-1) /* identify no tag in use */
19 * scsi_get_tag_type - get the type of tag the device supports
24 * if it supports all tag types, returns MSG_ORDERED_TAG.
37 static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)
39 switch (tag) {
55 * scsi_activate_tcq - turn on tag command queueing
77 * scsi_deactivate_tcq - turn off tag command queueing
88 * scsi_populate_tag_msg - place a tag message in a buffer
89 * @SCpnt: pointer to the Scsi_Cmnd for the tag
90 * @msg: pointer to the area to place the tag
93 * designed to create the correct type of tag message for the
94 * particular request. Returns the size of the tag message.
107 *msg++ = req->tag;
117 * @tag: the tag number
122 static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)
127 if (tag != SCSI_NO_TAG) {
128 req = blk_queue_find_tag(sdev->request_queue, tag);
137 * scsi_init_shared_tag_map - create a shared tag map
138 * @shost: the host to share the tag map among all devices
150 * @tag: tag of the scsi_cmnd
156 int tag)
160 if (tag != SCSI_NO_TAG) {
161 req = blk_map_queue_find_tag(shost->bqt, tag);