• Home
  • Raw
  • Download

Lines Matching full:ds

41 	struct dsa_switch *ds = dsa_devlink_to_ds(dl);  in sja1105_region_static_config_snapshot()  local
42 struct sja1105_private *priv = ds->priv; in sja1105_region_static_config_snapshot()
77 static int sja1105_setup_devlink_regions(struct dsa_switch *ds) in sja1105_setup_devlink_regions() argument
80 struct sja1105_private *priv = ds->priv; in sja1105_setup_devlink_regions()
94 region = dsa_devlink_region_create(ds, ops, 1, size); in sja1105_setup_devlink_regions()
107 static void sja1105_teardown_devlink_regions(struct dsa_switch *ds) in sja1105_teardown_devlink_regions() argument
110 struct sja1105_private *priv = ds->priv; in sja1105_teardown_devlink_regions()
129 struct dsa_switch *ds = priv->ds; in sja1105_best_effort_vlan_filtering_set() local
137 for (port = 0; port < ds->num_ports; port++) { in sja1105_best_effort_vlan_filtering_set()
141 if (!dsa_is_user_port(ds, port)) in sja1105_best_effort_vlan_filtering_set()
144 dp = dsa_to_port(ds, port); in sja1105_best_effort_vlan_filtering_set()
148 rc = sja1105_vlan_filtering(ds, port, vlan_filtering, &trans); in sja1105_best_effort_vlan_filtering_set()
153 rc = sja1105_vlan_filtering(ds, port, vlan_filtering, &trans); in sja1105_best_effort_vlan_filtering_set()
167 int sja1105_devlink_param_get(struct dsa_switch *ds, u32 id, in sja1105_devlink_param_get() argument
170 struct sja1105_private *priv = ds->priv; in sja1105_devlink_param_get()
186 int sja1105_devlink_param_set(struct dsa_switch *ds, u32 id, in sja1105_devlink_param_set() argument
189 struct sja1105_private *priv = ds->priv; in sja1105_devlink_param_set()
212 static int sja1105_setup_devlink_params(struct dsa_switch *ds) in sja1105_setup_devlink_params() argument
214 return dsa_devlink_params_register(ds, sja1105_devlink_params, in sja1105_setup_devlink_params()
218 static void sja1105_teardown_devlink_params(struct dsa_switch *ds) in sja1105_teardown_devlink_params() argument
220 dsa_devlink_params_unregister(ds, sja1105_devlink_params, in sja1105_teardown_devlink_params()
224 int sja1105_devlink_info_get(struct dsa_switch *ds, in sja1105_devlink_info_get() argument
228 struct sja1105_private *priv = ds->priv; in sja1105_devlink_info_get()
241 int sja1105_devlink_setup(struct dsa_switch *ds) in sja1105_devlink_setup() argument
245 rc = sja1105_setup_devlink_params(ds); in sja1105_devlink_setup()
249 rc = sja1105_setup_devlink_regions(ds); in sja1105_devlink_setup()
251 sja1105_teardown_devlink_params(ds); in sja1105_devlink_setup()
258 void sja1105_devlink_teardown(struct dsa_switch *ds) in sja1105_devlink_teardown() argument
260 sja1105_teardown_devlink_params(ds); in sja1105_devlink_teardown()
261 sja1105_teardown_devlink_regions(ds); in sja1105_devlink_teardown()