Lines Matching defs:tag
606 unsigned int tag; /* libata core tag */
607 unsigned int hw_tag; /* driver tag */
784 unsigned int active_tag; /* active tag on this link */
1579 static inline bool ata_tag_internal(unsigned int tag)
1581 return tag == ATA_TAG_INTERNAL;
1584 static inline bool ata_tag_valid(unsigned int tag)
1586 return tag < ATA_MAX_QUEUE || ata_tag_internal(tag);
1589 #define __ata_qc_for_each(ap, qc, tag, max_tag, fn) \
1590 for ((tag) = 0; (tag) < (max_tag) && \
1591 ({ qc = fn((ap), (tag)); 1; }); (tag)++) \
1597 #define ata_qc_for_each_raw(ap, qc, tag) \
1598 __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, __ata_qc_from_tag)
1603 #define ata_qc_for_each(ap, qc, tag) \
1604 __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, ata_qc_from_tag)
1607 * Like ata_qc_for_each, but with the internal tag included
1609 #define ata_qc_for_each_with_internal(ap, qc, tag) \
1610 __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE + 1, ata_qc_from_tag)
1786 unsigned int tag)
1788 if (ata_tag_valid(tag))
1789 return &ap->qcmd[tag];
1794 unsigned int tag)
1796 struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag);