Lines Matching refs:q
37 #define SELF_ID_PHY_ID(q) (((q) >> 24) & 0x3f) argument
38 #define SELF_ID_EXTENDED(q) (((q) >> 23) & 0x01) argument
39 #define SELF_ID_LINK_ON(q) (((q) >> 22) & 0x01) argument
40 #define SELF_ID_GAP_COUNT(q) (((q) >> 16) & 0x3f) argument
41 #define SELF_ID_PHY_SPEED(q) (((q) >> 14) & 0x03) argument
42 #define SELF_ID_CONTENDER(q) (((q) >> 11) & 0x01) argument
43 #define SELF_ID_PHY_INITIATOR(q) (((q) >> 1) & 0x01) argument
44 #define SELF_ID_MORE_PACKETS(q) (((q) >> 0) & 0x01) argument
46 #define SELF_ID_EXT_SEQUENCE(q) (((q) >> 20) & 0x07) argument
55 u32 q; in count_ports() local
62 q = *sid; in count_ports()
66 port_type = (q >> shift) & 0x03; in count_ports()
79 if (!SELF_ID_MORE_PACKETS(q)) in count_ports()
84 q = *sid; in count_ports()
93 if (!SELF_ID_EXTENDED(q) || in count_ports()
94 seq != SELF_ID_EXT_SEQUENCE(q)) in count_ports()
188 u32 *next_sid, *end, q; in build_tree() local
211 q = *sid; in build_tree()
212 if (phy_id != SELF_ID_PHY_ID(q)) { in build_tree()
214 phy_id, SELF_ID_PHY_ID(q)); in build_tree()
235 node = fw_node_create(q, port_count, card->color); in build_tree()
244 if (SELF_ID_CONTENDER(q)) in build_tree()
304 if (SELF_ID_GAP_COUNT(q) != gap_count) in build_tree()