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()
68 return sid + 1; in count_ports()
71 sid++; in count_ports()
72 q = *sid; in count_ports()
90 static int get_port_type(u32 *sid, int port_index) in get_port_type() argument
96 return (sid[index] >> shift) & 0x03; in get_port_type()
99 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument
108 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create()
109 node->link_on = SELF_ID_LINK_ON(sid); in fw_node_create()
110 node->phy_speed = SELF_ID_PHY_SPEED(sid); in fw_node_create()
111 node->initiated_reset = SELF_ID_PHY_INITIATOR(sid); in fw_node_create()
171 u32 *sid, int self_id_count) in build_tree() argument
184 end = sid + self_id_count; in build_tree()
187 gap_count = SELF_ID_GAP_COUNT(*sid); in build_tree()
190 while (sid < end) { in build_tree()
191 next_sid = count_ports(sid, &port_count, &child_port_count); in build_tree()
198 q = *sid; in build_tree()
237 switch (get_port_type(sid, i)) { in build_tree()
296 sid = next_sid; in build_tree()