Lines Matching refs:sid
40 static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count) in count_ports() argument
49 q = *sid; in count_ports()
69 return sid + 1; in count_ports()
72 sid++; in count_ports()
73 q = *sid; in count_ports()
91 static int get_port_type(u32 *sid, int port_index) in get_port_type() argument
97 return (sid[index] >> shift) & 0x03; in get_port_type()
100 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument
109 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create()
110 node->link_on = SELF_ID_LINK_ON(sid); in fw_node_create()
111 node->phy_speed = SELF_ID_PHY_SPEED(sid); in fw_node_create()
112 node->initiated_reset = SELF_ID_PHY_INITIATOR(sid); in fw_node_create()
172 u32 *sid, int self_id_count) in build_tree() argument
185 end = sid + self_id_count; in build_tree()
188 gap_count = SELF_ID_GAP_COUNT(*sid); in build_tree()
191 while (sid < end) { in build_tree()
192 next_sid = count_ports(sid, &port_count, &child_port_count); in build_tree()
199 q = *sid; in build_tree()
238 switch (get_port_type(sid, i)) { in build_tree()
297 sid = next_sid; in build_tree()