/kernel/linux/linux-5.10/net/dsa/ |
H A D | switch.c | 17 static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds, in dsa_switch_fastest_ageing_time() argument 22 for (i = 0; i < ds->num_ports; ++i) { in dsa_switch_fastest_ageing_time() 23 struct dsa_port *dp = dsa_to_port(ds, i); in dsa_switch_fastest_ageing_time() 32 static int dsa_switch_ageing_time(struct dsa_switch *ds, in dsa_switch_ageing_time() argument 39 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) in dsa_switch_ageing_time() 41 if (ds->ageing_time_max && ageing_time > ds->ageing_time_max) in dsa_switch_ageing_time() 47 ageing_time = dsa_switch_fastest_ageing_time(ds, ageing_time); in dsa_switch_ageing_time() 49 if (ds in dsa_switch_ageing_time() 55 dsa_switch_mtu_match(struct dsa_switch *ds, int port, struct dsa_notifier_mtu_info *info) dsa_switch_mtu_match() argument 70 dsa_switch_mtu(struct dsa_switch *ds, struct dsa_notifier_mtu_info *info) dsa_switch_mtu() argument 89 dsa_switch_bridge_join(struct dsa_switch *ds, struct dsa_notifier_bridge_info *info) dsa_switch_bridge_join() argument 107 dsa_switch_bridge_leave(struct dsa_switch *ds, struct dsa_notifier_bridge_info *info) dsa_switch_bridge_leave() argument 159 dsa_switch_fdb_add(struct dsa_switch *ds, struct dsa_notifier_fdb_info *info) dsa_switch_fdb_add() argument 170 dsa_switch_fdb_del(struct dsa_switch *ds, struct dsa_notifier_fdb_info *info) dsa_switch_fdb_del() argument 181 dsa_switch_mdb_match(struct dsa_switch *ds, int port, struct dsa_notifier_mdb_info *info) dsa_switch_mdb_match() argument 193 dsa_switch_mdb_prepare(struct dsa_switch *ds, struct dsa_notifier_mdb_info *info) dsa_switch_mdb_prepare() argument 212 dsa_switch_mdb_add(struct dsa_switch *ds, struct dsa_notifier_mdb_info *info) dsa_switch_mdb_add() argument 230 dsa_switch_mdb_del(struct dsa_switch *ds, struct dsa_notifier_mdb_info *info) dsa_switch_mdb_del() argument 242 dsa_switch_vlan_match(struct dsa_switch *ds, int port, struct dsa_notifier_vlan_info *info) dsa_switch_vlan_match() argument 254 dsa_switch_vlan_prepare(struct dsa_switch *ds, struct dsa_notifier_vlan_info *info) dsa_switch_vlan_prepare() argument 273 dsa_switch_vlan_add(struct dsa_switch *ds, struct dsa_notifier_vlan_info *info) dsa_switch_vlan_add() argument 291 dsa_switch_vlan_del(struct dsa_switch *ds, struct dsa_notifier_vlan_info *info) dsa_switch_vlan_del() argument 309 struct dsa_switch *ds = container_of(nb, struct dsa_switch, nb); dsa_switch_event() local 359 dsa_switch_register_notifier(struct dsa_switch *ds) dsa_switch_register_notifier() argument 366 dsa_switch_unregister_notifier(struct dsa_switch *ds) dsa_switch_unregister_notifier() argument [all...] |
H A D | port.c | 35 struct raw_notifier_head *nh = &dp->ds->dst->nh; in dsa_port_notify() 46 struct dsa_switch *ds = dp->ds; in dsa_port_set_state() local 50 return ds->ops->port_stp_state_set ? 0 : -EOPNOTSUPP; in dsa_port_set_state() 52 if (ds->ops->port_stp_state_set) in dsa_port_set_state() 53 ds->ops->port_stp_state_set(ds, port, state); in dsa_port_set_state() 55 if (ds->ops->port_fast_age) { in dsa_port_set_state() 66 ds->ops->port_fast_age(ds, por in dsa_port_set_state() 85 struct dsa_switch *ds = dp->ds; dsa_port_enable_rt() local 117 struct dsa_switch *ds = dp->ds; dsa_port_disable_rt() local 200 struct dsa_switch *ds = dp->ds; dsa_port_can_apply_vlan_filtering() local 265 struct dsa_switch *ds = dp->ds; dsa_port_vlan_filtering() local 308 struct dsa_switch *ds = dp->ds; dsa_port_skip_vlan_configuration() local 338 struct dsa_switch *ds = dp->ds; dsa_port_pre_bridge_flags() local 350 struct dsa_switch *ds = dp->ds; dsa_port_bridge_flags() local 367 struct dsa_switch *ds = dp->ds; dsa_port_mrouter() local 418 struct dsa_switch *ds = dp->ds; dsa_port_fdb_dump() local 503 struct dsa_switch *ds = dp->ds; dsa_port_phylink_validate() local 515 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_pcs_get_state() local 537 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_config() local 548 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_an_restart() local 562 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_link_down() local 584 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_link_up() local 607 struct dsa_switch *ds = dp->ds; dsa_port_setup_phy_of() local 646 struct dsa_switch *ds = dp->ds; dsa_port_fixed_link_register_of() local 679 struct dsa_switch *ds = dp->ds; dsa_port_phylink_register() local 714 struct dsa_switch *ds = dp->ds; dsa_port_link_register_of() local 742 struct dsa_switch *ds = dp->ds; dsa_port_link_unregister_of() local [all...] |
H A D | dsa2.c | 34 if (dp->ds->index != sw_index) in dsa_switch_find() 37 return dp->ds; in dsa_switch_find() 148 struct dsa_switch *ds = dp->ds; in dsa_link_touch() local 152 dst = ds->dst; in dsa_link_touch() 173 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local 174 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table() 315 struct dsa_switch_tree *dst = dp->ds->dst; in dsa_port_devlink_setup() 317 struct devlink *dl = dp->ds in dsa_port_devlink_setup() 399 struct dsa_switch *ds = dsa_devlink_to_ds(dl); dsa_devlink_info_get() local 411 dsa_switch_setup(struct dsa_switch *ds) dsa_switch_setup() argument 499 dsa_switch_teardown(struct dsa_switch *ds) dsa_switch_teardown() argument 664 dsa_port_touch(struct dsa_switch *ds, int index) dsa_port_touch() argument 708 struct dsa_switch *mds, *ds = dp->ds; dsa_get_tag_protocol() local 732 struct dsa_switch *ds = dp->ds; dsa_port_parse_cpu() local 782 dsa_switch_parse_ports_of(struct dsa_switch *ds, struct device_node *dn) dsa_switch_parse_ports_of() argument 822 dsa_switch_parse_member_of(struct dsa_switch *ds, struct device_node *dn) dsa_switch_parse_member_of() argument 842 dsa_switch_touch_ports(struct dsa_switch *ds) dsa_switch_touch_ports() argument 856 dsa_switch_parse_of(struct dsa_switch *ds, struct device_node *dn) dsa_switch_parse_of() argument 892 dsa_switch_parse_ports(struct dsa_switch *ds, struct dsa_chip_data *cd) dsa_switch_parse_ports() argument 923 dsa_switch_parse(struct dsa_switch *ds, struct dsa_chip_data *cd) dsa_switch_parse() argument 944 dsa_switch_release_ports(struct dsa_switch *ds) dsa_switch_release_ports() argument 957 dsa_switch_probe(struct dsa_switch *ds) dsa_switch_probe() argument 999 dsa_register_switch(struct dsa_switch *ds) dsa_register_switch() argument 1012 dsa_switch_remove(struct dsa_switch *ds) dsa_switch_remove() argument 1021 dsa_unregister_switch(struct dsa_switch *ds) dsa_unregister_switch() argument [all...] |
H A D | slave.c | 28 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_read() local 30 if (ds->phys_mii_mask & (1 << addr)) in dsa_slave_phy_read() 31 return ds->ops->phy_read(ds, addr, reg); in dsa_slave_phy_read() 38 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_write() local 40 if (ds->phys_mii_mask & (1 << addr)) in dsa_slave_phy_write() 41 return ds->ops->phy_write(ds, addr, reg, val); in dsa_slave_phy_write() 46 void dsa_slave_mii_bus_init(struct dsa_switch *ds) in dsa_slave_mii_bus_init() argument 48 ds in dsa_slave_mii_bus_init() 252 struct dsa_switch *ds = p->dp->ds; dsa_slave_ioctl() local 478 struct dsa_switch *ds = dp->ds; dsa_slave_get_port_parent_id() local 510 struct dsa_switch *ds = p->dp->ds; dsa_skb_tx_timestamp() local 630 struct dsa_switch *ds = dp->ds; dsa_slave_get_regs_len() local 642 struct dsa_switch *ds = dp->ds; dsa_slave_get_regs() local 658 struct dsa_switch *ds = dp->ds; dsa_slave_get_eeprom_len() local 673 struct dsa_switch *ds = dp->ds; dsa_slave_get_eeprom() local 685 struct dsa_switch *ds = dp->ds; dsa_slave_set_eeprom() local 697 struct dsa_switch *ds = dp->ds; dsa_slave_get_strings() local 718 struct dsa_switch *ds = dp->ds; dsa_slave_get_ethtool_stats() local 746 struct dsa_switch *ds = dp->ds; dsa_slave_get_sset_count() local 766 struct dsa_switch *ds = dp->ds; dsa_slave_get_wol() local 777 struct dsa_switch *ds = dp->ds; dsa_slave_set_wol() local 791 struct dsa_switch *ds = dp->ds; dsa_slave_set_eee() local 811 struct dsa_switch *ds = dp->ds; dsa_slave_get_eee() local 942 struct dsa_switch *ds = dp->ds; dsa_slave_add_cls_matchall_mirred() local 996 struct dsa_switch *ds = dp->ds; dsa_slave_add_cls_matchall_police() local 1069 struct dsa_switch *ds = dp->ds; dsa_slave_del_cls_matchall() local 1117 struct dsa_switch *ds = dp->ds; dsa_slave_add_cls_flower() local 1131 struct dsa_switch *ds = dp->ds; dsa_slave_del_cls_flower() local 1145 struct dsa_switch *ds = dp->ds; dsa_slave_stats_cls_flower() local 1246 struct dsa_switch *ds = dp->ds; dsa_slave_setup_tc() local 1270 struct dsa_switch *ds = dp->ds; dsa_slave_get_rxnfc() local 1282 struct dsa_switch *ds = dp->ds; dsa_slave_set_rxnfc() local 1294 struct dsa_switch *ds = p->dp->ds; dsa_slave_get_ts_info() local 1482 struct dsa_switch *ds = p->dp->ds; dsa_slave_change_mtu() local 1653 dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up) dsa_port_phylink_mac_change() argument 1666 struct dsa_switch *ds = dp->ds; dsa_slave_phylink_fixed_state() local 1678 struct dsa_switch *ds = dp->ds; dsa_slave_phy_connect() local 1693 struct dsa_switch *ds = dp->ds; dsa_slave_phy_setup() local 1800 struct dsa_switch *ds = port->ds; dsa_slave_create() local [all...] |
/kernel/linux/linux-6.6/net/dsa/ |
H A D | switch.c | 23 static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds, in dsa_switch_fastest_ageing_time() argument 28 dsa_switch_for_each_port(dp, ds) in dsa_switch_fastest_ageing_time() 35 static int dsa_switch_ageing_time(struct dsa_switch *ds, in dsa_switch_ageing_time() argument 40 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) in dsa_switch_ageing_time() 43 if (ds->ageing_time_max && ageing_time > ds->ageing_time_max) in dsa_switch_ageing_time() 47 ageing_time = dsa_switch_fastest_ageing_time(ds, ageing_time); in dsa_switch_ageing_time() 49 if (ds->ops->set_ageing_time) in dsa_switch_ageing_time() 50 return ds in dsa_switch_ageing_time() 61 dsa_switch_mtu(struct dsa_switch *ds, struct dsa_notifier_mtu_info *info) dsa_switch_mtu() argument 82 dsa_switch_bridge_join(struct dsa_switch *ds, struct dsa_notifier_bridge_info *info) dsa_switch_bridge_join() argument 113 dsa_switch_bridge_leave(struct dsa_switch *ds, struct dsa_notifier_bridge_info *info) dsa_switch_bridge_leave() argument 162 struct dsa_switch *ds = dp->ds; dsa_port_do_mdb_add() local 214 struct dsa_switch *ds = dp->ds; dsa_port_do_mdb_del() local 261 struct dsa_switch *ds = dp->ds; dsa_port_do_fdb_add() local 311 struct dsa_switch *ds = dp->ds; dsa_port_do_fdb_del() local 354 dsa_switch_do_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag *lag, const unsigned char *addr, u16 vid, struct dsa_db db) dsa_switch_do_lag_fdb_add() argument 396 dsa_switch_do_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag *lag, const unsigned char *addr, u16 vid, struct dsa_db db) dsa_switch_do_lag_fdb_del() argument 434 dsa_switch_host_fdb_add(struct dsa_switch *ds, struct dsa_notifier_fdb_info *info) dsa_switch_host_fdb_add() argument 462 dsa_switch_host_fdb_del(struct dsa_switch *ds, struct dsa_notifier_fdb_info *info) dsa_switch_host_fdb_del() argument 490 dsa_switch_fdb_add(struct dsa_switch *ds, struct dsa_notifier_fdb_info *info) dsa_switch_fdb_add() argument 502 dsa_switch_fdb_del(struct dsa_switch *ds, struct dsa_notifier_fdb_info *info) dsa_switch_fdb_del() argument 514 dsa_switch_lag_fdb_add(struct dsa_switch *ds, struct dsa_notifier_lag_fdb_info *info) dsa_switch_lag_fdb_add() argument 532 dsa_switch_lag_fdb_del(struct dsa_switch *ds, struct dsa_notifier_lag_fdb_info *info) dsa_switch_lag_fdb_del() argument 550 dsa_switch_lag_change(struct dsa_switch *ds, struct dsa_notifier_lag_info *info) dsa_switch_lag_change() argument 563 dsa_switch_lag_join(struct dsa_switch *ds, struct dsa_notifier_lag_info *info) dsa_switch_lag_join() argument 578 dsa_switch_lag_leave(struct dsa_switch *ds, struct dsa_notifier_lag_info *info) dsa_switch_lag_leave() argument 591 dsa_switch_mdb_add(struct dsa_switch *ds, struct dsa_notifier_mdb_info *info) dsa_switch_mdb_add() argument 603 dsa_switch_mdb_del(struct dsa_switch *ds, struct dsa_notifier_mdb_info *info) dsa_switch_mdb_del() argument 615 dsa_switch_host_mdb_add(struct dsa_switch *ds, struct dsa_notifier_mdb_info *info) dsa_switch_host_mdb_add() argument 635 dsa_switch_host_mdb_del(struct dsa_switch *ds, struct dsa_notifier_mdb_info *info) dsa_switch_host_mdb_del() argument 692 struct dsa_switch *ds = dp->ds; dsa_port_do_vlan_add() local 748 struct dsa_switch *ds = dp->ds; dsa_port_do_vlan_del() local 791 dsa_switch_vlan_add(struct dsa_switch *ds, struct dsa_notifier_vlan_info *info) dsa_switch_vlan_add() argument 812 dsa_switch_vlan_del(struct dsa_switch *ds, struct dsa_notifier_vlan_info *info) dsa_switch_vlan_del() argument 832 dsa_switch_host_vlan_add(struct dsa_switch *ds, struct dsa_notifier_vlan_info *info) dsa_switch_host_vlan_add() argument 853 dsa_switch_host_vlan_del(struct dsa_switch *ds, struct dsa_notifier_vlan_info *info) dsa_switch_host_vlan_del() argument 873 dsa_switch_change_tag_proto(struct dsa_switch *ds, struct dsa_notifier_tag_proto_info *info) dsa_switch_change_tag_proto() argument 918 dsa_switch_connect_tag_proto(struct dsa_switch *ds, struct dsa_notifier_tag_proto_info *info) dsa_switch_connect_tag_proto() argument 947 dsa_switch_disconnect_tag_proto(struct dsa_switch *ds, struct dsa_notifier_tag_proto_info *info) dsa_switch_disconnect_tag_proto() argument 963 dsa_switch_master_state_change(struct dsa_switch *ds, struct dsa_notifier_master_state_info *info) dsa_switch_master_state_change() argument 977 struct dsa_switch *ds = container_of(nb, struct dsa_switch, nb); dsa_switch_event() local 1120 dsa_switch_register_notifier(struct dsa_switch *ds) dsa_switch_register_notifier() argument 1127 dsa_switch_unregister_notifier(struct dsa_switch *ds) dsa_switch_unregister_notifier() argument [all...] |
H A D | devlink.c | 15 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_info_get() local 17 if (ds->ops->devlink_info_get) in dsa_devlink_info_get() 18 return ds->ops->devlink_info_get(ds, req, extack); in dsa_devlink_info_get() 27 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_get() local 29 if (!ds->ops->devlink_sb_pool_get) in dsa_devlink_sb_pool_get() 32 return ds->ops->devlink_sb_pool_get(ds, sb_index, pool_index, in dsa_devlink_sb_pool_get() 41 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_set() local 43 if (!ds in dsa_devlink_sb_pool_set() 54 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); dsa_devlink_sb_port_pool_get() local 69 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); dsa_devlink_sb_port_pool_set() local 85 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); dsa_devlink_sb_tc_pool_bind_get() local 103 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); dsa_devlink_sb_tc_pool_bind_set() local 118 struct dsa_switch *ds = dsa_devlink_to_ds(dl); dsa_devlink_sb_occ_snapshot() local 129 struct dsa_switch *ds = dsa_devlink_to_ds(dl); dsa_devlink_sb_occ_max_clear() local 142 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); dsa_devlink_sb_occ_port_pool_get() local 158 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); dsa_devlink_sb_occ_tc_port_bind_get() local 187 struct dsa_switch *ds = dsa_devlink_to_ds(dl); dsa_devlink_param_get() local 199 struct dsa_switch *ds = dsa_devlink_to_ds(dl); dsa_devlink_param_set() local 208 dsa_devlink_params_register(struct dsa_switch *ds, const struct devlink_param *params, size_t params_count) dsa_devlink_params_register() argument 216 dsa_devlink_params_unregister(struct dsa_switch *ds, const struct devlink_param *params, size_t params_count) dsa_devlink_params_unregister() argument 224 dsa_devlink_resource_register(struct dsa_switch *ds, const char *resource_name, u64 resource_size, u64 resource_id, u64 parent_resource_id, const struct devlink_resource_size_params *size_params) dsa_devlink_resource_register() argument 238 dsa_devlink_resources_unregister(struct dsa_switch *ds) dsa_devlink_resources_unregister() argument 244 dsa_devlink_resource_occ_get_register(struct dsa_switch *ds, u64 resource_id, devlink_resource_occ_get_t *occ_get, void *occ_get_priv) dsa_devlink_resource_occ_get_register() argument 254 dsa_devlink_resource_occ_get_unregister(struct dsa_switch *ds, u64 resource_id) dsa_devlink_resource_occ_get_unregister() argument 262 dsa_devlink_region_create(struct dsa_switch *ds, const struct devlink_region_ops *ops, u32 region_max_snapshots, u64 region_size) dsa_devlink_region_create() argument 272 dsa_devlink_port_region_create(struct dsa_switch *ds, int port, const struct devlink_port_region_ops *ops, u32 region_max_snapshots, u64 region_size) dsa_devlink_port_region_create() argument 297 struct dsa_switch *ds = dp->ds; dsa_port_devlink_setup() local 347 struct dsa_switch *ds = dp->ds; dsa_port_devlink_teardown() local 357 dsa_switch_devlink_register(struct dsa_switch *ds) dsa_switch_devlink_register() argument 362 dsa_switch_devlink_unregister(struct dsa_switch *ds) dsa_switch_devlink_unregister() argument 367 dsa_switch_devlink_alloc(struct dsa_switch *ds) dsa_switch_devlink_alloc() argument 387 dsa_switch_devlink_free(struct dsa_switch *ds) dsa_switch_devlink_free() argument [all...] |
H A D | dsa.c | 60 * driver by setting ds->num_lag_ids. It is perfectly legal to leave 190 if (dp->ds->index != sw_index) in dsa_switch_find() 193 return dp->ds; in dsa_switch_find() 291 struct dsa_switch *ds = dp->ds; in dsa_link_touch() local 295 dst = ds->dst; in dsa_link_touch() 316 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local 317 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table() 407 dsa_switch_preferred_default_local_cpu_port(struct dsa_switch *ds) in dsa_switch_preferred_default_local_cpu_port() argument 467 struct dsa_switch *ds = dp->ds; dsa_port_setup() local 575 dsa_switch_setup_tag_protocol(struct dsa_switch *ds) dsa_switch_setup_tag_protocol() argument 619 dsa_switch_teardown_tag_protocol(struct dsa_switch *ds) dsa_switch_teardown_tag_protocol() argument 627 dsa_switch_setup(struct dsa_switch *ds) dsa_switch_setup() argument 695 dsa_switch_teardown(struct dsa_switch *ds) dsa_switch_teardown() argument 1089 dsa_port_touch(struct dsa_switch *ds, int index) dsa_port_touch() argument 1135 struct dsa_switch *mds, *ds = dp->ds; dsa_get_tag_protocol() local 1161 struct dsa_switch *ds = dp->ds; dsa_port_parse_cpu() local 1269 dsa_switch_parse_ports_of(struct dsa_switch *ds, struct device_node *dn) dsa_switch_parse_ports_of() argument 1316 dsa_switch_parse_member_of(struct dsa_switch *ds, struct device_node *dn) dsa_switch_parse_member_of() argument 1346 dsa_switch_touch_ports(struct dsa_switch *ds) dsa_switch_touch_ports() argument 1360 dsa_switch_parse_of(struct dsa_switch *ds, struct device_node *dn) dsa_switch_parse_of() argument 1432 dsa_switch_parse_ports(struct dsa_switch *ds, struct dsa_chip_data *cd) dsa_switch_parse_ports() argument 1463 dsa_switch_parse(struct dsa_switch *ds, struct dsa_chip_data *cd) dsa_switch_parse() argument 1484 dsa_switch_release_ports(struct dsa_switch *ds) dsa_switch_release_ports() argument 1497 dsa_switch_probe(struct dsa_switch *ds) dsa_switch_probe() argument 1539 dsa_register_switch(struct dsa_switch *ds) dsa_register_switch() argument 1552 dsa_switch_remove(struct dsa_switch *ds) dsa_switch_remove() argument 1561 dsa_unregister_switch(struct dsa_switch *ds) dsa_unregister_switch() argument 1574 dsa_switch_shutdown(struct dsa_switch *ds) dsa_switch_shutdown() argument 1611 dsa_switch_suspend(struct dsa_switch *ds) dsa_switch_suspend() argument 1633 dsa_switch_resume(struct dsa_switch *ds) dsa_switch_resume() argument 1686 dsa_fdb_present_in_other_db(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) dsa_fdb_present_in_other_db() argument 1707 dsa_mdb_present_in_other_db(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) dsa_mdb_present_in_other_db() argument [all...] |
H A D | port.c | 35 return dsa_tree_notify(dp->ds->dst, e, v); in dsa_port_notify() 57 struct dsa_switch *ds = dp->ds; in dsa_port_fast_age() local 59 if (!ds->ops->port_fast_age) in dsa_port_fast_age() 62 ds->ops->port_fast_age(ds, dp->index); in dsa_port_fast_age() 70 struct dsa_switch *ds = dp->ds; in dsa_port_vlan_fast_age() local 73 if (!ds->ops->port_vlan_fast_age) in dsa_port_vlan_fast_age() 76 err = ds in dsa_port_vlan_fast_age() 107 struct dsa_switch *ds = dp->ds; dsa_port_can_configure_learning() local 119 struct dsa_switch *ds = dp->ds; dsa_port_supports_hwtstamp() local 137 struct dsa_switch *ds = dp->ds; dsa_port_set_state() local 171 struct dsa_switch *ds = dp->ds; dsa_port_set_state_now() local 185 struct dsa_switch *ds = dp->ds; dsa_port_set_mst_state() local 219 struct dsa_switch *ds = dp->ds; dsa_port_enable_rt() local 251 struct dsa_switch *ds = dp->ds; dsa_port_disable_rt() local 276 struct dsa_switch *ds = dp->ds; dsa_port_reset_vlan_filtering() local 428 struct dsa_switch *ds = dp->ds; dsa_port_bridge_create() local 477 struct dsa_switch *ds = dp->ds; dsa_port_supports_mst() local 614 struct dsa_switch *ds = dp->ds; dsa_port_lag_create() local 733 struct dsa_switch *ds = dp->ds; dsa_port_can_apply_vlan_filtering() local 799 struct dsa_switch *ds = dp->ds; dsa_port_vlan_filtering() local 871 struct dsa_switch *ds = dp->ds; dsa_port_skip_vlan_configuration() local 912 struct dsa_switch *ds = dp->ds; dsa_port_pre_bridge_flags() local 924 struct dsa_switch *ds = dp->ds; dsa_port_bridge_flags() local 953 struct dsa_switch *ds = dp->ds; dsa_port_set_host_flood() local 962 struct dsa_switch *ds = dp->ds; dsa_port_vlan_msti() local 1160 struct dsa_switch *ds = dp->ds; dsa_port_fdb_dump() local 1360 struct dsa_switch *ds = dp->ds; dsa_port_mrp_add() local 1371 struct dsa_switch *ds = dp->ds; dsa_port_mrp_del() local 1382 struct dsa_switch *ds = dp->ds; dsa_port_mrp_add_ring_role() local 1393 struct dsa_switch *ds = dp->ds; dsa_port_mrp_del_ring_role() local 1406 struct dsa_switch *ds = dp->ds; dsa_port_assign_master() local 1437 struct dsa_switch *ds = dp->ds; dsa_port_change_master() local 1577 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_select_pcs() local 1590 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_prepare() local 1605 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_config() local 1618 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_finish() local 1634 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_link_down() local 1656 struct dsa_switch *ds = dp->ds; dsa_port_phylink_mac_link_up() local 1680 struct dsa_switch *ds = dp->ds; dsa_port_phylink_create() local 1723 struct dsa_switch *ds = dp->ds; dsa_shared_port_setup_phy_of() local 1762 struct dsa_switch *ds = dp->ds; dsa_shared_port_fixed_link_register_of() local 1795 struct dsa_switch *ds = dp->ds; dsa_shared_port_phylink_register() local 1938 struct dsa_switch *ds = dp->ds; dsa_shared_port_validate_of() local 1972 struct dsa_switch *ds = dp->ds; dsa_shared_port_link_register_of() local 2011 struct dsa_switch *ds = dp->ds; dsa_shared_port_link_unregister_of() local 2029 struct dsa_switch *ds = dp->ds; dsa_port_hsr_join() local 2046 struct dsa_switch *ds = dp->ds; dsa_port_hsr_leave() local [all...] |
H A D | slave.c | 68 static bool dsa_switch_supports_uc_filtering(struct dsa_switch *ds) in dsa_switch_supports_uc_filtering() argument 70 return ds->ops->port_fdb_add && ds->ops->port_fdb_del && in dsa_switch_supports_uc_filtering() 71 ds->fdb_isolation && !ds->vlan_filtering_is_global && in dsa_switch_supports_uc_filtering() 72 !ds->needs_standalone_vlan_filtering; in dsa_switch_supports_uc_filtering() 75 static bool dsa_switch_supports_mc_filtering(struct dsa_switch *ds) in dsa_switch_supports_mc_filtering() argument 77 return ds->ops->port_mdb_add && ds->ops->port_mdb_del && in dsa_switch_supports_mc_filtering() 78 ds in dsa_switch_supports_mc_filtering() 90 struct dsa_switch *ds = dp->ds; dsa_slave_standalone_event_work() local 279 struct dsa_switch *ds = dp->ds; dsa_slave_sync_ha() local 300 struct dsa_switch *ds = dp->ds; dsa_slave_unsync_ha() local 321 struct dsa_switch *ds = bus->priv; dsa_slave_phy_read() local 331 struct dsa_switch *ds = bus->priv; dsa_slave_phy_write() local 339 dsa_slave_mii_bus_init(struct dsa_switch *ds) dsa_slave_mii_bus_init() argument 362 struct dsa_switch *ds = dp->ds; dsa_slave_open() local 403 struct dsa_switch *ds = dp->ds; dsa_slave_close() local 429 struct dsa_switch *ds = dp->ds; dsa_slave_change_rx_flags() local 453 struct dsa_switch *ds = dp->ds; dsa_slave_set_mac_address() local 570 struct dsa_switch *ds = p->dp->ds; dsa_slave_ioctl() local 887 struct dsa_switch *ds = p->dp->ds; dsa_skb_tx_timestamp() local 988 struct dsa_switch *ds = dp->ds; dsa_slave_get_regs_len() local 1000 struct dsa_switch *ds = dp->ds; dsa_slave_get_regs() local 1016 struct dsa_switch *ds = dp->ds; dsa_slave_get_eeprom_len() local 1031 struct dsa_switch *ds = dp->ds; dsa_slave_get_eeprom() local 1043 struct dsa_switch *ds = dp->ds; dsa_slave_set_eeprom() local 1055 struct dsa_switch *ds = dp->ds; dsa_slave_get_strings() local 1078 struct dsa_switch *ds = dp->ds; dsa_slave_get_ethtool_stats() local 1106 struct dsa_switch *ds = dp->ds; dsa_slave_get_sset_count() local 1129 struct dsa_switch *ds = dp->ds; dsa_slave_get_eth_phy_stats() local 1139 struct dsa_switch *ds = dp->ds; dsa_slave_get_eth_mac_stats() local 1150 struct dsa_switch *ds = dp->ds; dsa_slave_get_eth_ctrl_stats() local 1162 struct dsa_switch *ds = dp->ds; dsa_slave_get_rmon_stats() local 1172 struct dsa_switch *ds = dp->ds; dsa_slave_net_selftest() local 1186 struct dsa_switch *ds = dp->ds; dsa_slave_get_mm() local 1198 struct dsa_switch *ds = dp->ds; dsa_slave_set_mm() local 1210 struct dsa_switch *ds = dp->ds; dsa_slave_get_mm_stats() local 1219 struct dsa_switch *ds = dp->ds; dsa_slave_get_wol() local 1230 struct dsa_switch *ds = dp->ds; dsa_slave_set_wol() local 1244 struct dsa_switch *ds = dp->ds; dsa_slave_set_eee() local 1264 struct dsa_switch *ds = dp->ds; dsa_slave_get_eee() local 1301 struct dsa_switch *ds = dp->ds; dsa_slave_get_pause_stats() local 1388 struct dsa_switch *ds = dp->ds; dsa_slave_add_cls_matchall_mirred() local 1442 struct dsa_switch *ds = dp->ds; dsa_slave_add_cls_matchall_police() local 1515 struct dsa_switch *ds = dp->ds; dsa_slave_del_cls_matchall() local 1563 struct dsa_switch *ds = dp->ds; dsa_slave_add_cls_flower() local 1577 struct dsa_switch *ds = dp->ds; dsa_slave_del_cls_flower() local 1591 struct dsa_switch *ds = dp->ds; dsa_slave_stats_cls_flower() local 1688 dsa_slave_setup_ft_block(struct dsa_switch *ds, int port, void *type_data) dsa_slave_setup_ft_block() argument 1703 struct dsa_switch *ds = dp->ds; dsa_slave_setup_tc() local 1724 struct dsa_switch *ds = dp->ds; dsa_slave_get_rxnfc() local 1736 struct dsa_switch *ds = dp->ds; dsa_slave_set_rxnfc() local 1748 struct dsa_switch *ds = p->dp->ds; dsa_slave_get_ts_info() local 1767 struct dsa_switch *ds = dp->ds; dsa_slave_vlan_rx_add_vid() local 1840 struct dsa_switch *ds = dp->ds; dsa_slave_vlan_rx_kill_vid() local 2074 struct dsa_switch *ds = dp->ds; dsa_slave_change_mtu() local 2159 struct dsa_switch *ds = dp->ds; dsa_slave_dcbnl_set_default_prio() local 2186 struct dsa_switch *ds = dp->ds; dsa_slave_dcbnl_add_dscp_prio() local 2239 struct dsa_switch *ds = dp->ds; dsa_slave_dcbnl_del_default_prio() local 2266 struct dsa_switch *ds = dp->ds; dsa_slave_dcbnl_del_dscp_prio() local 2311 struct dsa_switch *ds = dp->ds; dsa_slave_dcbnl_init() local 2401 struct dsa_switch *ds = dp->ds; dsa_slave_get_stats64() local 2452 dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up) dsa_port_phylink_mac_change() argument 2465 struct dsa_switch *ds = dp->ds; dsa_slave_phylink_fixed_state() local 2478 struct dsa_switch *ds = dp->ds; dsa_slave_phy_connect() local 2495 struct dsa_switch *ds = dp->ds; dsa_slave_phy_setup() local 2540 const struct dsa_switch *ds = dp->ds; dsa_slave_setup_tagger() local 2597 struct dsa_switch *ds = port->ds; dsa_slave_create() local 2744 struct dsa_switch *ds = dp->ds; dsa_slave_change_master() local 3029 struct dsa_switch *ds; dsa_slave_prechangeupper_sanity_check() local 3480 struct dsa_switch *ds; dsa_slave_switchdev_event_work() local 3547 struct dsa_switch *ds = dp->ds; dsa_slave_fdb_event() local [all...] |
H A D | tag_8021q.c | 74 struct dsa_switch *ds; member 94 return DSA_8021Q_RSV | DSA_8021Q_SWITCH_ID(dp->ds->index) | in dsa_tag_8021q_standalone_vid() 145 struct dsa_8021q_context *ctx = dp->ds->tag_8021q_ctx; in dsa_port_do_tag_8021q_vlan_add() 146 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_add() local 153 return ds->ops->tag_8021q_vlan_add(ds, port, vid, flags); in dsa_port_do_tag_8021q_vlan_add() 165 err = ds->ops->tag_8021q_vlan_add(ds, port, vid, flags); in dsa_port_do_tag_8021q_vlan_add() 181 struct dsa_8021q_context *ctx = dp->ds in dsa_port_do_tag_8021q_vlan_del() 182 struct dsa_switch *ds = dp->ds; dsa_port_do_tag_8021q_vlan_del() local 217 dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds, struct dsa_notifier_tag_8021q_vlan_info *info) dsa_switch_tag_8021q_vlan_add() argument 249 dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds, struct dsa_notifier_tag_8021q_vlan_info *info) dsa_switch_tag_8021q_vlan_del() argument 288 dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge) dsa_tag_8021q_bridge_join() argument 311 dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) dsa_tag_8021q_bridge_leave() argument 336 dsa_tag_8021q_port_setup(struct dsa_switch *ds, int port) dsa_tag_8021q_port_setup() argument 366 dsa_tag_8021q_port_teardown(struct dsa_switch *ds, int port) dsa_tag_8021q_port_teardown() argument 386 dsa_tag_8021q_setup(struct dsa_switch *ds) dsa_tag_8021q_setup() argument 405 dsa_tag_8021q_teardown(struct dsa_switch *ds) dsa_tag_8021q_teardown() argument 415 dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto) dsa_tag_8021q_register() argument 443 dsa_tag_8021q_unregister(struct dsa_switch *ds) dsa_tag_8021q_unregister() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | dabtree.c | 31 struct xchk_da_btree *ds, in xchk_da_process_error() 35 struct xfs_scrub *sc = ds->sc; in xchk_da_process_error() 53 trace_xchk_file_op_error(sc, ds->dargs.whichfork, in xchk_da_process_error() 54 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_process_error() 55 ds->state->path.blk[level].blkno), in xchk_da_process_error() 68 struct xchk_da_btree *ds, in xchk_da_set_corrupt() 71 struct xfs_scrub *sc = ds->sc; in xchk_da_set_corrupt() 75 trace_xchk_fblock_error(sc, ds->dargs.whichfork, in xchk_da_set_corrupt() 76 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_set_corrupt() 77 ds in xchk_da_set_corrupt() 30 xchk_da_process_error( struct xchk_da_btree *ds, int level, int *error) xchk_da_process_error() argument 67 xchk_da_set_corrupt( struct xchk_da_btree *ds, int level) xchk_da_set_corrupt() argument 82 xchk_da_btree_node_entry( struct xchk_da_btree *ds, int level) xchk_da_btree_node_entry() argument 97 xchk_da_btree_hash( struct xchk_da_btree *ds, int level, __be32 *hashp) xchk_da_btree_hash() argument 129 xchk_da_btree_ptr_ok( struct xchk_da_btree *ds, int level, xfs_dablk_t blkno) xchk_da_btree_ptr_ok() argument 217 xchk_da_btree_block_check_sibling( struct xchk_da_btree *ds, int level, int direction, xfs_dablk_t sibling) xchk_da_btree_block_check_sibling() argument 277 xchk_da_btree_block_check_siblings( struct xchk_da_btree *ds, int level, struct xfs_da_blkinfo *hdr) xchk_da_btree_block_check_siblings() argument 312 xchk_da_btree_block( struct xchk_da_btree *ds, int level, xfs_dablk_t blkno) xchk_da_btree_block() argument 477 struct xchk_da_btree *ds; xchk_da_btree() local [all...] |
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A D | dabtree.c | 31 struct xchk_da_btree *ds, in xchk_da_process_error() 35 struct xfs_scrub *sc = ds->sc; in xchk_da_process_error() 52 trace_xchk_file_op_error(sc, ds->dargs.whichfork, in xchk_da_process_error() 53 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_process_error() 54 ds->state->path.blk[level].blkno), in xchk_da_process_error() 67 struct xchk_da_btree *ds, in xchk_da_set_corrupt() 70 struct xfs_scrub *sc = ds->sc; in xchk_da_set_corrupt() 74 trace_xchk_fblock_error(sc, ds->dargs.whichfork, in xchk_da_set_corrupt() 75 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_set_corrupt() 76 ds in xchk_da_set_corrupt() 30 xchk_da_process_error( struct xchk_da_btree *ds, int level, int *error) xchk_da_process_error() argument 66 xchk_da_set_corrupt( struct xchk_da_btree *ds, int level) xchk_da_set_corrupt() argument 81 xchk_da_btree_node_entry( struct xchk_da_btree *ds, int level) xchk_da_btree_node_entry() argument 96 xchk_da_btree_hash( struct xchk_da_btree *ds, int level, __be32 *hashp) xchk_da_btree_hash() argument 128 xchk_da_btree_ptr_ok( struct xchk_da_btree *ds, int level, xfs_dablk_t blkno) xchk_da_btree_ptr_ok() argument 216 xchk_da_btree_block_check_sibling( struct xchk_da_btree *ds, int level, int direction, xfs_dablk_t sibling) xchk_da_btree_block_check_sibling() argument 276 xchk_da_btree_block_check_siblings( struct xchk_da_btree *ds, int level, struct xfs_da_blkinfo *hdr) xchk_da_btree_block_check_siblings() argument 311 xchk_da_btree_block( struct xchk_da_btree *ds, int level, xfs_dablk_t blkno) xchk_da_btree_block() argument 476 struct xchk_da_btree ds = {}; xchk_da_btree() local [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | dsa.h | 207 struct dsa_switch *ds; member 339 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() argument 341 struct dsa_switch_tree *dst = ds->dst; in dsa_to_port() 345 if (dp->ds == ds && dp->index == p) in dsa_to_port() 351 static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p) in dsa_is_unused_port() argument 353 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; in dsa_is_unused_port() 356 static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p) in dsa_is_cpu_port() argument 358 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; in dsa_is_cpu_port() 361 static inline bool dsa_is_dsa_port(struct dsa_switch *ds, in argument 366 dsa_is_user_port(struct dsa_switch *ds, int p) dsa_is_user_port() argument 371 dsa_user_ports(struct dsa_switch *ds) dsa_user_ports() argument 384 dsa_routing_port(struct dsa_switch *ds, int device) dsa_routing_port() argument 397 dsa_towards_port(struct dsa_switch *ds, int device, int port) dsa_towards_port() argument 407 dsa_upstream_port(struct dsa_switch *ds, int port) dsa_upstream_port() argument 420 const struct dsa_switch *ds = dp->ds; dsa_port_is_vlan_filtering() local 695 struct dsa_switch *ds; global() member 813 dsa_switch_suspend(struct dsa_switch *ds) dsa_switch_suspend() argument 817 dsa_switch_resume(struct dsa_switch *ds) dsa_switch_resume() argument [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | dsa.h | 98 int (*connect)(struct dsa_switch *ds); 99 void (*disconnect)(struct dsa_switch *ds); 178 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr)) 256 struct dsa_switch *ds; member 491 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() argument 493 struct dsa_switch_tree *dst = ds->dst; in dsa_to_port() 497 if (dp->ds == ds && dp->index == p) in dsa_to_port() 529 static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p) in dsa_is_unused_port() argument 531 return dsa_to_port(ds, in dsa_is_unused_port() 534 dsa_is_cpu_port(struct dsa_switch *ds, int p) dsa_is_cpu_port() argument 539 dsa_is_dsa_port(struct dsa_switch *ds, int p) dsa_is_dsa_port() argument 544 dsa_is_user_port(struct dsa_switch *ds, int p) dsa_is_user_port() argument 589 dsa_user_ports(struct dsa_switch *ds) dsa_user_ports() argument 600 dsa_cpu_ports(struct dsa_switch *ds) dsa_cpu_ports() argument 612 dsa_routing_port(struct dsa_switch *ds, int device) dsa_routing_port() argument 625 dsa_towards_port(struct dsa_switch *ds, int device, int port) dsa_towards_port() argument 635 dsa_upstream_port(struct dsa_switch *ds, int port) dsa_upstream_port() argument 647 dsa_is_upstream_port(struct dsa_switch *ds, int port) dsa_is_upstream_port() argument 656 dsa_is_downstream_port(struct dsa_switch *ds, int port) dsa_is_downstream_port() argument 662 dsa_switch_upstream_port(struct dsa_switch *ds) dsa_switch_upstream_port() argument 692 const struct dsa_switch *ds = dp->ds; dsa_port_is_vlan_filtering() local 1275 struct dsa_switch *ds; global() member 1355 dsa_switch_suspend(struct dsa_switch *ds) dsa_switch_suspend() argument 1359 dsa_switch_resume(struct dsa_switch *ds) dsa_switch_resume() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/ocelot/ |
H A D | felix.c | 45 static int felix_cpu_port_for_master(struct dsa_switch *ds, in felix_cpu_port_for_master() argument 48 struct ocelot *ocelot = ds->priv; in felix_cpu_port_for_master() 67 static int felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_rx() argument 71 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add_rx() 107 static int felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_del_rx() argument 112 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_del_rx() 129 static int felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_tx() argument 133 unsigned long cpu_ports = dsa_cpu_ports(ds); in felix_tag_8021q_vlan_add_tx() 134 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add_tx() 196 static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, in argument 227 felix_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, u16 flags) felix_tag_8021q_vlan_add() argument 259 felix_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) felix_tag_8021q_vlan_del() argument 286 felix_trap_get_cpu_port(struct dsa_switch *ds, const struct ocelot_vcap_filter *trap) felix_trap_get_cpu_port() argument 305 felix_update_trapping_destinations(struct dsa_switch *ds, bool using_tag_8021q) felix_update_trapping_destinations() argument 408 felix_tag_npi_setup(struct dsa_switch *ds) felix_tag_npi_setup() argument 430 felix_tag_npi_teardown(struct dsa_switch *ds) felix_tag_npi_teardown() argument 437 felix_tag_npi_get_host_fwd_mask(struct dsa_switch *ds) felix_tag_npi_get_host_fwd_mask() argument 444 felix_tag_npi_change_master(struct dsa_switch *ds, int port, struct net_device *master, struct netlink_ext_ack *extack) felix_tag_npi_change_master() argument 492 felix_tag_8021q_setup(struct dsa_switch *ds) felix_tag_8021q_setup() argument 536 felix_tag_8021q_teardown(struct dsa_switch *ds) felix_tag_8021q_teardown() argument 559 felix_tag_8021q_get_host_fwd_mask(struct dsa_switch *ds) felix_tag_8021q_get_host_fwd_mask() argument 564 felix_tag_8021q_change_master(struct dsa_switch *ds, int port, struct net_device *master, struct netlink_ext_ack *extack) felix_tag_8021q_change_master() argument 584 felix_set_host_flood(struct dsa_switch *ds, unsigned long mask, bool uc, bool mc, bool bc) felix_set_host_flood() argument 603 felix_migrate_host_flood(struct dsa_switch *ds, const struct felix_tag_proto_ops *proto_ops, const struct felix_tag_proto_ops *old_proto_ops) felix_migrate_host_flood() argument 621 felix_migrate_mdbs(struct dsa_switch *ds, const struct felix_tag_proto_ops *proto_ops, const struct felix_tag_proto_ops *old_proto_ops) felix_migrate_mdbs() argument 643 felix_tag_proto_setup_shared(struct dsa_switch *ds, const struct felix_tag_proto_ops *proto_ops, const struct felix_tag_proto_ops *old_proto_ops) felix_tag_proto_setup_shared() argument 665 felix_change_tag_protocol(struct dsa_switch *ds, enum dsa_tag_protocol proto) felix_change_tag_protocol() argument 712 felix_get_tag_protocol(struct dsa_switch *ds, int port, enum dsa_tag_protocol mp) felix_get_tag_protocol() argument 722 felix_port_set_host_flood(struct dsa_switch *ds, int port, bool uc, bool mc) felix_port_set_host_flood() argument 744 felix_port_change_master(struct dsa_switch *ds, int port, struct net_device *master, struct netlink_ext_ack *extack) felix_port_change_master() argument 754 felix_set_ageing_time(struct dsa_switch *ds, unsigned int ageing_time) felix_set_ageing_time() argument 764 felix_port_fast_age(struct dsa_switch *ds, int port) felix_port_fast_age() argument 775 felix_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, void *data) felix_fdb_dump() argument 783 felix_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) felix_fdb_add() argument 804 felix_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) felix_fdb_del() argument 825 felix_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag lag, const unsigned char *addr, u16 vid, struct dsa_db db) felix_lag_fdb_add() argument 838 felix_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag lag, const unsigned char *addr, u16 vid, struct dsa_db db) felix_lag_fdb_del() argument 851 felix_mdb_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) felix_mdb_add() argument 871 felix_mdb_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) felix_mdb_del() argument 891 felix_bridge_stp_state_set(struct dsa_switch *ds, int port, u8 state) felix_bridge_stp_state_set() argument 899 felix_pre_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags val, struct netlink_ext_ack *extack) felix_pre_bridge_flags() argument 908 felix_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags val, struct netlink_ext_ack *extack) felix_bridge_flags() argument 922 felix_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) felix_bridge_join() argument 932 felix_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) felix_bridge_leave() argument 940 felix_lag_join(struct dsa_switch *ds, int port, struct dsa_lag lag, struct netdev_lag_upper_info *info, struct netlink_ext_ack *extack) felix_lag_join() argument 959 felix_lag_leave(struct dsa_switch *ds, int port, struct dsa_lag lag) felix_lag_leave() argument 973 felix_lag_change(struct dsa_switch *ds, int port) felix_lag_change() argument 983 felix_vlan_prepare(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) felix_vlan_prepare() argument 1007 felix_vlan_filtering(struct dsa_switch *ds, int port, bool enabled, struct netlink_ext_ack *extack) felix_vlan_filtering() argument 1015 felix_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) felix_vlan_add() argument 1032 felix_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) felix_vlan_del() argument 1040 felix_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) felix_phylink_get_caps() argument 1053 felix_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int mode, const struct phylink_link_state *state) felix_phylink_mac_config() argument 1064 felix_phylink_mac_select_pcs(struct dsa_switch *ds, int port, phy_interface_t iface) felix_phylink_mac_select_pcs() argument 1078 felix_phylink_mac_link_down(struct dsa_switch *ds, int port, unsigned int link_an_mode, phy_interface_t interface) felix_phylink_mac_link_down() argument 1091 felix_phylink_mac_link_up(struct dsa_switch *ds, int port, unsigned int link_an_mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) felix_phylink_mac_link_up() argument 1109 felix_port_enable(struct dsa_switch *ds, int port, struct phy_device *phydev) felix_port_enable() argument 1151 felix_get_stats64(struct dsa_switch *ds, int port, struct rtnl_link_stats64 *stats) felix_get_stats64() argument 1159 felix_get_pause_stats(struct dsa_switch *ds, int port, struct ethtool_pause_stats *pause_stats) felix_get_pause_stats() argument 1167 felix_get_rmon_stats(struct dsa_switch *ds, int port, struct ethtool_rmon_stats *rmon_stats, const struct ethtool_rmon_hist_range **ranges) felix_get_rmon_stats() argument 1176 felix_get_eth_ctrl_stats(struct dsa_switch *ds, int port, struct ethtool_eth_ctrl_stats *ctrl_stats) felix_get_eth_ctrl_stats() argument 1184 felix_get_eth_mac_stats(struct dsa_switch *ds, int port, struct ethtool_eth_mac_stats *mac_stats) felix_get_eth_mac_stats() argument 1192 felix_get_eth_phy_stats(struct dsa_switch *ds, int port, struct ethtool_eth_phy_stats *phy_stats) felix_get_eth_phy_stats() argument 1200 felix_get_strings(struct dsa_switch *ds, int port, u32 stringset, u8 *data) felix_get_strings() argument 1208 felix_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data) felix_get_ethtool_stats() argument 1215 felix_get_sset_count(struct dsa_switch *ds, int port, int sset) felix_get_sset_count() argument 1222 felix_get_ts_info(struct dsa_switch *ds, int port, struct ethtool_ts_info *info) felix_get_ts_info() argument 1500 struct dsa_switch *ds = xmit_work->dp->ds; felix_port_deferred_xmit() local 1528 felix_connect_tag_protocol(struct dsa_switch *ds, enum dsa_tag_protocol proto) felix_connect_tag_protocol() argument 1546 felix_setup(struct dsa_switch *ds) felix_setup() argument 1616 felix_teardown(struct dsa_switch *ds) felix_teardown() argument 1638 felix_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr) felix_hwtstamp_get() argument 1646 felix_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr) felix_hwtstamp_set() argument 1713 felix_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb, unsigned int type) felix_rxtstamp() argument 1760 felix_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb) felix_txtstamp() argument 1780 felix_change_mtu(struct dsa_switch *ds, int port, int new_mtu) felix_change_mtu() argument 1797 felix_get_max_mtu(struct dsa_switch *ds, int port) felix_get_max_mtu() argument 1804 felix_cls_flower_add(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) felix_cls_flower_add() argument 1821 felix_cls_flower_del(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) felix_cls_flower_del() argument 1829 felix_cls_flower_stats(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) felix_cls_flower_stats() argument 1837 felix_port_policer_add(struct dsa_switch *ds, int port, struct dsa_mall_policer_tc_entry *policer) felix_port_policer_add() argument 1849 felix_port_policer_del(struct dsa_switch *ds, int port) felix_port_policer_del() argument 1856 felix_port_mirror_add(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror, bool ingress, struct netlink_ext_ack *extack) felix_port_mirror_add() argument 1866 felix_port_mirror_del(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror) felix_port_mirror_del() argument 1874 felix_port_setup_tc(struct dsa_switch *ds, int port, enum tc_setup_type type, void *type_data) felix_port_setup_tc() argument 1887 felix_sb_pool_get(struct dsa_switch *ds, unsigned int sb_index, u16 pool_index, struct devlink_sb_pool_info *pool_info) felix_sb_pool_get() argument 1896 felix_sb_pool_set(struct dsa_switch *ds, unsigned int sb_index, u16 pool_index, u32 size, enum devlink_sb_threshold_type threshold_type, struct netlink_ext_ack *extack) felix_sb_pool_set() argument 1907 felix_sb_port_pool_get(struct dsa_switch *ds, int port, unsigned int sb_index, u16 pool_index, u32 *p_threshold) felix_sb_port_pool_get() argument 1917 felix_sb_port_pool_set(struct dsa_switch *ds, int port, unsigned int sb_index, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) felix_sb_port_pool_set() argument 1927 felix_sb_tc_pool_bind_get(struct dsa_switch *ds, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 *p_pool_index, u32 *p_threshold) felix_sb_tc_pool_bind_get() argument 1939 felix_sb_tc_pool_bind_set(struct dsa_switch *ds, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) felix_sb_tc_pool_bind_set() argument 1952 felix_sb_occ_snapshot(struct dsa_switch *ds, unsigned int sb_index) felix_sb_occ_snapshot() argument 1960 felix_sb_occ_max_clear(struct dsa_switch *ds, unsigned int sb_index) felix_sb_occ_max_clear() argument 1968 felix_sb_occ_port_pool_get(struct dsa_switch *ds, int port, unsigned int sb_index, u16 pool_index, u32 *p_cur, u32 *p_max) felix_sb_occ_port_pool_get() argument 1978 felix_sb_occ_tc_port_bind_get(struct dsa_switch *ds, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u32 *p_cur, u32 *p_max) felix_sb_occ_tc_port_bind_get() argument 1989 felix_mrp_add(struct dsa_switch *ds, int port, const struct switchdev_obj_mrp *mrp) felix_mrp_add() argument 1997 felix_mrp_del(struct dsa_switch *ds, int port, const struct switchdev_obj_mrp *mrp) felix_mrp_del() argument 2006 felix_mrp_add_ring_role(struct dsa_switch *ds, int port, const struct switchdev_obj_ring_role_mrp *mrp) felix_mrp_add_ring_role() argument 2015 felix_mrp_del_ring_role(struct dsa_switch *ds, int port, const struct switchdev_obj_ring_role_mrp *mrp) felix_mrp_del_ring_role() argument 2023 felix_port_get_default_prio(struct dsa_switch *ds, int port) felix_port_get_default_prio() argument 2030 felix_port_set_default_prio(struct dsa_switch *ds, int port, u8 prio) felix_port_set_default_prio() argument 2038 felix_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp) felix_port_get_dscp_prio() argument 2045 felix_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio) felix_port_add_dscp_prio() argument 2053 felix_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio) felix_port_del_dscp_prio() argument 2061 felix_get_mm(struct dsa_switch *ds, int port, struct ethtool_mm_state *state) felix_get_mm() argument 2069 felix_set_mm(struct dsa_switch *ds, int port, struct ethtool_mm_cfg *cfg, struct netlink_ext_ack *extack) felix_set_mm() argument 2078 felix_get_mm_stats(struct dsa_switch *ds, int port, struct ethtool_mm_stats *stats) felix_get_mm_stats() argument 2174 struct dsa_switch *ds = felix->ds; felix_port_to_netdev() local [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | dock.c | 66 * @ds: Dock station. 71 static int add_dock_dependent_device(struct dock_station *ds, in add_dock_dependent_device() argument 82 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device() 132 struct dock_station *ds; in find_dock_station() local 134 list_for_each_entry(ds, &dock_stations, sibling) in find_dock_station() 135 if (ds->handle == handle) in find_dock_station() 136 return ds; in find_dock_station() 143 * @ds: the dock station 150 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device() argument 154 list_for_each_entry(dd, &ds in find_dock_dependent_device() 164 struct dock_station *ds = find_dock_station(dshandle); register_dock_dependent_device() local 207 dock_present(struct dock_station *ds) dock_present() argument 224 hot_remove_dock_devices(struct dock_station *ds) hot_remove_dock_devices() argument 251 hotplug_dock_devices(struct dock_station *ds, u32 event) hotplug_dock_devices() argument 280 dock_event(struct dock_station *ds, u32 event, int num) dock_event() argument 313 handle_dock(struct dock_station *ds, int dock) handle_dock() argument 333 dock(struct dock_station *ds) dock() argument 338 undock(struct dock_station *ds) undock() argument 343 begin_dock(struct dock_station *ds) begin_dock() argument 348 complete_dock(struct dock_station *ds) complete_dock() argument 354 begin_undock(struct dock_station *ds) begin_undock() argument 359 complete_undock(struct dock_station *ds) complete_undock() argument 372 dock_in_progress(struct dock_station *ds) dock_in_progress() argument 386 handle_eject_request(struct dock_station *ds, u32 event) handle_eject_request() argument 424 struct dock_station *ds = find_dock_station(handle); dock_notify() local 587 struct dock_station *dock_station, ds = { NULL, }; acpi_dock_add() local [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | dock.c | 66 * @ds: Dock station. 71 static int add_dock_dependent_device(struct dock_station *ds, in add_dock_dependent_device() argument 82 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device() 132 struct dock_station *ds; in find_dock_station() local 134 list_for_each_entry(ds, &dock_stations, sibling) in find_dock_station() 135 if (ds->handle == handle) in find_dock_station() 136 return ds; in find_dock_station() 143 * @ds: the dock station 150 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device() argument 154 list_for_each_entry(dd, &ds in find_dock_dependent_device() 164 struct dock_station *ds = find_dock_station(dshandle); register_dock_dependent_device() local 207 dock_present(struct dock_station *ds) dock_present() argument 224 hot_remove_dock_devices(struct dock_station *ds) hot_remove_dock_devices() argument 251 hotplug_dock_devices(struct dock_station *ds, u32 event) hotplug_dock_devices() argument 281 dock_event(struct dock_station *ds, u32 event, int num) dock_event() argument 314 handle_dock(struct dock_station *ds, int dock) handle_dock() argument 334 dock(struct dock_station *ds) dock() argument 339 undock(struct dock_station *ds) undock() argument 344 begin_dock(struct dock_station *ds) begin_dock() argument 349 complete_dock(struct dock_station *ds) complete_dock() argument 355 begin_undock(struct dock_station *ds) begin_undock() argument 360 complete_undock(struct dock_station *ds) complete_undock() argument 373 dock_in_progress(struct dock_station *ds) dock_in_progress() argument 387 handle_eject_request(struct dock_station *ds, u32 event) handle_eject_request() argument 425 struct dock_station *ds = find_dock_station(handle); dock_notify() local 589 struct dock_station *dock_station, ds = { NULL, }; acpi_dock_add() local [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 86 static int sja1105_drop_untagged(struct dsa_switch *ds, int port, bool drop) in sja1105_drop_untagged() argument 88 struct sja1105_private *priv = ds->priv; in sja1105_drop_untagged() 117 static int sja1105_commit_pvid(struct dsa_switch *ds, int port) in sja1105_commit_pvid() argument 119 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_commit_pvid() 121 struct sja1105_private *priv = ds->priv; in sja1105_commit_pvid() 152 if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port)) in sja1105_commit_pvid() 155 return sja1105_drop_untagged(ds, port, drop_untagged); in sja1105_commit_pvid() 200 struct dsa_switch *ds = priv->ds; in sja1105_init_mac_settings() local 251 struct dsa_switch *ds = priv->ds; sja1105_init_mii_settings() local 414 struct dsa_switch *ds = priv->ds; sja1105_init_l2_lookup_params() local 472 struct dsa_switch *ds = priv->ds; sja1105_init_static_vlan() local 510 struct dsa_switch *ds = priv->ds; sja1105_init_l2_forwarding() local 644 struct dsa_switch *ds = priv->ds; sja1110_init_pcp_remapping() local 793 struct dsa_switch *ds = priv->ds; sja1105_init_topology() local 1009 struct dsa_switch *ds = priv->ds; sja1105_init_l2_policing() local 1359 sja1105_mac_select_pcs(struct dsa_switch *ds, int port, phy_interface_t iface) sja1105_mac_select_pcs() argument 1370 sja1105_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) sja1105_mac_link_down() argument 1377 sja1105_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) sja1105_mac_link_up() argument 1391 sja1105_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) sja1105_phylink_get_caps() argument 1548 sja1105et_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) sja1105et_fdb_add() argument 1633 sja1105et_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) sja1105et_fdb_del() argument 1668 sja1105pqrs_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) sja1105pqrs_fdb_add() argument 1759 sja1105pqrs_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) sja1105pqrs_fdb_del() argument 1796 sja1105_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) sja1105_fdb_add() argument 1823 __sja1105_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) __sja1105_fdb_del() argument 1845 sja1105_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) sja1105_fdb_del() argument 1859 sja1105_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, void *data) sja1105_fdb_dump() argument 1908 sja1105_fast_age(struct dsa_switch *ds, int port) sja1105_fast_age() argument 1960 sja1105_mdb_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) sja1105_mdb_add() argument 1967 sja1105_mdb_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) sja1105_mdb_del() argument 1983 struct dsa_switch *ds = priv->ds; sja1105_manage_flood_domains() local 2018 sja1105_bridge_member(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool member) sja1105_bridge_member() argument 2067 sja1105_bridge_stp_state_set(struct dsa_switch *ds, int port, u8 state) sja1105_bridge_stp_state_set() argument 2112 sja1105_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) sja1105_bridge_join() argument 2134 sja1105_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) sja1105_bridge_leave() argument 2197 sja1105_setup_tc_cbs(struct dsa_switch *ds, int port, struct tc_cbs_qopt_offload *offload) sja1105_setup_tc_cbs() argument 2294 struct dsa_switch *ds = priv->ds; sja1105_static_config_reload() local 2419 sja1105_get_tag_protocol(struct dsa_switch *ds, int port, enum dsa_tag_protocol mp) sja1105_get_tag_protocol() argument 2431 sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled, struct netlink_ext_ack *extack) sja1105_vlan_filtering() argument 2562 sja1105_bridge_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) sja1105_bridge_vlan_add() argument 2592 sja1105_bridge_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) sja1105_bridge_vlan_del() argument 2608 sja1105_dsa_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, u16 flags) sja1105_dsa_8021q_vlan_add() argument 2631 sja1105_dsa_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) sja1105_dsa_8021q_vlan_del() argument 2638 sja1105_prechangeupper(struct dsa_switch *ds, int port, struct netdev_notifier_changeupper_info *info) sja1105_prechangeupper() argument 2666 sja1105_mgmt_xmit(struct dsa_switch *ds, int port, int slot, struct sk_buff *skb, bool takets) sja1105_mgmt_xmit() argument 2735 struct dsa_switch *ds = xmit_work->dp->ds; sja1105_port_deferred_xmit() local 2754 sja1105_connect_tag_protocol(struct dsa_switch *ds, enum dsa_tag_protocol proto) sja1105_connect_tag_protocol() argument 2773 sja1105_set_ageing_time(struct dsa_switch *ds, unsigned int ageing_time) sja1105_set_ageing_time() argument 2794 sja1105_change_mtu(struct dsa_switch *ds, int port, int new_mtu) sja1105_change_mtu() argument 2814 sja1105_get_max_mtu(struct dsa_switch *ds, int port) sja1105_get_max_mtu() argument 2819 sja1105_port_setup_tc(struct dsa_switch *ds, int port, enum tc_setup_type type, void *type_data) sja1105_port_setup_tc() argument 2844 struct dsa_switch *ds = priv->ds; sja1105_mirror_apply() local 2897 sja1105_mirror_add(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror, bool ingress, struct netlink_ext_ack *extack) sja1105_mirror_add() argument 2905 sja1105_mirror_del(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror) sja1105_mirror_del() argument 2912 sja1105_port_policer_add(struct dsa_switch *ds, int port, struct dsa_mall_policer_tc_entry *policer) sja1105_port_policer_add() argument 2931 sja1105_port_policer_del(struct dsa_switch *ds, int port) sja1105_port_policer_del() argument 3016 sja1105_port_pre_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) sja1105_port_pre_bridge_flags() argument 3041 sja1105_port_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) sja1105_port_bridge_flags() argument 3088 sja1105_setup(struct dsa_switch *ds) sja1105_setup() argument 3184 sja1105_teardown(struct dsa_switch *ds) sja1105_teardown() argument 3302 struct dsa_switch *ds; sja1105_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/ |
H A D | dsa_loop.c | 50 static int dsa_loop_setup_devlink_resources(struct dsa_switch *ds) in dsa_loop_setup_devlink_resources() argument 53 struct dsa_loop_priv *ps = ds->priv; in dsa_loop_setup_devlink_resources() 60 err = dsa_devlink_resource_register(ds, "VTU", ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 67 dsa_devlink_resource_occ_get_register(ds, in dsa_loop_setup_devlink_resources() 74 dsa_devlink_resources_unregister(ds); in dsa_loop_setup_devlink_resources() 78 static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds, in dsa_loop_get_protocol() argument 82 dev_dbg(ds->dev, "%s: port: %d\n", __func__, port); in dsa_loop_get_protocol() 87 static int dsa_loop_setup(struct dsa_switch *ds) in dsa_loop_setup() argument 89 struct dsa_loop_priv *ps = ds->priv; in dsa_loop_setup() 92 for (i = 0; i < ds in dsa_loop_setup() 101 dsa_loop_teardown(struct dsa_switch *ds) dsa_loop_teardown() argument 106 dsa_loop_get_sset_count(struct dsa_switch *ds, int port, int sset) dsa_loop_get_sset_count() argument 114 dsa_loop_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data) dsa_loop_get_strings() argument 128 dsa_loop_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) dsa_loop_get_ethtool_stats() argument 138 dsa_loop_phy_read(struct dsa_switch *ds, int port, int regnum) dsa_loop_phy_read() argument 153 dsa_loop_phy_write(struct dsa_switch *ds, int port, int regnum, u16 value) dsa_loop_phy_write() argument 169 dsa_loop_port_bridge_join(struct dsa_switch *ds, int port, struct net_device *bridge) dsa_loop_port_bridge_join() argument 178 dsa_loop_port_bridge_leave(struct dsa_switch *ds, int port, struct net_device *bridge) dsa_loop_port_bridge_leave() argument 185 dsa_loop_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) dsa_loop_port_stp_state_set() argument 192 dsa_loop_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, struct switchdev_trans *trans) dsa_loop_port_vlan_filtering() argument 203 dsa_loop_port_vlan_prepare(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) dsa_loop_port_vlan_prepare() argument 221 dsa_loop_port_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) dsa_loop_port_vlan_add() argument 251 dsa_loop_port_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) dsa_loop_port_vlan_del() argument 281 dsa_loop_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu) dsa_loop_port_change_mtu() argument 291 dsa_loop_port_max_mtu(struct dsa_switch *ds, int port) dsa_loop_port_max_mtu() argument 321 struct dsa_switch *ds; dsa_loop_drv_probe() local 362 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); dsa_loop_drv_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/ |
H A D | dsa_loop.c | 50 static int dsa_loop_setup_devlink_resources(struct dsa_switch *ds) in dsa_loop_setup_devlink_resources() argument 53 struct dsa_loop_priv *ps = ds->priv; in dsa_loop_setup_devlink_resources() 60 err = dsa_devlink_resource_register(ds, "VTU", ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 67 dsa_devlink_resource_occ_get_register(ds, in dsa_loop_setup_devlink_resources() 74 dsa_devlink_resources_unregister(ds); in dsa_loop_setup_devlink_resources() 78 static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds, in dsa_loop_get_protocol() argument 82 dev_dbg(ds->dev, "%s: port: %d\n", __func__, port); in dsa_loop_get_protocol() 87 static int dsa_loop_setup(struct dsa_switch *ds) in dsa_loop_setup() argument 89 struct dsa_loop_priv *ps = ds->priv; in dsa_loop_setup() 92 for (i = 0; i < ds in dsa_loop_setup() 101 dsa_loop_teardown(struct dsa_switch *ds) dsa_loop_teardown() argument 106 dsa_loop_get_sset_count(struct dsa_switch *ds, int port, int sset) dsa_loop_get_sset_count() argument 114 dsa_loop_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data) dsa_loop_get_strings() argument 128 dsa_loop_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) dsa_loop_get_ethtool_stats() argument 138 dsa_loop_phy_read(struct dsa_switch *ds, int port, int regnum) dsa_loop_phy_read() argument 153 dsa_loop_phy_write(struct dsa_switch *ds, int port, int regnum, u16 value) dsa_loop_phy_write() argument 169 dsa_loop_port_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) dsa_loop_port_bridge_join() argument 180 dsa_loop_port_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) dsa_loop_port_bridge_leave() argument 187 dsa_loop_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) dsa_loop_port_stp_state_set() argument 194 dsa_loop_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, struct netlink_ext_ack *extack) dsa_loop_port_vlan_filtering() argument 204 dsa_loop_port_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) dsa_loop_port_vlan_add() argument 237 dsa_loop_port_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) dsa_loop_port_vlan_del() argument 265 dsa_loop_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu) dsa_loop_port_change_mtu() argument 275 dsa_loop_port_max_mtu(struct dsa_switch *ds, int port) dsa_loop_port_max_mtu() argument 304 struct dsa_switch *ds; dsa_loop_drv_probe() local 344 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); dsa_loop_drv_remove() local 358 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); dsa_loop_drv_shutdown() local [all...] |
H A D | bcm_sf2.c | 116 static unsigned int bcm_sf2_num_active_ports(struct dsa_switch *ds) in bcm_sf2_num_active_ports() argument 118 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); in bcm_sf2_num_active_ports() 121 for (port = 0; port < ds->num_ports; port++) { in bcm_sf2_num_active_ports() 122 if (dsa_is_cpu_port(ds, port)) in bcm_sf2_num_active_ports() 131 static void bcm_sf2_recalc_clock(struct dsa_switch *ds) in bcm_sf2_recalc_clock() argument 133 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); in bcm_sf2_recalc_clock() 144 ports_active = bcm_sf2_num_active_ports(ds); in bcm_sf2_recalc_clock() 158 static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) in bcm_sf2_imp_setup() argument 160 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); in bcm_sf2_imp_setup() 185 b53_brcm_hdr_setup(ds, por in bcm_sf2_imp_setup() 202 bcm_sf2_gphy_enable_set(struct dsa_switch *ds, bool enable) bcm_sf2_gphy_enable_set() argument 280 bcm_sf2_port_setup(struct dsa_switch *ds, int port, struct phy_device *phy) bcm_sf2_port_setup() argument 349 bcm_sf2_port_disable(struct dsa_switch *ds, int port) bcm_sf2_port_disable() argument 442 struct dsa_switch *ds = dev_id; bcm_sf2_switch_0_isr() local 454 struct dsa_switch *ds = dev_id; bcm_sf2_switch_1_isr() local 607 bcm_sf2_mdio_register(struct dsa_switch *ds) bcm_sf2_mdio_register() argument 708 bcm_sf2_sw_get_phy_flags(struct dsa_switch *ds, int port) bcm_sf2_sw_get_phy_flags() argument 724 bcm_sf2_sw_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) bcm_sf2_sw_get_caps() argument 745 bcm_sf2_sw_mac_config(struct dsa_switch *ds, int port, unsigned int mode, const struct phylink_link_state *state) bcm_sf2_sw_mac_config() argument 791 bcm_sf2_sw_mac_link_set(struct dsa_switch *ds, int port, phy_interface_t interface, bool link) bcm_sf2_sw_mac_link_set() argument 814 bcm_sf2_sw_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) bcm_sf2_sw_mac_link_down() argument 832 bcm_sf2_sw_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) bcm_sf2_sw_mac_link_up() argument 895 bcm_sf2_sw_fixed_state(struct dsa_switch *ds, int port, struct phylink_link_state *status) bcm_sf2_sw_fixed_state() argument 925 bcm_sf2_enable_acb(struct dsa_switch *ds) bcm_sf2_enable_acb() argument 939 bcm_sf2_sw_suspend(struct dsa_switch *ds) bcm_sf2_sw_suspend() argument 961 bcm_sf2_sw_resume(struct dsa_switch *ds) bcm_sf2_sw_resume() argument 989 bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port, struct ethtool_wolinfo *wol) bcm_sf2_sw_get_wol() argument 1013 bcm_sf2_sw_set_wol(struct dsa_switch *ds, int port, struct ethtool_wolinfo *wol) bcm_sf2_sw_set_wol() argument 1043 bcm_sf2_sw_setup(struct dsa_switch *ds) bcm_sf2_sw_setup() argument 1065 bcm_sf2_sw_teardown(struct dsa_switch *ds) bcm_sf2_sw_teardown() argument 1169 bcm_sf2_sw_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data) bcm_sf2_sw_get_strings() argument 1179 bcm_sf2_sw_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) bcm_sf2_sw_get_ethtool_stats() argument 1188 bcm_sf2_sw_get_sset_count(struct dsa_switch *ds, int port, int sset) bcm_sf2_sw_get_sset_count() argument 1354 struct dsa_switch *ds; bcm_sf2_sw_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
H A D | sja1105_devlink.c | 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() 109 static void sja1105_teardown_devlink_regions(struct dsa_switch *ds) in sja1105_teardown_devlink_regions() argument 112 struct sja1105_private *priv = ds->priv; in sja1105_teardown_devlink_regions() 131 struct dsa_switch *ds = priv->ds; in sja1105_best_effort_vlan_filtering_set() local 139 for (port = 0; port < ds in sja1105_best_effort_vlan_filtering_set() 169 sja1105_devlink_param_get(struct dsa_switch *ds, u32 id, struct devlink_param_gset_ctx *ctx) sja1105_devlink_param_get() argument 188 sja1105_devlink_param_set(struct dsa_switch *ds, u32 id, struct devlink_param_gset_ctx *ctx) sja1105_devlink_param_set() argument 214 sja1105_setup_devlink_params(struct dsa_switch *ds) sja1105_setup_devlink_params() argument 220 sja1105_teardown_devlink_params(struct dsa_switch *ds) sja1105_teardown_devlink_params() argument 226 sja1105_devlink_info_get(struct dsa_switch *ds, struct devlink_info_req *req, struct netlink_ext_ack *extack) sja1105_devlink_info_get() argument 243 sja1105_devlink_setup(struct dsa_switch *ds) sja1105_devlink_setup() argument 260 sja1105_devlink_teardown(struct dsa_switch *ds) sja1105_devlink_teardown() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/ |
H A D | felix.c | 27 static enum dsa_tag_protocol felix_get_tag_protocol(struct dsa_switch *ds, in felix_get_tag_protocol() argument 34 static int felix_set_ageing_time(struct dsa_switch *ds, in felix_set_ageing_time() argument 37 struct ocelot *ocelot = ds->priv; in felix_set_ageing_time() 44 static int felix_fdb_dump(struct dsa_switch *ds, int port, in felix_fdb_dump() argument 47 struct ocelot *ocelot = ds->priv; in felix_fdb_dump() 52 static int felix_fdb_add(struct dsa_switch *ds, int port, in felix_fdb_add() argument 55 struct ocelot *ocelot = ds->priv; in felix_fdb_add() 60 static int felix_fdb_del(struct dsa_switch *ds, int port, in felix_fdb_del() argument 63 struct ocelot *ocelot = ds->priv; in felix_fdb_del() 69 static int felix_mdb_prepare(struct dsa_switch *ds, in argument 75 felix_mdb_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb) felix_mdb_add() argument 83 felix_mdb_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb) felix_mdb_del() argument 91 felix_bridge_stp_state_set(struct dsa_switch *ds, int port, u8 state) felix_bridge_stp_state_set() argument 99 felix_bridge_join(struct dsa_switch *ds, int port, struct net_device *br) felix_bridge_join() argument 107 felix_bridge_leave(struct dsa_switch *ds, int port, struct net_device *br) felix_bridge_leave() argument 116 felix_vlan_prepare(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) felix_vlan_prepare() argument 122 felix_vlan_filtering(struct dsa_switch *ds, int port, bool enabled, struct switchdev_trans *trans) felix_vlan_filtering() argument 130 felix_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) felix_vlan_add() argument 153 felix_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) felix_vlan_del() argument 171 felix_port_enable(struct dsa_switch *ds, int port, struct phy_device *phy) felix_port_enable() argument 181 felix_port_disable(struct dsa_switch *ds, int port) felix_port_disable() argument 188 felix_phylink_validate(struct dsa_switch *ds, int port, unsigned long *supported, struct phylink_link_state *state) felix_phylink_validate() argument 199 felix_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int link_an_mode, const struct phylink_link_state *state) felix_phylink_mac_config() argument 211 felix_phylink_mac_link_down(struct dsa_switch *ds, int port, unsigned int link_an_mode, phy_interface_t interface) felix_phylink_mac_link_down() argument 237 felix_phylink_mac_link_up(struct dsa_switch *ds, int port, unsigned int link_an_mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) felix_phylink_mac_link_up() argument 338 felix_get_strings(struct dsa_switch *ds, int port, u32 stringset, u8 *data) felix_get_strings() argument 346 felix_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data) felix_get_ethtool_stats() argument 353 felix_get_sset_count(struct dsa_switch *ds, int port, int sset) felix_get_sset_count() argument 360 felix_get_ts_info(struct dsa_switch *ds, int port, struct ethtool_ts_info *info) felix_get_ts_info() argument 582 felix_setup(struct dsa_switch *ds) felix_setup() argument 632 felix_teardown(struct dsa_switch *ds) felix_teardown() argument 652 felix_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr) felix_hwtstamp_get() argument 660 felix_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr) felix_hwtstamp_set() argument 668 felix_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb, unsigned int type) felix_rxtstamp() argument 696 felix_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *clone, unsigned int type) felix_txtstamp() argument 711 felix_change_mtu(struct dsa_switch *ds, int port, int new_mtu) felix_change_mtu() argument 720 felix_get_max_mtu(struct dsa_switch *ds, int port) felix_get_max_mtu() argument 727 felix_cls_flower_add(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) felix_cls_flower_add() argument 735 felix_cls_flower_del(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) felix_cls_flower_del() argument 743 felix_cls_flower_stats(struct dsa_switch *ds, int port, struct flow_cls_offload *cls, bool ingress) felix_cls_flower_stats() argument 751 felix_port_policer_add(struct dsa_switch *ds, int port, struct dsa_mall_policer_tc_entry *policer) felix_port_policer_add() argument 763 felix_port_policer_del(struct dsa_switch *ds, int port) felix_port_policer_del() argument 770 felix_port_setup_tc(struct dsa_switch *ds, int port, enum tc_setup_type type, void *type_data) felix_port_setup_tc() argument 828 struct dsa_switch *ds = felix->ds; felix_port_to_netdev() local [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/xrs700x/ |
H A D | xrs700x.c | 86 static void xrs700x_get_strings(struct dsa_switch *ds, int port, in xrs700x_get_strings() argument 100 static int xrs700x_get_sset_count(struct dsa_switch *ds, int port, int sset) in xrs700x_get_sset_count() argument 155 for (i = 0; i < priv->ds->num_ports; i++) in xrs700x_mib_work() 161 static void xrs700x_get_ethtool_stats(struct dsa_switch *ds, int port, in xrs700x_get_ethtool_stats() argument 164 struct xrs700x *priv = ds->priv; in xrs700x_get_ethtool_stats() 174 static void xrs700x_get_stats64(struct dsa_switch *ds, int port, in xrs700x_get_stats64() argument 177 struct xrs700x *priv = ds->priv; in xrs700x_get_stats64() 192 priv->ds->num_ports, in xrs700x_setup_regmap_range() 198 priv->ds->num_ports, in xrs700x_setup_regmap_range() 204 priv->ds in xrs700x_setup_regmap_range() 228 xrs700x_get_tag_protocol(struct dsa_switch *ds, int port, enum dsa_tag_protocol m) xrs700x_get_tag_protocol() argument 235 xrs700x_reset(struct dsa_switch *ds) xrs700x_reset() argument 257 xrs700x_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) xrs700x_port_stp_state_set() argument 299 xrs700x_port_add_bpdu_ipf(struct dsa_switch *ds, int port) xrs700x_port_add_bpdu_ipf() argument 342 xrs700x_port_add_hsrsup_ipf(struct dsa_switch *ds, int port, int fwdport) xrs700x_port_add_hsrsup_ipf() argument 385 xrs700x_port_setup(struct dsa_switch *ds, int port) xrs700x_port_setup() argument 419 xrs700x_setup(struct dsa_switch *ds) xrs700x_setup() argument 439 xrs700x_teardown(struct dsa_switch *ds) xrs700x_teardown() argument 446 xrs700x_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) xrs700x_phylink_get_caps() argument 469 xrs700x_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) xrs700x_mac_link_up() argument 498 xrs700x_bridge_common(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool join) xrs700x_bridge_common() argument 537 xrs700x_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) xrs700x_bridge_join() argument 544 xrs700x_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) xrs700x_bridge_leave() argument 550 xrs700x_hsr_join(struct dsa_switch *ds, int port, struct net_device *hsr) xrs700x_hsr_join() argument 642 xrs700x_hsr_leave(struct dsa_switch *ds, int port, struct net_device *hsr) xrs700x_hsr_leave() argument 744 struct dsa_switch *ds; xrs700x_switch_alloc() local [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-bio-prison-v1.c | 287 struct dm_deferred_set *ds; member 302 struct dm_deferred_set *ds; in dm_deferred_set_create() local 304 ds = kmalloc(sizeof(*ds), GFP_KERNEL); in dm_deferred_set_create() 305 if (!ds) in dm_deferred_set_create() 308 spin_lock_init(&ds->lock); in dm_deferred_set_create() 309 ds->current_entry = 0; in dm_deferred_set_create() 310 ds->sweeper = 0; in dm_deferred_set_create() 312 ds->entries[i].ds in dm_deferred_set_create() 321 dm_deferred_set_destroy(struct dm_deferred_set *ds) dm_deferred_set_destroy() argument 327 dm_deferred_entry_inc(struct dm_deferred_set *ds) dm_deferred_entry_inc() argument 346 __sweep(struct dm_deferred_set *ds, struct list_head *head) __sweep() argument 373 dm_deferred_set_add_work(struct dm_deferred_set *ds, struct list_head *work) dm_deferred_set_add_work() argument [all...] |