#ifndef _SCSI_SCSI_TCQ_H #define _SCSI_SCSI_TCQ_H #include #include #include #include #define SCSI_NO_TAG (-1) /* identify no tag in use */ #ifdef CONFIG_BLOCK /** * scsi_host_find_tag - find the tagged command by host * @shost: pointer to scsi_host * @tag: tag * * Note: for devices using multiple hardware queues tag must have been * generated by blk_mq_unique_tag(). **/ static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost, int tag) { struct request *req = NULL; if (tag == SCSI_NO_TAG) return NULL; if (shost_use_blk_mq(shost)) { u16 hwq = blk_mq_unique_tag_to_hwq(tag); if (hwq < shost->tag_set.nr_hw_queues) { req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq], blk_mq_unique_tag_to_tag(tag)); } } else { req = blk_map_queue_find_tag(shost->bqt, tag); } if (!req) return NULL; return req->special; } #endif /* CONFIG_BLOCK */ #endif /* _SCSI_SCSI_TCQ_H */ > net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
'>8
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2013-02-01 15:06:21 +0800
committerWim Van Sebroeck <wim@iguana.be>2013-03-01 12:49:53 +0100
commit490ac7af8b71069ba0c733052c5f448ac070c947 (patch)
treedc6a42af5b3241721c3dacd01c4c3aa759ea05ad /Documentation/devicetree/bindings
parent2dd7b24467143c3fd17c6abcaf04fef7976b1528 (diff)
watchdog: at91sam9_wdt: Convert to use the watchdog framework
According to Documentation/watchdog/convert_drivers_to_kernel_api.txt, remove the file_operations struct, miscdevice, and obsolete includes Since the at91sam watchdog inherent characteristics, add the watchdog operations: at91wdt_start, at91wdt_stop and at91wdt_ping. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Cc: linux-watchdog@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'Documentation/devicetree/bindings')