Lines Matching refs:sid
53 static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count) in count_ports() argument
62 q = *sid; in count_ports()
80 return sid + 1; in count_ports()
83 sid++; in count_ports()
84 q = *sid; in count_ports()
102 static int get_port_type(u32 *sid, int port_index) in get_port_type() argument
108 return (sid[index] >> shift) & 0x03; in get_port_type()
111 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument
121 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create()
122 node->link_on = SELF_ID_LINK_ON(sid); in fw_node_create()
123 node->phy_speed = SELF_ID_PHY_SPEED(sid); in fw_node_create()
124 node->initiated_reset = SELF_ID_PHY_INITIATOR(sid); in fw_node_create()
184 u32 *sid, int self_id_count) in build_tree() argument
197 end = sid + self_id_count; in build_tree()
200 gap_count = SELF_ID_GAP_COUNT(*sid); in build_tree()
203 while (sid < end) { in build_tree()
204 next_sid = count_ports(sid, &port_count, &child_port_count); in build_tree()
211 q = *sid; in build_tree()
250 switch (get_port_type(sid, i)) { in build_tree()
309 sid = next_sid; in build_tree()