Lines Matching full:ds

31 int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id,  in mv88e6xxx_devlink_param_get()  argument
34 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_devlink_param_get()
53 int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id, in mv88e6xxx_devlink_param_set() argument
56 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_devlink_param_set()
81 int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds) in mv88e6xxx_setup_devlink_params() argument
83 return dsa_devlink_params_register(ds, mv88e6xxx_devlink_params, in mv88e6xxx_setup_devlink_params()
87 void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds) in mv88e6xxx_teardown_devlink_params() argument
89 dsa_devlink_params_unregister(ds, mv88e6xxx_devlink_params, in mv88e6xxx_teardown_devlink_params()
176 int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds) in mv88e6xxx_setup_devlink_resources() argument
179 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup_devlink_resources()
187 err = dsa_devlink_resource_register(ds, "ATU", in mv88e6xxx_setup_devlink_resources()
200 err = dsa_devlink_resource_register(ds, "ATU_bin_0", in mv88e6xxx_setup_devlink_resources()
208 err = dsa_devlink_resource_register(ds, "ATU_bin_1", in mv88e6xxx_setup_devlink_resources()
216 err = dsa_devlink_resource_register(ds, "ATU_bin_2", in mv88e6xxx_setup_devlink_resources()
224 err = dsa_devlink_resource_register(ds, "ATU_bin_3", in mv88e6xxx_setup_devlink_resources()
232 dsa_devlink_resource_occ_get_register(ds, in mv88e6xxx_setup_devlink_resources()
237 dsa_devlink_resource_occ_get_register(ds, in mv88e6xxx_setup_devlink_resources()
242 dsa_devlink_resource_occ_get_register(ds, in mv88e6xxx_setup_devlink_resources()
247 dsa_devlink_resource_occ_get_register(ds, in mv88e6xxx_setup_devlink_resources()
252 dsa_devlink_resource_occ_get_register(ds, in mv88e6xxx_setup_devlink_resources()
260 dsa_devlink_resources_unregister(ds); in mv88e6xxx_setup_devlink_resources()
270 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_global_snapshot() local
271 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_region_global_snapshot()
376 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_atu_snapshot() local
379 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_region_atu_snapshot()
450 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_vtu_snapshot() local
451 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_region_vtu_snapshot()
533 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_stu_snapshot() local
534 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_region_stu_snapshot()
590 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_pvt_snapshot() local
591 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_region_pvt_snapshot()
628 struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port); in mv88e6xxx_region_port_snapshot() local
630 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_region_port_snapshot()
740 void mv88e6xxx_teardown_devlink_regions_global(struct dsa_switch *ds) in mv88e6xxx_teardown_devlink_regions_global() argument
742 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_teardown_devlink_regions_global()
749 void mv88e6xxx_teardown_devlink_regions_port(struct dsa_switch *ds, int port) in mv88e6xxx_teardown_devlink_regions_port() argument
751 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_teardown_devlink_regions_port()
756 int mv88e6xxx_setup_devlink_regions_port(struct dsa_switch *ds, int port) in mv88e6xxx_setup_devlink_regions_port() argument
758 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup_devlink_regions_port()
761 region = dsa_devlink_port_region_create(ds, in mv88e6xxx_setup_devlink_regions_port()
773 int mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds) in mv88e6xxx_setup_devlink_regions_global() argument
776 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup_devlink_regions_global()
805 region = dsa_devlink_region_create(ds, ops, 1, size); in mv88e6xxx_setup_devlink_regions_global()
819 int mv88e6xxx_devlink_info_get(struct dsa_switch *ds, in mv88e6xxx_devlink_info_get() argument
823 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_devlink_info_get()