• Home
  • Raw
  • Download

Lines Matching refs:index

183 		if (dst->index != tree_index)  in dsa_switch_find()
187 if (dp->ds->index != sw_index) in dsa_switch_find()
198 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find() argument
203 if (dst->index == index) in dsa_tree_find()
209 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc() argument
217 dst->index = index; in dsa_tree_alloc()
247 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch() argument
251 dst = dsa_tree_find(index); in dsa_tree_touch()
255 return dsa_tree_alloc(index); in dsa_tree_touch()
374 pr_err("DSA: tree %d has no CPU port\n", dst->index); in dsa_tree_setup_default_cpu()
443 err = ds->ops->port_setup(ds, dp->index); in dsa_port_setup()
492 ds->ops->port_teardown(ds, dp->index); in dsa_port_setup()
511 id = (const unsigned char *)&dst->index; in dsa_port_devlink_setup()
512 len = sizeof(dst->index); in dsa_port_devlink_setup()
514 attrs.phys.port_number = dp->index; in dsa_port_devlink_setup()
535 err = devlink_port_register(dl, dlp, dp->index); in dsa_port_devlink_setup()
553 ds->ops->port_teardown(ds, dp->index); in dsa_port_teardown()
620 err = ds->ops->port_setup(ds, dp->index); in dsa_port_reinit_as_unused()
1067 dst->index); in dsa_tree_setup()
1093 pr_info("DSA: tree %d setup\n", dst->index); in dsa_tree_setup()
1130 pr_info("DSA: tree %d torn down\n", dst->index); in dsa_tree_teardown()
1160 if (!dsa_is_user_port(dp->ds, dp->index)) in dsa_tree_change_tag_proto()
1186 static struct dsa_port *dsa_port_touch(struct dsa_switch *ds, int index) in dsa_port_touch() argument
1192 if (dp->ds == ds && dp->index == index) in dsa_port_touch()
1200 dp->index = index; in dsa_port_touch()
1242 mdp_upstream = dsa_upstream_port(mds, mdp->index); in dsa_get_tag_protocol()
1250 return ds->ops->get_tag_protocol(ds, dp->index, tag_protocol); in dsa_get_tag_protocol()
1423 ds->index = m[1]; in dsa_switch_parse_member_of()
1429 if (dsa_switch_find(ds->dst->index, ds->index)) { in dsa_switch_parse_member_of()
1432 ds->index, ds->dst->index); in dsa_switch_parse_member_of()
1436 if (ds->dst->last_switch < ds->index) in dsa_switch_parse_member_of()
1437 ds->dst->last_switch = ds->index; in dsa_switch_parse_member_of()
1532 ds->index = 0; in dsa_switch_parse()