drivers/net/dsa/b53/b53_common.c
1043
static int b53_phy_read16(struct dsa_switch *ds, int addr, int reg)
drivers/net/dsa/b53/b53_common.c
1058
static int b53_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val)
drivers/net/dsa/b53/b53_common.c
1128
static struct phy_device *b53_get_phy_device(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
1141
void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/b53/b53_common.c
1163
void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data)
drivers/net/dsa/b53/b53_common.c
1196
void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data)
drivers/net/dsa/b53/b53_common.c
1208
int b53_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/b53/b53_common.c
1247
int b53_setup_devlink_resources(struct dsa_switch *ds)
drivers/net/dsa/b53/b53_common.c
1275
static int b53_setup(struct dsa_switch *ds)
drivers/net/dsa/b53/b53_common.c
1339
static void b53_teardown(struct dsa_switch *ds)
drivers/net/dsa/b53/b53_common.c
1436
static void b53_adjust_63xx_rgmii(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
1456
static void b53_adjust_531x5_rgmii(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
1501
static void b53_adjust_5325_mii(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
1524
void b53_port_event(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
1536
static void b53_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
1597
struct dsa_switch *ds = dp->ds;
drivers/net/dsa/b53/b53_common.c
1646
struct dsa_switch *ds = dp->ds;
drivers/net/dsa/b53/b53_common.c
1680
int b53_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering,
drivers/net/dsa/b53/b53_common.c
1694
static int b53_vlan_prepare(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
1715
int b53_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
1769
int b53_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2028
int b53_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2043
int b53_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2181
int b53_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2225
int b53_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2246
int b53_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2263
int b53_br_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge,
drivers/net/dsa/b53/b53_common.c
2330
void b53_br_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge)
drivers/net/dsa/b53/b53_common.c
2381
void b53_br_set_stp_state(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/b53/b53_common.c
2415
void b53_br_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
2424
int b53_br_flags_pre(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2441
int b53_br_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2462
static bool b53_possible_cpu_port(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
2477
static bool b53_can_enable_brcm_tags(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2503
enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2536
int b53_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2562
void b53_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_common.c
2603
int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy)
drivers/net/dsa/b53/b53_common.c
2620
bool b53_support_eee(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
2628
int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
drivers/net/dsa/b53/b53_common.c
2640
static int b53_change_mtu(struct dsa_switch *ds, int port, int mtu)
drivers/net/dsa/b53/b53_common.c
2658
static int b53_get_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
2668
int b53_set_ageing_time(struct dsa_switch *ds, unsigned int msecs)
drivers/net/dsa/b53/b53_common.c
3190
struct dsa_switch *ds;
drivers/net/dsa/b53/b53_common.c
540
void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port)
drivers/net/dsa/b53/b53_common.c
654
static void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable)
drivers/net/dsa/b53/b53_common.c
667
int b53_setup_port(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
700
int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy)
drivers/net/dsa/b53/b53_common.c
743
void b53_disable_port(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
761
void b53_brcm_hdr_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
878
static bool b53_vlan_port_needs_forced_tagged(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
885
static bool b53_vlan_port_may_join_untagged(struct dsa_switch *ds, int port)
drivers/net/dsa/b53/b53_common.c
901
int b53_configure_vlan(struct dsa_switch *ds)
drivers/net/dsa/b53/b53_priv.h
133
struct dsa_switch *ds;
drivers/net/dsa/b53/b53_priv.h
491
void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
drivers/net/dsa/b53/b53_priv.h
492
int b53_configure_vlan(struct dsa_switch *ds);
drivers/net/dsa/b53/b53_priv.h
493
void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/b53/b53_priv.h
495
void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
drivers/net/dsa/b53/b53_priv.h
496
int b53_get_sset_count(struct dsa_switch *ds, int port, int sset);
drivers/net/dsa/b53/b53_priv.h
497
void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data);
drivers/net/dsa/b53/b53_priv.h
498
int b53_set_ageing_time(struct dsa_switch *ds, unsigned int msecs);
drivers/net/dsa/b53/b53_priv.h
499
int b53_br_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge,
drivers/net/dsa/b53/b53_priv.h
501
void b53_br_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge);
drivers/net/dsa/b53/b53_priv.h
502
void b53_br_set_stp_state(struct dsa_switch *ds, int port, u8 state);
drivers/net/dsa/b53/b53_priv.h
503
void b53_br_fast_age(struct dsa_switch *ds, int port);
drivers/net/dsa/b53/b53_priv.h
504
int b53_br_flags_pre(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
507
int b53_br_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
510
int b53_setup_devlink_resources(struct dsa_switch *ds);
drivers/net/dsa/b53/b53_priv.h
511
void b53_port_event(struct dsa_switch *ds, int port);
drivers/net/dsa/b53/b53_priv.h
512
int b53_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering,
drivers/net/dsa/b53/b53_priv.h
514
int b53_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
517
int b53_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
519
int b53_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
522
int b53_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
525
int b53_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
527
int b53_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
530
int b53_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
533
int b53_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
536
enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
538
void b53_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/b53/b53_priv.h
540
int b53_setup_port(struct dsa_switch *ds, int port);
drivers/net/dsa/b53/b53_priv.h
541
int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy);
drivers/net/dsa/b53/b53_priv.h
542
void b53_disable_port(struct dsa_switch *ds, int port);
drivers/net/dsa/b53/b53_priv.h
543
void b53_brcm_hdr_setup(struct dsa_switch *ds, int port);
drivers/net/dsa/b53/b53_priv.h
544
int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy);
drivers/net/dsa/b53/b53_priv.h
545
bool b53_support_eee(struct dsa_switch *ds, int port);
drivers/net/dsa/b53/b53_priv.h
546
int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e);
drivers/net/dsa/bcm_sf2.c
1004
static void bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
1028
static int bcm_sf2_sw_set_wol(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
1058
static int bcm_sf2_sw_setup(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.c
1080
static void bcm_sf2_sw_teardown(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.c
116
static unsigned int bcm_sf2_num_active_ports(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.c
1184
static void bcm_sf2_sw_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
1194
static void bcm_sf2_sw_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
1203
static int bcm_sf2_sw_get_sset_count(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
131
static void bcm_sf2_recalc_clock(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.c
1376
struct dsa_switch *ds;
drivers/net/dsa/bcm_sf2.c
158
static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/bcm_sf2.c
202
static void bcm_sf2_gphy_enable_set(struct dsa_switch *ds, bool enable)
drivers/net/dsa/bcm_sf2.c
280
static int bcm_sf2_port_setup(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
349
static void bcm_sf2_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/bcm_sf2.c
442
struct dsa_switch *ds = dev_id;
drivers/net/dsa/bcm_sf2.c
454
struct dsa_switch *ds = dev_id;
drivers/net/dsa/bcm_sf2.c
607
static int bcm_sf2_mdio_register(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.c
708
static u32 bcm_sf2_sw_get_phy_flags(struct dsa_switch *ds, int port)
drivers/net/dsa/bcm_sf2.c
724
static void bcm_sf2_sw_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
794
static void bcm_sf2_sw_mac_link_set(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
906
static void bcm_sf2_sw_fixed_state(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.c
936
static void bcm_sf2_enable_acb(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.c
950
static int bcm_sf2_sw_suspend(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.c
972
static int bcm_sf2_sw_resume(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.h
121
static inline struct bcm_sf2_priv *bcm_sf2_to_priv(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2.h
224
int bcm_sf2_get_rxnfc(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.h
226
int bcm_sf2_set_rxnfc(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.h
229
void bcm_sf2_cfp_exit(struct dsa_switch *ds);
drivers/net/dsa/bcm_sf2.h
230
int bcm_sf2_cfp_resume(struct dsa_switch *ds);
drivers/net/dsa/bcm_sf2.h
231
void bcm_sf2_cfp_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/bcm_sf2.h
233
void bcm_sf2_cfp_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2.h
235
int bcm_sf2_cfp_get_sset_count(struct dsa_switch *ds, int port, int sset);
drivers/net/dsa/bcm_sf2_cfp.c
1102
int bcm_sf2_get_rxnfc(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2_cfp.c
1145
int bcm_sf2_set_rxnfc(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2_cfp.c
1212
void bcm_sf2_cfp_exit(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2_cfp.c
1224
int bcm_sf2_cfp_resume(struct dsa_switch *ds)
drivers/net/dsa/bcm_sf2_cfp.c
1282
void bcm_sf2_cfp_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/bcm_sf2_cfp.c
1297
void bcm_sf2_cfp_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2_cfp.c
1329
int bcm_sf2_cfp_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/bcm_sf2_cfp.c
846
static int bcm_sf2_cfp_rule_insert(struct dsa_switch *ds, int port,
drivers/net/dsa/bcm_sf2_cfp.c
926
static int bcm_sf2_cfp_rule_set(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
100
static int dsa_loop_setup(struct dsa_switch *ds)
drivers/net/dsa/dsa_loop.c
114
static void dsa_loop_teardown(struct dsa_switch *ds)
drivers/net/dsa/dsa_loop.c
119
static int dsa_loop_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/dsa_loop.c
127
static void dsa_loop_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
140
static void dsa_loop_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
150
static int dsa_loop_phy_read(struct dsa_switch *ds, int port, int regnum)
drivers/net/dsa/dsa_loop.c
165
static int dsa_loop_phy_write(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
181
static int dsa_loop_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
192
static void dsa_loop_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
199
static void dsa_loop_port_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
206
static int dsa_loop_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
216
static int dsa_loop_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
249
static int dsa_loop_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
277
static int dsa_loop_port_change_mtu(struct dsa_switch *ds, int port,
drivers/net/dsa/dsa_loop.c
287
static int dsa_loop_port_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/dsa_loop.c
292
static void dsa_loop_phylink_get_caps(struct dsa_switch *dsa, int port,
drivers/net/dsa/dsa_loop.c
325
struct dsa_switch *ds;
drivers/net/dsa/dsa_loop.c
365
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/dsa_loop.c
379
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/dsa_loop.c
63
static int dsa_loop_setup_devlink_resources(struct dsa_switch *ds)
drivers/net/dsa/dsa_loop.c
91
static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds,
drivers/net/dsa/hirschmann/hellcreek.c
1169
static int hellcreek_devlink_info_get(struct dsa_switch *ds,
drivers/net/dsa/hirschmann/hellcreek.c
1210
static int hellcreek_setup_devlink_resources(struct dsa_switch *ds)
drivers/net/dsa/hirschmann/hellcreek.c
1264
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/hirschmann/hellcreek.c
1291
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/hirschmann/hellcreek.c
1335
static int hellcreek_setup_devlink_regions(struct dsa_switch *ds)
drivers/net/dsa/hirschmann/hellcreek.c
1373
static void hellcreek_teardown_devlink_regions(struct dsa_switch *ds)
drivers/net/dsa/hirschmann/hellcreek.c
1381
static int hellcreek_setup(struct dsa_switch *ds)
drivers/net/dsa/hirschmann/hellcreek.c
1458
static void hellcreek_teardown(struct dsa_switch *ds)
drivers/net/dsa/hirschmann/hellcreek.c
1464
static void hellcreek_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
1490
hellcreek_port_prechangeupper(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
1738
static int hellcreek_port_set_schedule(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
1798
static int hellcreek_port_del_schedule(struct dsa_switch *ds, int port)
drivers/net/dsa/hirschmann/hellcreek.c
1872
static int hellcreek_port_setup_tc(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
240
static enum dsa_tag_protocol hellcreek_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/hirschmann/hellcreek.c
247
static int hellcreek_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
271
static void hellcreek_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/hirschmann/hellcreek.c
292
static void hellcreek_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
301
static int hellcreek_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/hirschmann/hellcreek.c
309
static void hellcreek_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
348
static int hellcreek_vlan_prepare(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
455
static int hellcreek_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
477
static int hellcreek_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
489
static void hellcreek_port_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
584
static void hellcreek_setup_vlan_membership(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
654
static int hellcreek_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
664
static int hellcreek_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
681
static int hellcreek_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
700
static void hellcreek_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
835
static int hellcreek_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
881
static int hellcreek_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
922
static int hellcreek_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.c
969
static int hellcreek_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek.h
280
struct dsa_switch *ds;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
112
int hellcreek_port_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
132
int hellcreek_port_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
18
int hellcreek_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
339
struct dsa_switch *ds = hellcreek->ds;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
359
void hellcreek_port_txtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
402
bool hellcreek_port_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
444
struct dsa_switch *ds = hellcreek->ds;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.h
40
int hellcreek_port_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.h
43
int hellcreek_port_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.h
46
bool hellcreek_port_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.h
48
void hellcreek_port_txtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.h
51
int hellcreek_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/ks8995.c
189
struct dsa_switch *ds;
drivers/net/dsa/ks8995.c
531
dsa_tag_protocol ks8995_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/ks8995.c
539
static int ks8995_setup(struct dsa_switch *ds)
drivers/net/dsa/ks8995.c
544
static int ks8995_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/ks8995.c
554
static void ks8995_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/ks8995.c
561
static int ks8995_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/ks8995.c
572
static int ks8995_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/ks8995.c
602
static void ks8995_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/ks8995.c
649
static void ks8995_phylink_get_caps(struct dsa_switch *dsa, int port,
drivers/net/dsa/ks8995.c
672
static int ks8995_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/ks8995.c
727
static int ks8995_get_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/lan9303-core.c
1036
static void lan9303_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1049
static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1071
static int lan9303_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/lan9303-core.c
1079
static int lan9303_phy_read(struct dsa_switch *ds, int port, int regnum)
drivers/net/dsa/lan9303-core.c
1092
static int lan9303_phy_write(struct dsa_switch *ds, int port, int regnum,
drivers/net/dsa/lan9303-core.c
1106
static int lan9303_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1120
static void lan9303_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/lan9303-core.c
1134
static int lan9303_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1150
static void lan9303_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1162
static void lan9303_port_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1202
static void lan9303_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/lan9303-core.c
1213
static int lan9303_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1224
static int lan9303_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1236
static int lan9303_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1250
static int lan9303_port_mdb_prepare(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1267
static int lan9303_port_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1283
static int lan9303_port_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1298
static void lan9303_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/lan9303-core.c
1345
struct dsa_switch *ds = dp->ds;
drivers/net/dsa/lan9303-core.c
937
static enum dsa_tag_protocol lan9303_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/lan9303-core.c
944
static int lan9303_setup(struct dsa_switch *ds)
drivers/net/dsa/lantiq/lantiq_gswip.c
32
static void gswip_xrx200_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip.c
63
static void gswip_xrx300_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip.h
264
void (*phylink_get_caps)(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip.h
268
int (*port_setup)(struct dsa_switch *ds, int port);
drivers/net/dsa/lantiq/lantiq_gswip.h
290
struct dsa_switch *ds;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1027
static int gswip_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1056
static int gswip_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1076
static void gswip_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1114
static void gswip_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1146
static int gswip_port_fdb(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1192
static int gswip_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1202
static int gswip_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1212
static int gswip_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1260
static int gswip_port_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1266
static int gswip_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1292
static void gswip_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1491
static void gswip_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1530
static void gswip_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1551
static int gswip_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1559
static int gswip_set_mac_eee(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1592
static bool gswip_support_eee(struct dsa_switch *ds, int port)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1654
static int gswip_validate_cpu_port(struct dsa_switch *ds)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
390
static int gswip_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
406
static int gswip_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
419
static int gswip_port_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
439
static int gswip_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
467
static void gswip_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
565
static int gswip_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
643
static int gswip_setup(struct dsa_switch *ds)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
742
static void gswip_teardown(struct dsa_switch *ds)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
749
static enum dsa_tag_protocol gswip_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
947
static int gswip_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
968
static void gswip_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
981
static int gswip_port_vlan_prepare(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/mxl-gsw1xx.c
530
static void gsw1xx_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/mxl-gsw1xx.c
566
static void gsw150_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/lantiq/mxl-gsw1xx.c
626
static int gsw1xx_port_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz8.c
1660
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz8.c
1712
void ksz8_config_cpu_port(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz8.c
1904
static int ksz8_handle_global_errata(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz8.c
1935
int ksz8_setup(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz8.c
272
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz8.h
15
int ksz8_setup(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz8.h
51
void ksz8_config_cpu_port(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz9477.c
1244
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz9477.c
1296
void ksz9477_config_cpu_port(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz9477.c
1461
int ksz9477_setup(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz9477.c
1538
void ksz9477_hsr_join(struct dsa_switch *ds, int port, struct net_device *hsr)
drivers/net/dsa/microchip/ksz9477.c
1577
void ksz9477_hsr_leave(struct dsa_switch *ds, int port, struct net_device *hsr)
drivers/net/dsa/microchip/ksz9477.h
14
int ksz9477_setup(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz9477.h
54
void ksz9477_config_cpu_port(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz9477.h
61
void ksz9477_hsr_join(struct dsa_switch *ds, int port, struct net_device *hsr);
drivers/net/dsa/microchip/ksz9477.h
62
void ksz9477_hsr_leave(struct dsa_switch *ds, int port, struct net_device *hsr);
drivers/net/dsa/microchip/ksz9477.h
66
int ksz9477_cls_flower_add(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz9477.h
68
int ksz9477_cls_flower_del(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz9477_tc_flower.c
215
int ksz9477_cls_flower_add(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz9477_tc_flower.c
269
int ksz9477_cls_flower_del(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
2196
static void ksz_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
2342
static void ksz_get_stats64(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
2355
static void ksz_get_pause_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
2368
static void ksz_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
2407
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz_common.c
2563
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz_common.c
2587
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz_common.c
2627
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz_common.c
2721
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/ksz_common.c
2976
static int ksz_setup(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_common.c
3106
static void ksz_teardown(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_common.c
3206
static int ksz_phy_read16(struct dsa_switch *ds, int addr, int reg)
drivers/net/dsa/microchip/ksz_common.c
3219
static int ksz_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val)
drivers/net/dsa/microchip/ksz_common.c
3231
static u32 ksz_get_phy_flags(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_common.c
3263
static int ksz_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/microchip/ksz_common.c
3273
static void ksz_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3291
static int ksz_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3303
static void ksz_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3311
static void ksz_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_common.c
3318
static int ksz_set_ageing_time(struct dsa_switch *ds, unsigned int msecs)
drivers/net/dsa/microchip/ksz_common.c
3328
static int ksz_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3340
static int ksz_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3352
static int ksz_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3363
static int ksz_port_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3375
static int ksz_port_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3410
static int ksz_port_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_common.c
3434
void ksz_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/microchip/ksz_common.c
3480
static void ksz_port_teardown(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_common.c
3499
static int ksz_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3509
static int ksz_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3530
static enum dsa_tag_protocol ksz_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/microchip/ksz_common.c
3561
static int ksz_connect_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/microchip/ksz_common.c
3580
static int ksz_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3591
static int ksz_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3603
static int ksz_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3614
static int ksz_port_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3626
static void ksz_port_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
3635
static int ksz_change_mtu(struct dsa_switch *ds, int port, int mtu)
drivers/net/dsa/microchip/ksz_common.c
3645
static int ksz_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_common.c
3693
static bool ksz_support_eee(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_common.c
3736
static int ksz_set_mac_eee(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4092
static int ksz_cls_flower_add(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4113
static int ksz_cls_flower_del(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4177
static int ksz_setup_tc_cbs(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4479
static int ksz_tc_setup_qdisc_ets(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4517
static int ksz_setup_tc(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4577
static void ksz_get_wol(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4625
static int ksz_set_wol(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4740
static int ksz_port_set_mac_address(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4781
bool ksz_is_port_mac_global_usable(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_common.c
4812
int ksz_switch_macaddr_get(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4872
void ksz_switch_macaddr_put(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_common.c
4893
static int ksz_hsr_join(struct dsa_switch *ds, int port, struct net_device *hsr,
drivers/net/dsa/microchip/ksz_common.c
4942
static int ksz_hsr_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.c
4959
static int ksz_suspend(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_common.c
4967
static int ksz_resume(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_common.c
5039
struct dsa_switch *ds;
drivers/net/dsa/microchip/ksz_common.h
162
struct dsa_switch *ds;
drivers/net/dsa/microchip/ksz_common.h
359
int (*setup)(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz_common.h
360
void (*teardown)(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz_common.h
452
void (*config_cpu_port)(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz_common.h
468
bool ksz_is_port_mac_global_usable(struct dsa_switch *ds, int port);
drivers/net/dsa/microchip/ksz_common.h
471
void ksz_port_stp_state_set(struct dsa_switch *ds, int port, u8 state);
drivers/net/dsa/microchip/ksz_common.h
475
int ksz_switch_macaddr_get(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_common.h
477
void ksz_switch_macaddr_put(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz_dcb.c
182
int ksz_port_get_default_prio(struct dsa_switch *ds, int port)
drivers/net/dsa/microchip/ksz_dcb.c
209
int ksz_port_set_default_prio(struct dsa_switch *ds, int port, u8 prio)
drivers/net/dsa/microchip/ksz_dcb.c
236
int ksz_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp)
drivers/net/dsa/microchip/ksz_dcb.c
361
int ksz_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio)
drivers/net/dsa/microchip/ksz_dcb.c
381
int ksz_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio)
drivers/net/dsa/microchip/ksz_dcb.c
498
int ksz_port_set_apptrust(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_dcb.c
541
int ksz_port_get_apptrust(struct dsa_switch *ds, int port, u8 *sel, int *nsel)
drivers/net/dsa/microchip/ksz_dcb.h
11
int ksz_port_get_default_prio(struct dsa_switch *ds, int port);
drivers/net/dsa/microchip/ksz_dcb.h
12
int ksz_port_set_default_prio(struct dsa_switch *ds, int port, u8 prio);
drivers/net/dsa/microchip/ksz_dcb.h
13
int ksz_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp);
drivers/net/dsa/microchip/ksz_dcb.h
14
int ksz_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio);
drivers/net/dsa/microchip/ksz_dcb.h
15
int ksz_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio);
drivers/net/dsa/microchip/ksz_dcb.h
16
int ksz_port_set_apptrust(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_dcb.h
19
int ksz_port_get_apptrust(struct dsa_switch *ds, int port, u8 *sel, int *nsel);
drivers/net/dsa/microchip/ksz_ptp.c
1132
int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p)
drivers/net/dsa/microchip/ksz_ptp.c
1189
void ksz_ptp_irq_free(struct dsa_switch *ds, u8 p)
drivers/net/dsa/microchip/ksz_ptp.c
294
int ksz_get_ts_info(struct dsa_switch *ds, int port, struct kernel_ethtool_ts_info *ts)
drivers/net/dsa/microchip/ksz_ptp.c
323
int ksz_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_ptp.c
408
int ksz_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_ptp.c
454
bool ksz_port_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb,
drivers/net/dsa/microchip/ksz_ptp.c
496
void ksz_port_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
drivers/net/dsa/microchip/ksz_ptp.c
569
struct dsa_switch *ds = xmit_work->dp->ds;
drivers/net/dsa/microchip/ksz_ptp.c
904
int ksz_ptp_clock_register(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_ptp.c
959
void ksz_ptp_clock_unregister(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_ptp.h
36
int ksz_ptp_clock_register(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz_ptp.h
38
void ksz_ptp_clock_unregister(struct dsa_switch *ds);
drivers/net/dsa/microchip/ksz_ptp.h
40
int ksz_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_ptp.h
42
int ksz_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_ptp.h
44
int ksz_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/microchip/ksz_ptp.h
47
void ksz_port_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb);
drivers/net/dsa/microchip/ksz_ptp.h
49
bool ksz_port_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb,
drivers/net/dsa/microchip/ksz_ptp.h
51
int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p);
drivers/net/dsa/microchip/ksz_ptp.h
52
void ksz_ptp_irq_free(struct dsa_switch *ds, u8 p);
drivers/net/dsa/microchip/ksz_ptp.h
61
static inline int ksz_ptp_clock_register(struct dsa_switch *ds)
drivers/net/dsa/microchip/ksz_ptp.h
66
static inline void ksz_ptp_clock_unregister(struct dsa_switch *ds) { }
drivers/net/dsa/microchip/ksz_ptp.h
68
static inline int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p)
drivers/net/dsa/microchip/ksz_ptp.h
73
static inline void ksz_ptp_irq_free(struct dsa_switch *ds, u8 p) {}
drivers/net/dsa/microchip/lan937x.h
10
int lan937x_setup(struct dsa_switch *ds);
drivers/net/dsa/microchip/lan937x.h
11
void lan937x_teardown(struct dsa_switch *ds);
drivers/net/dsa/microchip/lan937x.h
13
void lan937x_config_cpu_port(struct dsa_switch *ds);
drivers/net/dsa/microchip/lan937x_main.c
380
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/lan937x_main.c
412
void lan937x_config_cpu_port(struct dsa_switch *ds)
drivers/net/dsa/microchip/lan937x_main.c
433
struct dsa_switch *ds = dev->ds;
drivers/net/dsa/microchip/lan937x_main.c
619
int lan937x_setup(struct dsa_switch *ds)
drivers/net/dsa/microchip/lan937x_main.c
659
void lan937x_teardown(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
1018
static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface)
drivers/net/dsa/mt7530.c
1284
mt753x_cpu_port_enable(struct dsa_switch *ds, int port)
drivers/net/dsa/mt7530.c
1316
mt7530_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1351
mt7530_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/mt7530.c
1377
mt7530_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/mt7530.c
1417
mt7530_port_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/mt7530.c
1423
mt7530_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/mt7530.c
1501
mt7530_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1513
mt7530_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1550
mt7530_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1570
mt7530_port_set_vlan_unaware(struct dsa_switch *ds, int port)
drivers/net/dsa/mt7530.c
1616
mt7530_port_set_vlan_aware(struct dsa_switch *ds, int port)
drivers/net/dsa/mt7530.c
1656
mt7530_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1676
mt7530_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1693
mt7530_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1710
mt7530_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1745
mt7530_port_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1772
mt7530_port_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1827
mt7530_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering,
drivers/net/dsa/mt7530.c
1946
mt7530_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
1991
mt7530_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2024
static int mt753x_port_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2062
static void mt753x_port_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2086
mtk_get_tag_protocol(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2202
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/mt7530.c
2304
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/mt7530.c
2350
mt7530_setup(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
2563
mt7531_setup_common(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
2631
mt7531_setup(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
2726
static void mt7530_mac_port_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2757
static void mt7531_mac_port_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2795
static void mt7988_mac_port_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2817
static void en7581_mac_port_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
2840
mt7530_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
drivers/net/dsa/mt7530.c
2892
mt7531_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
drivers/net/dsa/mt7530.c
2930
struct dsa_switch *ds = dp->ds;
drivers/net/dsa/mt7530.c
3024
static void mt753x_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
3110
mt753x_setup(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
3143
static int mt753x_set_mac_eee(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
3153
mt753x_conduit_state_change(struct dsa_switch *ds,
drivers/net/dsa/mt7530.c
3184
static int mt753x_tc_setup_qdisc_tbf(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
3220
static int mt753x_setup_tc(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
3231
static int mt7988_setup(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
361
mt753x_preferred_default_local_cpu_port(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
373
mt7530_setup_port6(struct dsa_switch *ds, phy_interface_t interface)
drivers/net/dsa/mt7530.c
514
mt7530_mib_reset(struct dsa_switch *ds)
drivers/net/dsa/mt7530.c
748
mt7530_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/mt7530.c
776
mt7530_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
792
mt7530_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/mt7530.c
800
static void mt7530_get_eth_mac_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
865
static void mt7530_get_rmon_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
909
static void mt7530_get_stats64(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
954
static void mt7530_get_eth_ctrl_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.c
967
mt7530_set_ageing_time(struct dsa_switch *ds, unsigned int msecs)
drivers/net/dsa/mt7530.h
841
int (*sw_setup)(struct dsa_switch *ds);
drivers/net/dsa/mt7530.h
849
void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.h
851
void (*mac_port_config)(struct dsa_switch *ds, int port,
drivers/net/dsa/mt7530.h
881
struct dsa_switch *ds;
drivers/net/dsa/mv88e6060.c
187
static int mv88e6060_setup(struct dsa_switch *ds)
drivers/net/dsa/mv88e6060.c
225
static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum)
drivers/net/dsa/mv88e6060.c
238
mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val)
drivers/net/dsa/mv88e6060.c
250
static void mv88e6060_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6060.c
308
struct dsa_switch *ds;
drivers/net/dsa/mv88e6060.c
341
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/mv88e6060.c
351
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/mv88e6060.c
45
static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/mv88e6060.h
116
struct dsa_switch *ds;
drivers/net/dsa/mv88e6xxx/chip.c
1205
static void mv88e6xxx_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
1257
static int mv88e6xxx_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/mv88e6xxx/chip.c
1384
static void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
1397
static void mv88e6xxx_get_eth_mac_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
1435
static void mv88e6xxx_get_rmon_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
1476
static int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/chip.c
1488
static void mv88e6xxx_get_regs(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
1516
static int mv88e6xxx_set_mac_eee(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
1526
struct dsa_switch *ds = chip->ds;
drivers/net/dsa/mv88e6xxx/chip.c
1599
static void mv88e6xxx_port_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
1634
struct dsa_switch *ds = chip->ds;
drivers/net/dsa/mv88e6xxx/chip.c
1757
struct dsa_switch *ds;
drivers/net/dsa/mv88e6xxx/chip.c
1825
static void mv88e6xxx_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/chip.c
2063
static int mv88e6xxx_port_mst_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2108
static int mv88e6xxx_port_check_hw_vlan(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2174
static int mv88e6xxx_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2203
mv88e6xxx_port_vlan_prepare(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2436
static int mv88e6xxx_get_rxnfc(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2483
static int mv88e6xxx_set_rxnfc(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2655
static int mv88e6xxx_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2765
static int mv88e6xxx_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2807
static int mv88e6xxx_port_vlan_fast_age(struct dsa_switch *ds, int port, u16 vid)
drivers/net/dsa/mv88e6xxx/chip.c
2827
static int mv88e6xxx_vlan_msti_set(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
2873
static int mv88e6xxx_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2895
static int mv88e6xxx_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2983
static int mv88e6xxx_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
2999
struct dsa_switch *ds = chip->ds;
drivers/net/dsa/mv88e6xxx/chip.c
3032
static int mv88e6xxx_map_virtual_bridge_to_pvt(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
3041
static int mv88e6xxx_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
3077
static void mv88e6xxx_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
3108
static int mv88e6xxx_crosschip_bridge_join(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
3127
static void mv88e6xxx_crosschip_bridge_leave(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
3329
struct dsa_switch *ds = chip->ds;
drivers/net/dsa/mv88e6xxx/chip.c
3369
struct dsa_switch *ds = chip->ds;
drivers/net/dsa/mv88e6xxx/chip.c
3600
static int mv88e6xxx_get_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/chip.c
3611
static int mv88e6xxx_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/mv88e6xxx/chip.c
3641
static int mv88e6xxx_set_ageing_time(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
3941
static void mv88e6xxx_teardown(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/chip.c
3953
static int mv88e6xxx_setup(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/chip.c
4123
static int mv88e6xxx_port_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/chip.c
4138
static void mv88e6xxx_port_teardown(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/chip.c
4149
static int mv88e6xxx_get_eeprom_len(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/chip.c
4156
static int mv88e6xxx_get_eeprom(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
4177
static int mv88e6xxx_set_eeprom(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
6596
static enum dsa_tag_protocol mv88e6xxx_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
6605
static int mv88e6xxx_change_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
6657
static int mv88e6xxx_port_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
6679
static int mv88e6xxx_port_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
6693
static int mv88e6xxx_port_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
6733
static void mv88e6xxx_port_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
6762
static int mv88e6xxx_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
6784
static int mv88e6xxx_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
6847
static bool mv88e6xxx_lag_can_offload(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
6890
static int mv88e6xxx_lag_sync_map(struct dsa_switch *ds, struct dsa_lag lag)
drivers/net/dsa/mv88e6xxx/chip.c
6945
static int mv88e6xxx_lag_sync_masks(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/chip.c
7008
static int mv88e6xxx_lag_sync_masks_map(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/chip.c
7021
static int mv88e6xxx_port_lag_change(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/chip.c
7032
static int mv88e6xxx_port_lag_join(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
7066
static int mv88e6xxx_port_lag_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.c
7079
static int mv88e6xxx_crosschip_lag_change(struct dsa_switch *ds, int sw_index,
drivers/net/dsa/mv88e6xxx/chip.c
7091
static int mv88e6xxx_crosschip_lag_join(struct dsa_switch *ds, int sw_index,
drivers/net/dsa/mv88e6xxx/chip.c
7115
static int mv88e6xxx_crosschip_lag_leave(struct dsa_switch *ds, int sw_index,
drivers/net/dsa/mv88e6xxx/chip.c
7202
struct dsa_switch *ds;
drivers/net/dsa/mv88e6xxx/chip.c
7415
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/mv88e6xxx/chip.c
7441
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/mv88e6xxx/chip.c
847
static void mv88e6xxx_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/chip.h
349
struct dsa_switch *ds;
drivers/net/dsa/mv88e6xxx/devlink.c
176
int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/devlink.c
270
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/mv88e6xxx/devlink.c
31
int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id,
drivers/net/dsa/mv88e6xxx/devlink.c
376
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/mv88e6xxx/devlink.c
437
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/mv88e6xxx/devlink.c
519
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/mv88e6xxx/devlink.c
53
int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id,
drivers/net/dsa/mv88e6xxx/devlink.c
575
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/mv88e6xxx/devlink.c
613
struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port);
drivers/net/dsa/mv88e6xxx/devlink.c
725
void mv88e6xxx_teardown_devlink_regions_global(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/devlink.c
735
void mv88e6xxx_teardown_devlink_regions_port(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/devlink.c
742
int mv88e6xxx_setup_devlink_regions_port(struct dsa_switch *ds, int port)
drivers/net/dsa/mv88e6xxx/devlink.c
759
int mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/devlink.c
805
int mv88e6xxx_devlink_info_get(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/devlink.c
81
int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/devlink.c
87
void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds)
drivers/net/dsa/mv88e6xxx/devlink.h
10
int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds);
drivers/net/dsa/mv88e6xxx/devlink.h
11
int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id,
drivers/net/dsa/mv88e6xxx/devlink.h
13
int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id,
drivers/net/dsa/mv88e6xxx/devlink.h
15
int mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds);
drivers/net/dsa/mv88e6xxx/devlink.h
16
void mv88e6xxx_teardown_devlink_regions_global(struct dsa_switch *ds);
drivers/net/dsa/mv88e6xxx/devlink.h
17
int mv88e6xxx_setup_devlink_regions_port(struct dsa_switch *ds, int port);
drivers/net/dsa/mv88e6xxx/devlink.h
18
void mv88e6xxx_teardown_devlink_regions_port(struct dsa_switch *ds, int port);
drivers/net/dsa/mv88e6xxx/devlink.h
20
int mv88e6xxx_devlink_info_get(struct dsa_switch *ds,
drivers/net/dsa/mv88e6xxx/devlink.h
8
int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds);
drivers/net/dsa/mv88e6xxx/devlink.h
9
void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds);
drivers/net/dsa/mv88e6xxx/hwtstamp.c
171
int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.c
192
int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.c
327
bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.c
445
struct dsa_switch *ds = chip->ds;
drivers/net/dsa/mv88e6xxx/hwtstamp.c
463
void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.c
66
int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
113
int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
116
int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
119
bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
121
void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
124
int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
138
mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
146
mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
152
static inline bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
159
static inline void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/mv88e6xxx/hwtstamp.h
164
static inline int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/mxl862xx/mxl862xx.c
100
static int mxl862xx_wait_ready(struct dsa_switch *ds)
drivers/net/dsa/mxl862xx/mxl862xx.c
139
static int mxl862xx_setup_mdio(struct dsa_switch *ds)
drivers/net/dsa/mxl862xx/mxl862xx.c
171
static int mxl862xx_setup(struct dsa_switch *ds)
drivers/net/dsa/mxl862xx/mxl862xx.c
187
static int mxl862xx_port_state(struct dsa_switch *ds, int port, bool enable)
drivers/net/dsa/mxl862xx/mxl862xx.c
208
static int mxl862xx_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/mxl862xx/mxl862xx.c
214
static void mxl862xx_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/mxl862xx/mxl862xx.c
220
static void mxl862xx_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/mxl862xx/mxl862xx.c
231
static int mxl862xx_configure_ctp_port(struct dsa_switch *ds, int port,
drivers/net/dsa/mxl862xx/mxl862xx.c
246
static int mxl862xx_configure_sp_tag_proto(struct dsa_switch *ds, int port,
drivers/net/dsa/mxl862xx/mxl862xx.c
261
static int mxl862xx_setup_cpu_bridge(struct dsa_switch *ds, int port)
drivers/net/dsa/mxl862xx/mxl862xx.c
291
static int mxl862xx_add_single_port_bridge(struct dsa_switch *ds, int port)
drivers/net/dsa/mxl862xx/mxl862xx.c
321
static int mxl862xx_port_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/mxl862xx/mxl862xx.c
358
static void mxl862xx_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/mxl862xx/mxl862xx.c
39
static enum dsa_tag_protocol mxl862xx_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/mxl862xx/mxl862xx.c
409
struct dsa_switch *ds;
drivers/net/dsa/mxl862xx/mxl862xx.c
435
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/mxl862xx/mxl862xx.c
445
struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev);
drivers/net/dsa/mxl862xx/mxl862xx.h
12
struct dsa_switch *ds;
drivers/net/dsa/ocelot/felix.c
101
static int felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1011
static int felix_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1021
static void felix_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1029
static int felix_lag_join(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1048
static int felix_lag_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1062
static int felix_lag_change(struct dsa_switch *ds, int port)
drivers/net/dsa/ocelot/felix.c
1072
static int felix_vlan_prepare(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1096
static int felix_vlan_filtering(struct dsa_switch *ds, int port, bool enabled,
drivers/net/dsa/ocelot/felix.c
1119
static int felix_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1136
static int felix_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1144
static void felix_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1230
static int felix_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1255
static void felix_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/ocelot/felix.c
1291
static void felix_get_stats64(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1299
static void felix_get_pause_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1307
static void felix_get_rmon_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1316
static void felix_get_eth_ctrl_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1324
static void felix_get_eth_mac_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1332
static void felix_get_eth_phy_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1340
static void felix_get_ts_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1348
static void felix_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1356
static void felix_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data)
drivers/net/dsa/ocelot/felix.c
1363
static int felix_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/ocelot/felix.c
1370
static int felix_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
149
static int felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1645
struct dsa_switch *ds = xmit_work->dp->ds;
drivers/net/dsa/ocelot/felix.c
1678
static int felix_connect_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
1696
static int felix_setup(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
171
static int felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1775
static void felix_teardown(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
1797
static int felix_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1807
static int felix_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1879
static bool felix_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1926
static void felix_txtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1946
static int felix_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/ocelot/felix.c
1963
static int felix_get_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/ocelot/felix.c
1970
static int felix_cls_flower_add(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1987
static int felix_cls_flower_del(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
1995
static int felix_cls_flower_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2003
static int felix_port_policer_add(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2015
static void felix_port_policer_del(struct dsa_switch *ds, int port)
drivers/net/dsa/ocelot/felix.c
2022
static int felix_port_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2032
static void felix_port_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2040
static int felix_port_setup_tc(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2053
static int felix_sb_pool_get(struct dsa_switch *ds, unsigned int sb_index,
drivers/net/dsa/ocelot/felix.c
2062
static int felix_sb_pool_set(struct dsa_switch *ds, unsigned int sb_index,
drivers/net/dsa/ocelot/felix.c
2073
static int felix_sb_port_pool_get(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2083
static int felix_sb_port_pool_set(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2093
static int felix_sb_tc_pool_bind_get(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2105
static int felix_sb_tc_pool_bind_set(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2118
static int felix_sb_occ_snapshot(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
2126
static int felix_sb_occ_max_clear(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
2134
static int felix_sb_occ_port_pool_get(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2144
static int felix_sb_occ_tc_port_bind_get(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2155
static int felix_mrp_add(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2163
static int felix_mrp_del(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2172
felix_mrp_add_ring_role(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2181
felix_mrp_del_ring_role(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2189
static int felix_port_get_default_prio(struct dsa_switch *ds, int port)
drivers/net/dsa/ocelot/felix.c
2196
static int felix_port_set_default_prio(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2204
static int felix_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp)
drivers/net/dsa/ocelot/felix.c
2211
static int felix_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp,
drivers/net/dsa/ocelot/felix.c
2219
static int felix_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp,
drivers/net/dsa/ocelot/felix.c
2227
static int felix_get_mm(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2235
static int felix_set_mm(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2244
static void felix_get_mm_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2258
static int felix_port_hsr_join(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
2283
static int felix_port_hsr_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
238
static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, int port, u16 vid)
drivers/net/dsa/ocelot/felix.c
2395
struct dsa_switch *ds;
drivers/net/dsa/ocelot/felix.c
2439
struct dsa_switch *ds = felix->ds;
drivers/net/dsa/ocelot/felix.c
269
static int felix_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid,
drivers/net/dsa/ocelot/felix.c
303
static int felix_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid)
drivers/net/dsa/ocelot/felix.c
332
static int felix_update_tag_8021q_rx_rules(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
361
static int felix_trap_get_cpu_port(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
380
static int felix_update_trapping_destinations(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
45
static int felix_cpu_port_for_conduit(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
483
static int felix_tag_npi_setup(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
505
static void felix_tag_npi_teardown(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
512
static unsigned long felix_tag_npi_get_host_fwd_mask(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
519
static int felix_tag_npi_change_conduit(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
567
static int felix_tag_8021q_setup(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
623
static void felix_tag_8021q_teardown(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
648
static unsigned long felix_tag_8021q_get_host_fwd_mask(struct dsa_switch *ds)
drivers/net/dsa/ocelot/felix.c
653
static int felix_tag_8021q_change_conduit(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
673
static void felix_set_host_flood(struct dsa_switch *ds, unsigned long mask,
drivers/net/dsa/ocelot/felix.c
692
felix_migrate_host_flood(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
710
static int felix_migrate_mdbs(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
732
felix_tag_proto_setup_shared(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
754
static int felix_change_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
801
static enum dsa_tag_protocol felix_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
811
static void felix_port_set_host_flood(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
833
static int felix_port_change_conduit(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
843
static int felix_set_ageing_time(struct dsa_switch *ds,
drivers/net/dsa/ocelot/felix.c
853
static void felix_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/ocelot/felix.c
864
static int felix_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
872
static int felix_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
893
static int felix_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
914
static int felix_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag lag,
drivers/net/dsa/ocelot/felix.c
927
static int felix_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag lag,
drivers/net/dsa/ocelot/felix.c
940
static int felix_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
960
static int felix_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
980
static void felix_bridge_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
988
static int felix_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.c
997
static int felix_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.h
58
int (*port_setup_tc)(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.h
78
int (*setup)(struct dsa_switch *ds);
drivers/net/dsa/ocelot/felix.h
79
void (*teardown)(struct dsa_switch *ds);
drivers/net/dsa/ocelot/felix.h
80
unsigned long (*get_host_fwd_mask)(struct dsa_switch *ds);
drivers/net/dsa/ocelot/felix.h
81
int (*change_conduit)(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix.h
88
struct dsa_switch *ds;
drivers/net/dsa/ocelot/felix_vsc9959.c
1594
static int vsc9959_qos_port_cbs_set(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix_vsc9959.c
1674
static int vsc9959_port_setup_tc(struct dsa_switch *ds, int port,
drivers/net/dsa/ocelot/felix_vsc9959.c
2546
struct dsa_switch *ds = felix->ds;
drivers/net/dsa/qca/ar9331.c
1034
struct dsa_switch *ds;
drivers/net/dsa/qca/ar9331.c
240
struct dsa_switch ds;
drivers/net/dsa/qca/ar9331.c
392
static int ar9331_sw_setup_port(struct dsa_switch *ds, int port)
drivers/net/dsa/qca/ar9331.c
440
static int ar9331_sw_setup(struct dsa_switch *ds)
drivers/net/dsa/qca/ar9331.c
485
static void ar9331_sw_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/qca/ar9331.c
496
static enum dsa_tag_protocol ar9331_sw_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/qca/ar9331.c
503
static void ar9331_sw_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/ar9331.c
668
static void ar9331_get_stats64(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/ar9331.c
679
static void ar9331_get_pause_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-8xxx.c
1090
static int qca8k_find_cpu_port(struct dsa_switch *ds)
drivers/net/dsa/qca/qca8k-8xxx.c
1320
struct dsa_switch *ds = dp->ds;
drivers/net/dsa/qca/qca8k-8xxx.c
1400
static void qca8k_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-8xxx.c
163
static void qca8k_rw_reg_ack_handler(struct dsa_switch *ds, struct sk_buff *skb)
drivers/net/dsa/qca/qca8k-8xxx.c
1644
static void qca8k_mib_autocast_handler(struct dsa_switch *ds, struct sk_buff *skb)
drivers/net/dsa/qca/qca8k-8xxx.c
1691
qca8k_get_ethtool_stats_eth(struct dsa_switch *ds, int port, u64 *data)
drivers/net/dsa/qca/qca8k-8xxx.c
1729
static u32 qca8k_get_phy_flags(struct dsa_switch *ds, int port)
drivers/net/dsa/qca/qca8k-8xxx.c
1746
qca8k_get_tag_protocol(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-8xxx.c
1753
qca8k_conduit_change(struct dsa_switch *ds, const struct net_device *conduit,
drivers/net/dsa/qca/qca8k-8xxx.c
1772
static int qca8k_connect_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/qca/qca8k-8xxx.c
1833
qca8k_setup(struct dsa_switch *ds)
drivers/net/dsa/qca/qca8k-8xxx.c
949
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/qca/qca8k-common.c
1011
int qca8k_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
1041
int qca8k_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
1054
static bool qca8k_lag_can_offload(struct dsa_switch *ds,
drivers/net/dsa/qca/qca8k-common.c
1091
static int qca8k_lag_setup_hash(struct dsa_switch *ds,
drivers/net/dsa/qca/qca8k-common.c
1139
static int qca8k_lag_refresh_portmap(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
1208
int qca8k_port_lag_join(struct dsa_switch *ds, int port, struct dsa_lag lag,
drivers/net/dsa/qca/qca8k-common.c
1224
int qca8k_port_lag_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
480
void qca8k_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/qca/qca8k-common.c
493
void qca8k_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
526
int qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/qca/qca8k-common.c
536
int qca8k_set_mac_eee(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
560
static int qca8k_port_configure_learning(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
575
void qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/qca/qca8k-common.c
656
int qca8k_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
666
int qca8k_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
697
int qca8k_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
707
void qca8k_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
720
void qca8k_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/qca/qca8k-common.c
729
int qca8k_set_ageing_time(struct dsa_switch *ds, unsigned int msecs)
drivers/net/dsa/qca/qca8k-common.c
749
int qca8k_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
763
void qca8k_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/qca/qca8k-common.c
771
int qca8k_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/qca/qca8k-common.c
809
int qca8k_port_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/qca/qca8k-common.c
825
int qca8k_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
835
int qca8k_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
848
int qca8k_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
871
int qca8k_port_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
886
int qca8k_port_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
900
int qca8k_port_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
955
void qca8k_port_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k-common.c
991
int qca8k_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
378
int (*autocast_mib)(struct dsa_switch *ds, int port, u64 *data);
drivers/net/dsa/qca/qca8k.h
459
struct dsa_switch *ds;
drivers/net/dsa/qca/qca8k.h
516
void qca8k_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data);
drivers/net/dsa/qca/qca8k.h
517
void qca8k_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
519
int qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset);
drivers/net/dsa/qca/qca8k.h
522
int qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *eee);
drivers/net/dsa/qca/qca8k.h
525
void qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state);
drivers/net/dsa/qca/qca8k.h
526
int qca8k_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
529
int qca8k_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
532
int qca8k_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
536
void qca8k_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
540
int qca8k_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
542
void qca8k_port_disable(struct dsa_switch *ds, int port);
drivers/net/dsa/qca/qca8k.h
545
int qca8k_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu);
drivers/net/dsa/qca/qca8k.h
546
int qca8k_port_max_mtu(struct dsa_switch *ds, int port);
drivers/net/dsa/qca/qca8k.h
549
void qca8k_port_fast_age(struct dsa_switch *ds, int port);
drivers/net/dsa/qca/qca8k.h
550
int qca8k_set_ageing_time(struct dsa_switch *ds, unsigned int msecs);
drivers/net/dsa/qca/qca8k.h
555
int qca8k_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
558
int qca8k_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
561
int qca8k_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
565
int qca8k_port_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
568
int qca8k_port_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
573
int qca8k_port_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
576
void qca8k_port_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
580
int qca8k_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering,
drivers/net/dsa/qca/qca8k.h
582
int qca8k_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
585
int qca8k_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/qca/qca8k.h
589
int qca8k_port_lag_join(struct dsa_switch *ds, int port, struct dsa_lag lag,
drivers/net/dsa/qca/qca8k.h
592
int qca8k_port_lag_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/realtek.h
134
int rtl8366_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/realtek.h
137
int rtl8366_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/realtek.h
139
void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/realtek/realtek.h
141
int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset);
drivers/net/dsa/realtek/realtek.h
142
void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
drivers/net/dsa/realtek/realtek.h
64
struct dsa_switch ds;
drivers/net/dsa/realtek/rtl8365mb.c
1021
static void rtl8365mb_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
1139
static int rtl8365mb_port_change_mtu(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
1163
static int rtl8365mb_port_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/realtek/rtl8365mb.c
1168
static void rtl8365mb_port_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
1271
static void rtl8365mb_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data)
drivers/net/dsa/realtek/rtl8365mb.c
1296
static void rtl8365mb_get_strings(struct dsa_switch *ds, int port, u32 stringset, u8 *data)
drivers/net/dsa/realtek/rtl8365mb.c
1309
static int rtl8365mb_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/realtek/rtl8365mb.c
1317
static void rtl8365mb_get_phy_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
1333
static void rtl8365mb_get_mac_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
1418
static void rtl8365mb_get_ctrl_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
1524
static void rtl8365mb_get_stats64(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
1542
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl8365mb.c
1569
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl8365mb.c
1864
static int rtl8365mb_change_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/realtek/rtl8365mb.c
1941
static int rtl8365mb_setup(struct dsa_switch *ds)
drivers/net/dsa/realtek/rtl8365mb.c
2035
static void rtl8365mb_teardown(struct dsa_switch *ds)
drivers/net/dsa/realtek/rtl8365mb.c
852
rtl8365mb_get_tag_protocol(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8365mb.c
873
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl8366-core.c
295
int rtl8366_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366-core.c
350
int rtl8366_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366-core.c
394
void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/realtek/rtl8366-core.c
408
int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/realtek/rtl8366-core.c
422
void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data)
drivers/net/dsa/realtek/rtl8366rb-leds.c
149
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl8366rb.c
1024
static enum dsa_tag_protocol rtl8366_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/realtek/rtl8366rb.c
1032
static void rtl8366rb_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366rb.c
1160
rtl8366rb_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366rb.c
1176
rtl8366rb_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/realtek/rtl8366rb.c
1189
rtl8366rb_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366rb.c
1223
rtl8366rb_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366rb.c
1267
static int rtl8366rb_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366rb.c
1299
rtl8366rb_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366rb.c
1311
rtl8366rb_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/realtek/rtl8366rb.c
1330
rtl8366rb_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/realtek/rtl8366rb.c
1364
rtl8366rb_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/realtek/rtl8366rb.c
1376
static int rtl8366rb_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/realtek/rtl8366rb.c
1423
static int rtl8366rb_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/realtek/rtl8366rb.c
1594
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl8366rb.c
795
static int rtl8366rb_setup(struct dsa_switch *ds)
drivers/net/dsa/realtek/rtl83xx.c
225
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl83xx.c
261
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl83xx.c
280
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/realtek/rtl83xx.c
72
int rtl83xx_setup_user_mdio(struct dsa_switch *ds)
drivers/net/dsa/realtek/rtl83xx.h
13
int rtl83xx_setup_user_mdio(struct dsa_switch *ds);
drivers/net/dsa/rzn1_a5psw.c
1211
struct dsa_switch *ds;
drivers/net/dsa/rzn1_a5psw.c
187
static void a5psw_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/rzn1_a5psw.c
195
static int a5psw_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
206
static int a5psw_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/rzn1_a5psw.c
216
static int a5psw_port_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/rzn1_a5psw.c
221
static void a5psw_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
300
static int a5psw_set_ageing_time(struct dsa_switch *ds, unsigned int msecs)
drivers/net/dsa/rzn1_a5psw.c
358
static int a5psw_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
380
static void a5psw_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
394
static int a5psw_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
406
a5psw_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
447
static void a5psw_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/rzn1_a5psw.c
481
static void a5psw_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/rzn1_a5psw.c
507
static int a5psw_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
558
static int a5psw_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
617
static int a5psw_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
653
static int a5psw_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
739
static int a5psw_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
770
static int a5psw_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
798
static void a5psw_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/rzn1_a5psw.c
810
static void a5psw_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
820
static int a5psw_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/rzn1_a5psw.c
828
static void a5psw_get_eth_mac_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
867
static void a5psw_get_rmon_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
890
static void a5psw_get_eth_ctrl_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/rzn1_a5psw.c
923
static int a5psw_setup(struct dsa_switch *ds)
drivers/net/dsa/rzn1_a5psw.c
95
static enum dsa_tag_protocol a5psw_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/rzn1_a5psw.h
257
struct dsa_switch ds;
drivers/net/dsa/sja1105/sja1105.h
142
int (*reset_cmd)(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105.h
145
int (*fdb_add_cmd)(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
147
int (*fdb_del_cmd)(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
151
bool (*rxtstamp)(struct dsa_switch *ds, int port, struct sk_buff *skb);
drivers/net/dsa/sja1105/sja1105.h
152
void (*txtstamp)(struct dsa_switch *ds, int port, struct sk_buff *skb);
drivers/net/dsa/sja1105/sja1105.h
261
struct dsa_switch *ds;
drivers/net/dsa/sja1105/sja1105.h
305
int sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled,
drivers/net/dsa/sja1105/sja1105.h
310
int sja1105_mdiobus_register(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105.h
311
void sja1105_mdiobus_unregister(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105.h
320
int sja1105_devlink_setup(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105.h
321
void sja1105_devlink_teardown(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105.h
322
int sja1105_devlink_info_get(struct dsa_switch *ds,
drivers/net/dsa/sja1105/sja1105.h
374
void sja1105_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data);
drivers/net/dsa/sja1105/sja1105.h
375
void sja1105_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
377
int sja1105_get_sset_count(struct dsa_switch *ds, int port, int sset);
drivers/net/dsa/sja1105/sja1105.h
405
int sja1105et_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
407
int sja1105et_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
409
int sja1105pqrs_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
411
int sja1105pqrs_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
415
int sja1105_cls_flower_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
417
int sja1105_cls_flower_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
419
int sja1105_cls_flower_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105.h
421
void sja1105_flower_setup(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105.h
422
void sja1105_flower_teardown(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105_clocking.c
812
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_devlink.c
108
static void sja1105_teardown_devlink_regions(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_devlink.c
119
int sja1105_devlink_info_get(struct dsa_switch *ds,
drivers/net/dsa/sja1105/sja1105_devlink.c
130
int sja1105_devlink_setup(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_devlink.c
135
void sja1105_devlink_teardown(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_devlink.c
41
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
drivers/net/dsa/sja1105/sja1105_devlink.c
77
static int sja1105_setup_devlink_regions(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_ethtool.c
561
void sja1105_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data)
drivers/net/dsa/sja1105/sja1105_ethtool.c
587
void sja1105_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ethtool.c
610
int sja1105_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/sja1105/sja1105_flower.c
346
int sja1105_cls_flower_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_flower.c
38
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_flower.c
462
int sja1105_cls_flower_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_flower.c
502
int sja1105_cls_flower_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_flower.c
523
void sja1105_flower_setup(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_flower.c
534
void sja1105_flower_teardown(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_main.c
1010
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
118
static int sja1105_commit_pvid(struct dsa_switch *ds, int port)
drivers/net/dsa/sja1105/sja1105_main.c
1369
static void sja1105_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1526
int sja1105et_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1611
int sja1105et_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1646
int sja1105pqrs_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1737
int sja1105pqrs_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1774
static int sja1105_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1801
static int __sja1105_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1823
static int sja1105_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1837
static int sja1105_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1886
static void sja1105_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/sja1105/sja1105_main.c
1938
static int sja1105_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1945
static int sja1105_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
1961
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
1996
static int sja1105_bridge_member(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
201
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
2045
static void sja1105_bridge_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2086
static int sja1105_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2107
static void sja1105_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2169
static int sja1105_setup_tc_cbs(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2264
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
2356
sja1105_get_tag_protocol(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2368
int sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled,
drivers/net/dsa/sja1105/sja1105_main.c
2499
static int sja1105_bridge_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
252
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
2529
static int sja1105_bridge_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2545
static int sja1105_dsa_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid,
drivers/net/dsa/sja1105/sja1105_main.c
2568
static int sja1105_dsa_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid)
drivers/net/dsa/sja1105/sja1105_main.c
2575
static int sja1105_prechangeupper(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2603
static int sja1105_mgmt_xmit(struct dsa_switch *ds, int port, int slot,
drivers/net/dsa/sja1105/sja1105_main.c
2672
struct dsa_switch *ds = xmit_work->dp->ds;
drivers/net/dsa/sja1105/sja1105_main.c
2691
static int sja1105_connect_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/sja1105/sja1105_main.c
2710
static int sja1105_set_ageing_time(struct dsa_switch *ds,
drivers/net/dsa/sja1105/sja1105_main.c
2731
static int sja1105_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/sja1105/sja1105_main.c
2751
static int sja1105_get_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/sja1105/sja1105_main.c
2756
static int sja1105_port_setup_tc(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2781
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
2834
static int sja1105_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2842
static void sja1105_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2849
static int sja1105_port_policer_add(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2868
static void sja1105_port_policer_del(struct dsa_switch *ds, int port)
drivers/net/dsa/sja1105/sja1105_main.c
2953
static int sja1105_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
2978
static int sja1105_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_main.c
3025
static int sja1105_setup(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_main.c
3119
static void sja1105_teardown(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_main.c
3241
struct dsa_switch *ds;
drivers/net/dsa/sja1105/sja1105_main.c
415
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
473
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
511
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
645
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
794
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_main.c
87
static int sja1105_drop_untagged(struct dsa_switch *ds, int port, bool drop)
drivers/net/dsa/sja1105/sja1105_mdio.c
371
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_mdio.c
441
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_mdio.c
459
int sja1105_mdiobus_register(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_mdio.c
500
void sja1105_mdiobus_unregister(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_ptp.c
117
int sja1105_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.c
172
int sja1105_ptp_commit(struct dsa_switch *ds, struct sja1105_ptp_cmd *cmd,
drivers/net/dsa/sja1105/sja1105_ptp.c
206
static u64 sja1105_tstamp_reconstruct(struct dsa_switch *ds, u64 now,
drivers/net/dsa/sja1105/sja1105_ptp.c
251
static int sja1105_ptpegr_ts_poll(struct dsa_switch *ds, int port, u64 *ts)
drivers/net/dsa/sja1105/sja1105_ptp.c
344
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_ptp.c
379
bool sja1105_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
drivers/net/dsa/sja1105/sja1105_ptp.c
395
bool sja1110_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
drivers/net/dsa/sja1105/sja1105_ptp.c
409
bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.c
417
void sja1110_process_meta_tstamp(struct dsa_switch *ds, int port, u8 ts_id,
drivers/net/dsa/sja1105/sja1105_ptp.c
454
void sja1110_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
drivers/net/dsa/sja1105/sja1105_ptp.c
480
void sja1105_port_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
drivers/net/dsa/sja1105/sja1105_ptp.c
498
static int sja1105_ptp_reset(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_ptp.c
520
int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns,
drivers/net/dsa/sja1105/sja1105_ptp.c
572
int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns,
drivers/net/dsa/sja1105/sja1105_ptp.c
61
int sja1105_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.c
639
int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta)
drivers/net/dsa/sja1105/sja1105_ptp.c
878
int sja1105_ptp_clock_register(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_ptp.c
920
void sja1105_ptp_clock_unregister(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_ptp.c
936
void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.c
99
int sja1105_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.h
103
int sja1105_get_ts_info(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.h
106
void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int slot,
drivers/net/dsa/sja1105/sja1105_ptp.h
109
bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.h
112
void sja1105_port_txtstamp(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.h
115
int sja1105_hwtstamp_get(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.h
118
int sja1105_hwtstamp_set(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_ptp.h
122
int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns,
drivers/net/dsa/sja1105/sja1105_ptp.h
125
int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns,
drivers/net/dsa/sja1105/sja1105_ptp.h
128
int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta);
drivers/net/dsa/sja1105/sja1105_ptp.h
130
int sja1105_ptp_commit(struct dsa_switch *ds, struct sja1105_ptp_cmd *cmd,
drivers/net/dsa/sja1105/sja1105_ptp.h
133
bool sja1105_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb);
drivers/net/dsa/sja1105/sja1105_ptp.h
134
bool sja1110_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb);
drivers/net/dsa/sja1105/sja1105_ptp.h
135
void sja1110_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb);
drivers/net/dsa/sja1105/sja1105_ptp.h
137
void sja1110_process_meta_tstamp(struct dsa_switch *ds, int port, u8 ts_id,
drivers/net/dsa/sja1105/sja1105_ptp.h
152
static inline int sja1105_ptp_clock_register(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_ptp.h
157
static inline void sja1105_ptp_clock_unregister(struct dsa_switch *ds) { }
drivers/net/dsa/sja1105/sja1105_ptp.h
159
static inline void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int slot,
drivers/net/dsa/sja1105/sja1105_ptp.h
164
static inline int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns,
drivers/net/dsa/sja1105/sja1105_ptp.h
170
static inline int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns,
drivers/net/dsa/sja1105/sja1105_ptp.h
176
static inline int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta)
drivers/net/dsa/sja1105/sja1105_ptp.h
181
static inline int sja1105_ptp_commit(struct dsa_switch *ds,
drivers/net/dsa/sja1105/sja1105_ptp.h
93
int sja1105_ptp_clock_register(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105_ptp.h
95
void sja1105_ptp_clock_unregister(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105_spi.c
176
static int sja1105et_reset_cmd(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_spi.c
186
static int sja1105pqrs_reset_cmd(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_spi.c
196
static int sja1110_reset_cmd(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_spi.c
320
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
167
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
21
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
472
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
509
int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_tas.c
587
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
634
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
661
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
730
struct dsa_switch *ds = priv->ds;
drivers/net/dsa/sja1105/sja1105_tas.c
843
void sja1105_tas_clockstep(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_tas.c
855
void sja1105_tas_adjfreq(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_tas.c
871
void sja1105_tas_setup(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_tas.c
883
void sja1105_tas_teardown(struct dsa_switch *ds)
drivers/net/dsa/sja1105/sja1105_tas.h
53
int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_tas.h
56
void sja1105_tas_setup(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105_tas.h
58
void sja1105_tas_teardown(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105_tas.h
60
void sja1105_tas_clockstep(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105_tas.h
62
void sja1105_tas_adjfreq(struct dsa_switch *ds);
drivers/net/dsa/sja1105/sja1105_tas.h
76
static inline int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
drivers/net/dsa/sja1105/sja1105_tas.h
82
static inline void sja1105_tas_setup(struct dsa_switch *ds) { }
drivers/net/dsa/sja1105/sja1105_tas.h
84
static inline void sja1105_tas_teardown(struct dsa_switch *ds) { }
drivers/net/dsa/sja1105/sja1105_tas.h
86
static inline void sja1105_tas_clockstep(struct dsa_switch *ds) { }
drivers/net/dsa/sja1105/sja1105_tas.h
88
static inline void sja1105_tas_adjfreq(struct dsa_switch *ds) { }
drivers/net/dsa/sja1105/sja1105_tas.h
91
sja1105_gating_check_conflicts(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1430
static int vsc73xx_port_enable(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1441
static void vsc73xx_port_disable(struct dsa_switch *ds, int port)
drivers/net/dsa/vitesse-vsc73xx-core.c
1478
static void vsc73xx_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/vitesse-vsc73xx-core.c
1528
static int vsc73xx_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/vitesse-vsc73xx-core.c
1537
static void vsc73xx_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1566
static int vsc73xx_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/vitesse-vsc73xx-core.c
1579
static int vsc73xx_get_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/vitesse-vsc73xx-core.c
1584
static void vsc73xx_phylink_get_caps(struct dsa_switch *dsa, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1610
vsc73xx_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1628
static int vsc73xx_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1715
static int vsc73xx_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1747
static int vsc73xx_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid,
drivers/net/dsa/vitesse-vsc73xx-core.c
1773
static int vsc73xx_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid)
drivers/net/dsa/vitesse-vsc73xx-core.c
1799
static int vsc73xx_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1809
static int vsc73xx_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
1824
static void vsc73xx_refresh_fwd_map(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/vitesse-vsc73xx-core.c
1881
static void vsc73xx_port_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
2137
static int vsc73xx_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
2158
static int vsc73xx_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/vitesse-vsc73xx-core.c
2179
static int vsc73xx_port_fdb_dump(struct dsa_switch *ds,
drivers/net/dsa/vitesse-vsc73xx-core.c
621
static int vsc73xx_phy_read(struct dsa_switch *ds, int phy, int regnum)
drivers/net/dsa/vitesse-vsc73xx-core.c
662
static int vsc73xx_phy_write(struct dsa_switch *ds, int phy, int regnum,
drivers/net/dsa/vitesse-vsc73xx-core.c
686
static enum dsa_tag_protocol vsc73xx_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/vitesse-vsc73xx-core.c
786
static int vsc73xx_configure_rgmii_port_delay(struct dsa_switch *ds)
drivers/net/dsa/vitesse-vsc73xx-core.c
847
static int vsc73xx_setup(struct dsa_switch *ds)
drivers/net/dsa/vitesse-vsc73xx-core.c
951
static void vsc73xx_teardown(struct dsa_switch *ds)
drivers/net/dsa/vitesse-vsc73xx.h
53
struct dsa_switch *ds;
drivers/net/dsa/xrs700x/xrs700x.c
159
static void xrs700x_get_ethtool_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
172
static void xrs700x_get_stats64(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
226
static enum dsa_tag_protocol xrs700x_get_tag_protocol(struct dsa_switch *ds,
drivers/net/dsa/xrs700x/xrs700x.c
233
static int xrs700x_reset(struct dsa_switch *ds)
drivers/net/dsa/xrs700x/xrs700x.c
255
static void xrs700x_port_stp_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
297
static int xrs700x_port_add_bpdu_ipf(struct dsa_switch *ds, int port)
drivers/net/dsa/xrs700x/xrs700x.c
340
static int xrs700x_port_add_hsrsup_ipf(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
383
static int xrs700x_port_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/xrs700x/xrs700x.c
417
static int xrs700x_setup(struct dsa_switch *ds)
drivers/net/dsa/xrs700x/xrs700x.c
437
static void xrs700x_teardown(struct dsa_switch *ds)
drivers/net/dsa/xrs700x/xrs700x.c
444
static void xrs700x_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
508
static int xrs700x_bridge_common(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
547
static int xrs700x_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
554
static void xrs700x_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
560
static int xrs700x_hsr_join(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
669
static int xrs700x_hsr_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
776
struct dsa_switch *ds;
drivers/net/dsa/xrs700x/xrs700x.c
86
static void xrs700x_get_strings(struct dsa_switch *ds, int port,
drivers/net/dsa/xrs700x/xrs700x.c
98
static int xrs700x_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/xrs700x/xrs700x.h
28
struct dsa_switch *ds;
drivers/net/dsa/yt921x.c
1011
yt921x_dsa_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
drivers/net/dsa/yt921x.c
1035
static int yt921x_dsa_port_max_mtu(struct dsa_switch *ds, int port)
drivers/net/dsa/yt921x.c
1093
yt921x_dsa_port_mirror_del(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1110
yt921x_dsa_port_mirror_add(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1181
yt921x_dsa_port_lag_leave(struct dsa_switch *ds, int port, struct dsa_lag lag)
drivers/net/dsa/yt921x.c
1203
yt921x_dsa_port_lag_check(struct dsa_switch *ds, struct dsa_lag lag,
drivers/net/dsa/yt921x.c
1242
yt921x_dsa_port_lag_join(struct dsa_switch *ds, int port, struct dsa_lag lag,
drivers/net/dsa/yt921x.c
1666
yt921x_dsa_port_fdb_dump(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1682
static void yt921x_dsa_port_fast_age(struct dsa_switch *ds, int port)
drivers/net/dsa/yt921x.c
1698
yt921x_dsa_set_ageing_time(struct dsa_switch *ds, unsigned int msecs)
drivers/net/dsa/yt921x.c
1715
yt921x_dsa_port_fdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1729
yt921x_dsa_port_fdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1743
yt921x_dsa_port_mdb_del(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1760
yt921x_dsa_port_mdb_add(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1927
yt921x_dsa_port_vlan_filtering(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1945
yt921x_dsa_port_vlan_del(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
1978
yt921x_dsa_port_vlan_add(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2158
dsa_bridge_ports(struct dsa_switch *ds, const struct net_device *bdev)
drivers/net/dsa/yt921x.c
2205
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/yt921x.c
2225
yt921x_dsa_port_pre_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2236
yt921x_dsa_port_bridge_flags(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2254
yt921x_dsa_port_bridge_leave(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2274
yt921x_dsa_port_bridge_join(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2296
yt921x_dsa_port_mst_state_set(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2330
yt921x_dsa_vlan_msti_set(struct dsa_switch *ds, struct dsa_bridge bridge,
drivers/net/dsa/yt921x.c
2355
yt921x_dsa_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
drivers/net/dsa/yt921x.c
2407
yt921x_dsa_port_get_default_prio(struct dsa_switch *ds, int port)
drivers/net/dsa/yt921x.c
2424
yt921x_dsa_port_set_default_prio(struct dsa_switch *ds, int port, u8 prio)
drivers/net/dsa/yt921x.c
2449
yt921x_dsa_port_get_apptrust(struct dsa_switch *ds, int port, u8 *sel,
drivers/net/dsa/yt921x.c
2483
yt921x_dsa_port_set_apptrust(struct dsa_switch *ds, int port, const u8 *sel,
drivers/net/dsa/yt921x.c
2786
yt921x_dsa_phylink_get_caps(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2838
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/yt921x.c
2878
yt921x_dsa_get_tag_protocol(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
2884
static int yt921x_dsa_port_setup(struct dsa_switch *ds, int port)
drivers/net/dsa/yt921x.c
2898
yt921x_dsa_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp)
drivers/net/dsa/yt921x.c
2915
yt921x_dsa_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio)
drivers/net/dsa/yt921x.c
2940
yt921x_dsa_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio)
drivers/net/dsa/yt921x.c
3097
struct dsa_switch *ds = &priv->ds;
drivers/net/dsa/yt921x.c
3243
static int yt921x_dsa_setup(struct dsa_switch *ds)
drivers/net/dsa/yt921x.c
3398
struct dsa_switch *ds;
drivers/net/dsa/yt921x.c
749
yt921x_dsa_get_strings(struct dsa_switch *ds, int port, u32 stringset,
drivers/net/dsa/yt921x.c
764
yt921x_dsa_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data)
drivers/net/dsa/yt921x.c
787
static int yt921x_dsa_get_sset_count(struct dsa_switch *ds, int port, int sset)
drivers/net/dsa/yt921x.c
805
yt921x_dsa_get_eth_mac_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
841
yt921x_dsa_get_eth_ctrl_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
869
yt921x_dsa_get_rmon_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
906
yt921x_dsa_get_stats64(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
942
yt921x_dsa_get_pause_stats(struct dsa_switch *ds, int port,
drivers/net/dsa/yt921x.c
998
yt921x_dsa_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
drivers/net/dsa/yt921x.h
602
struct dsa_switch ds;
include/linux/dsa/8021q.h
16
int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto);
include/linux/dsa/8021q.h
18
void dsa_tag_8021q_unregister(struct dsa_switch *ds);
include/linux/dsa/8021q.h
20
int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port,
include/linux/dsa/8021q.h
24
void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port,
include/linux/dsa/ksz_common.h
34
void (*hwtstamp_set_state)(struct dsa_switch *ds, bool on);
include/linux/dsa/ksz_common.h
48
ksz_tagger_data(struct dsa_switch *ds)
include/linux/dsa/lan9303.h
27
struct dsa_switch *ds;
include/linux/dsa/ocelot.h
180
ocelot_8021q_tagger_data(struct dsa_switch *ds)
include/linux/dsa/sja1105.h
52
void (*meta_tstamp_handler)(struct dsa_switch *ds, int port, u8 ts_id,
include/linux/dsa/sja1105.h
67
sja1105_tagger_data(struct dsa_switch *ds)
include/linux/dsa/tag_qca.h
8
struct dsa_switch;
include/linux/dsa/tag_qca.h
81
void (*rw_reg_ack_handler)(struct dsa_switch *ds,
include/linux/dsa/tag_qca.h
83
void (*mib_autocast_handler)(struct dsa_switch *ds,
include/net/dsa.h
1001
int (*get_eeprom_len)(struct dsa_switch *ds);
include/net/dsa.h
1002
int (*get_eeprom)(struct dsa_switch *ds,
include/net/dsa.h
1004
int (*set_eeprom)(struct dsa_switch *ds,
include/net/dsa.h
1010
int (*get_regs_len)(struct dsa_switch *ds, int port);
include/net/dsa.h
1011
void (*get_regs)(struct dsa_switch *ds, int port,
include/net/dsa.h
1017
int (*port_prechangeupper)(struct dsa_switch *ds, int port,
include/net/dsa.h
1023
int (*set_ageing_time)(struct dsa_switch *ds, unsigned int msecs);
include/net/dsa.h
1024
int (*port_bridge_join)(struct dsa_switch *ds, int port,
include/net/dsa.h
1028
void (*port_bridge_leave)(struct dsa_switch *ds, int port,
include/net/dsa.h
1030
void (*port_stp_state_set)(struct dsa_switch *ds, int port,
include/net/dsa.h
1032
int (*port_mst_state_set)(struct dsa_switch *ds, int port,
include/net/dsa.h
1034
void (*port_fast_age)(struct dsa_switch *ds, int port);
include/net/dsa.h
1035
int (*port_vlan_fast_age)(struct dsa_switch *ds, int port, u16 vid);
include/net/dsa.h
1036
int (*port_pre_bridge_flags)(struct dsa_switch *ds, int port,
include/net/dsa.h
1039
int (*port_bridge_flags)(struct dsa_switch *ds, int port,
include/net/dsa.h
1042
void (*port_set_host_flood)(struct dsa_switch *ds, int port,
include/net/dsa.h
1048
int (*port_vlan_filtering)(struct dsa_switch *ds, int port,
include/net/dsa.h
105
int (*connect)(struct dsa_switch *ds);
include/net/dsa.h
1051
int (*port_vlan_add)(struct dsa_switch *ds, int port,
include/net/dsa.h
1054
int (*port_vlan_del)(struct dsa_switch *ds, int port,
include/net/dsa.h
1056
int (*vlan_msti_set)(struct dsa_switch *ds, struct dsa_bridge bridge,
include/net/dsa.h
106
void (*disconnect)(struct dsa_switch *ds);
include/net/dsa.h
1062
int (*port_fdb_add)(struct dsa_switch *ds, int port,
include/net/dsa.h
1065
int (*port_fdb_del)(struct dsa_switch *ds, int port,
include/net/dsa.h
1068
int (*port_fdb_dump)(struct dsa_switch *ds, int port,
include/net/dsa.h
1070
int (*lag_fdb_add)(struct dsa_switch *ds, struct dsa_lag lag,
include/net/dsa.h
1073
int (*lag_fdb_del)(struct dsa_switch *ds, struct dsa_lag lag,
include/net/dsa.h
1080
int (*port_mdb_add)(struct dsa_switch *ds, int port,
include/net/dsa.h
1083
int (*port_mdb_del)(struct dsa_switch *ds, int port,
include/net/dsa.h
1089
int (*get_rxnfc)(struct dsa_switch *ds, int port,
include/net/dsa.h
1091
int (*set_rxnfc)(struct dsa_switch *ds, int port,
include/net/dsa.h
1097
int (*cls_flower_add)(struct dsa_switch *ds, int port,
include/net/dsa.h
1099
int (*cls_flower_del)(struct dsa_switch *ds, int port,
include/net/dsa.h
1101
int (*cls_flower_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
1103
int (*port_mirror_add)(struct dsa_switch *ds, int port,
include/net/dsa.h
1106
void (*port_mirror_del)(struct dsa_switch *ds, int port,
include/net/dsa.h
1108
int (*port_policer_add)(struct dsa_switch *ds, int port,
include/net/dsa.h
1110
void (*port_policer_del)(struct dsa_switch *ds, int port);
include/net/dsa.h
1111
int (*port_setup_tc)(struct dsa_switch *ds, int port,
include/net/dsa.h
1117
int (*crosschip_bridge_join)(struct dsa_switch *ds, int tree_index,
include/net/dsa.h
1121
void (*crosschip_bridge_leave)(struct dsa_switch *ds, int tree_index,
include/net/dsa.h
1124
int (*crosschip_lag_change)(struct dsa_switch *ds, int sw_index,
include/net/dsa.h
1126
int (*crosschip_lag_join)(struct dsa_switch *ds, int sw_index,
include/net/dsa.h
1130
int (*crosschip_lag_leave)(struct dsa_switch *ds, int sw_index,
include/net/dsa.h
1136
int (*port_hwtstamp_get)(struct dsa_switch *ds, int port,
include/net/dsa.h
1138
int (*port_hwtstamp_set)(struct dsa_switch *ds, int port,
include/net/dsa.h
1141
void (*port_txtstamp)(struct dsa_switch *ds, int port,
include/net/dsa.h
1143
bool (*port_rxtstamp)(struct dsa_switch *ds, int port,
include/net/dsa.h
1147
int (*devlink_param_get)(struct dsa_switch *ds, u32 id,
include/net/dsa.h
1149
int (*devlink_param_set)(struct dsa_switch *ds, u32 id,
include/net/dsa.h
1151
int (*devlink_info_get)(struct dsa_switch *ds,
include/net/dsa.h
1154
int (*devlink_sb_pool_get)(struct dsa_switch *ds,
include/net/dsa.h
1157
int (*devlink_sb_pool_set)(struct dsa_switch *ds, unsigned int sb_index,
include/net/dsa.h
1161
int (*devlink_sb_port_pool_get)(struct dsa_switch *ds, int port,
include/net/dsa.h
1164
int (*devlink_sb_port_pool_set)(struct dsa_switch *ds, int port,
include/net/dsa.h
1168
int (*devlink_sb_tc_pool_bind_get)(struct dsa_switch *ds, int port,
include/net/dsa.h
1172
int (*devlink_sb_tc_pool_bind_set)(struct dsa_switch *ds, int port,
include/net/dsa.h
1177
int (*devlink_sb_occ_snapshot)(struct dsa_switch *ds,
include/net/dsa.h
1179
int (*devlink_sb_occ_max_clear)(struct dsa_switch *ds,
include/net/dsa.h
1181
int (*devlink_sb_occ_port_pool_get)(struct dsa_switch *ds, int port,
include/net/dsa.h
1184
int (*devlink_sb_occ_tc_port_bind_get)(struct dsa_switch *ds, int port,
include/net/dsa.h
1195
int (*port_change_mtu)(struct dsa_switch *ds, int port,
include/net/dsa.h
1197
int (*port_max_mtu)(struct dsa_switch *ds, int port);
include/net/dsa.h
1202
int (*port_lag_change)(struct dsa_switch *ds, int port);
include/net/dsa.h
1203
int (*port_lag_join)(struct dsa_switch *ds, int port,
include/net/dsa.h
1207
int (*port_lag_leave)(struct dsa_switch *ds, int port,
include/net/dsa.h
1213
int (*port_hsr_join)(struct dsa_switch *ds, int port,
include/net/dsa.h
1216
int (*port_hsr_leave)(struct dsa_switch *ds, int port,
include/net/dsa.h
1222
int (*port_mrp_add)(struct dsa_switch *ds, int port,
include/net/dsa.h
1224
int (*port_mrp_del)(struct dsa_switch *ds, int port,
include/net/dsa.h
1226
int (*port_mrp_add_ring_role)(struct dsa_switch *ds, int port,
include/net/dsa.h
1228
int (*port_mrp_del_ring_role)(struct dsa_switch *ds, int port,
include/net/dsa.h
1234
int (*tag_8021q_vlan_add)(struct dsa_switch *ds, int port, u16 vid,
include/net/dsa.h
1236
int (*tag_8021q_vlan_del)(struct dsa_switch *ds, int port, u16 vid);
include/net/dsa.h
1241
void (*conduit_state_change)(struct dsa_switch *ds,
include/net/dsa.h
1256
int dsa_devlink_params_register(struct dsa_switch *ds,
include/net/dsa.h
1259
void dsa_devlink_params_unregister(struct dsa_switch *ds,
include/net/dsa.h
1262
int dsa_devlink_resource_register(struct dsa_switch *ds,
include/net/dsa.h
1269
void dsa_devlink_resources_unregister(struct dsa_switch *ds);
include/net/dsa.h
1271
void dsa_devlink_resource_occ_get_register(struct dsa_switch *ds,
include/net/dsa.h
1275
void dsa_devlink_resource_occ_get_unregister(struct dsa_switch *ds,
include/net/dsa.h
1278
dsa_devlink_region_create(struct dsa_switch *ds,
include/net/dsa.h
1282
dsa_devlink_port_region_create(struct dsa_switch *ds,
include/net/dsa.h
1291
struct dsa_switch *ds;
include/net/dsa.h
1294
static inline struct dsa_switch *dsa_devlink_to_ds(struct devlink *dl)
include/net/dsa.h
1302
struct dsa_switch *dsa_devlink_port_to_ds(struct devlink_port *port)
include/net/dsa.h
1315
bool dsa_fdb_present_in_other_db(struct dsa_switch *ds, int port,
include/net/dsa.h
1318
bool dsa_mdb_present_in_other_db(struct dsa_switch *ds, int port,
include/net/dsa.h
1322
int dsa_port_simple_hsr_validate(struct dsa_switch *ds, int port,
include/net/dsa.h
1325
int dsa_port_simple_hsr_join(struct dsa_switch *ds, int port,
include/net/dsa.h
1328
int dsa_port_simple_hsr_leave(struct dsa_switch *ds, int port,
include/net/dsa.h
1366
void dsa_unregister_switch(struct dsa_switch *ds);
include/net/dsa.h
1367
int dsa_register_switch(struct dsa_switch *ds);
include/net/dsa.h
1368
void dsa_switch_shutdown(struct dsa_switch *ds);
include/net/dsa.h
1369
struct dsa_switch *dsa_switch_find(int tree_index, int sw_index);
include/net/dsa.h
1372
int dsa_switch_suspend(struct dsa_switch *ds);
include/net/dsa.h
1373
int dsa_switch_resume(struct dsa_switch *ds);
include/net/dsa.h
1375
static inline int dsa_switch_suspend(struct dsa_switch *ds)
include/net/dsa.h
1379
static inline int dsa_switch_resume(struct dsa_switch *ds)
include/net/dsa.h
1395
void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up);
include/net/dsa.h
1396
bool dsa_supports_eee(struct dsa_switch *ds, int port);
include/net/dsa.h
257
struct dsa_switch *ds;
include/net/dsa.h
513
static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p)
include/net/dsa.h
551
static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p)
include/net/dsa.h
556
static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p)
include/net/dsa.h
561
static inline bool dsa_is_dsa_port(struct dsa_switch *ds, int p)
include/net/dsa.h
566
static inline bool dsa_is_user_port(struct dsa_switch *ds, int p)
include/net/dsa.h
615
static inline u32 dsa_user_ports(struct dsa_switch *ds)
include/net/dsa.h
626
static inline u32 dsa_cpu_ports(struct dsa_switch *ds)
include/net/dsa.h
638
static inline unsigned int dsa_routing_port(struct dsa_switch *ds, int device)
include/net/dsa.h
651
static inline unsigned int dsa_towards_port(struct dsa_switch *ds, int device,
include/net/dsa.h
661
static inline unsigned int dsa_upstream_port(struct dsa_switch *ds, int port)
include/net/dsa.h
673
static inline bool dsa_is_upstream_port(struct dsa_switch *ds, int port)
include/net/dsa.h
682
static inline bool dsa_is_downstream_port(struct dsa_switch *ds, int port)
include/net/dsa.h
688
static inline unsigned int dsa_switch_upstream_port(struct dsa_switch *ds)
include/net/dsa.h
703
static inline bool dsa_switch_is_upstream_of(struct dsa_switch *upstream_ds,
include/net/dsa.h
704
struct dsa_switch *downstream_ds)
include/net/dsa.h
718
const struct dsa_switch *ds = dp->ds;
include/net/dsa.h
850
enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *ds,
include/net/dsa.h
853
int (*change_tag_protocol)(struct dsa_switch *ds,
include/net/dsa.h
860
int (*connect_tag_protocol)(struct dsa_switch *ds,
include/net/dsa.h
863
int (*port_change_conduit)(struct dsa_switch *ds, int port,
include/net/dsa.h
868
int (*setup)(struct dsa_switch *ds);
include/net/dsa.h
869
void (*teardown)(struct dsa_switch *ds);
include/net/dsa.h
874
int (*port_setup)(struct dsa_switch *ds, int port);
include/net/dsa.h
875
void (*port_teardown)(struct dsa_switch *ds, int port);
include/net/dsa.h
877
u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
include/net/dsa.h
882
int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
include/net/dsa.h
883
int (*phy_write)(struct dsa_switch *ds, int port,
include/net/dsa.h
889
void (*phylink_get_caps)(struct dsa_switch *ds, int port,
include/net/dsa.h
891
void (*phylink_fixed_state)(struct dsa_switch *ds, int port,
include/net/dsa.h
896
void (*get_strings)(struct dsa_switch *ds, int port,
include/net/dsa.h
898
void (*get_ethtool_stats)(struct dsa_switch *ds,
include/net/dsa.h
900
int (*get_sset_count)(struct dsa_switch *ds, int port, int sset);
include/net/dsa.h
901
void (*get_ethtool_phy_stats)(struct dsa_switch *ds,
include/net/dsa.h
903
void (*get_eth_phy_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
905
void (*get_eth_mac_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
907
void (*get_eth_ctrl_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
909
void (*get_rmon_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
912
void (*get_ts_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
914
void (*get_stats64)(struct dsa_switch *ds, int port,
include/net/dsa.h
916
void (*get_pause_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
918
void (*self_test)(struct dsa_switch *ds, int port,
include/net/dsa.h
924
void (*get_wol)(struct dsa_switch *ds, int port,
include/net/dsa.h
926
int (*set_wol)(struct dsa_switch *ds, int port,
include/net/dsa.h
932
int (*get_ts_info)(struct dsa_switch *ds, int port,
include/net/dsa.h
938
int (*get_mm)(struct dsa_switch *ds, int port,
include/net/dsa.h
940
int (*set_mm)(struct dsa_switch *ds, int port,
include/net/dsa.h
943
void (*get_mm_stats)(struct dsa_switch *ds, int port,
include/net/dsa.h
949
int (*port_get_default_prio)(struct dsa_switch *ds, int port);
include/net/dsa.h
950
int (*port_set_default_prio)(struct dsa_switch *ds, int port,
include/net/dsa.h
952
int (*port_get_dscp_prio)(struct dsa_switch *ds, int port, u8 dscp);
include/net/dsa.h
953
int (*port_add_dscp_prio)(struct dsa_switch *ds, int port, u8 dscp,
include/net/dsa.h
955
int (*port_del_dscp_prio)(struct dsa_switch *ds, int port, u8 dscp,
include/net/dsa.h
957
int (*port_set_apptrust)(struct dsa_switch *ds, int port,
include/net/dsa.h
959
int (*port_get_apptrust)(struct dsa_switch *ds, int port, u8 *sel,
include/net/dsa.h
965
int (*suspend)(struct dsa_switch *ds);
include/net/dsa.h
966
int (*resume)(struct dsa_switch *ds);
include/net/dsa.h
971
int (*port_enable)(struct dsa_switch *ds, int port,
include/net/dsa.h
973
void (*port_disable)(struct dsa_switch *ds, int port);
include/net/dsa.h
98
struct dsa_switch;
include/net/dsa.h
982
int (*port_set_mac_address)(struct dsa_switch *ds, int port,
include/net/dsa.h
991
struct dsa_port *(*preferred_default_local_cpu_port)(struct dsa_switch *ds);
include/net/dsa.h
996
bool (*support_eee)(struct dsa_switch *ds, int port);
include/net/dsa.h
997
int (*set_mac_eee)(struct dsa_switch *ds, int port,
net/dsa/conduit.c
143
struct dsa_switch *ds = cpu_dp->ds;
net/dsa/conduit.c
165
static void dsa_conduit_append_port_sset_count(struct dsa_switch *ds, int port,
net/dsa/conduit.c
201
static ssize_t dsa_conduit_append_port_strings(struct dsa_switch *ds, int port,
net/dsa/conduit.c
24
struct dsa_switch *ds = cpu_dp->ds;
net/dsa/conduit.c
280
struct dsa_switch *ds = cpu_dp->ds;
net/dsa/conduit.c
300
struct dsa_switch *ds = cpu_dp->ds;
net/dsa/conduit.c
436
struct dsa_switch *ds = cpu_dp->ds;
net/dsa/conduit.c
56
struct dsa_switch *ds = cpu_dp->ds;
net/dsa/conduit.c
90
static ssize_t dsa_conduit_append_port_stats(struct dsa_switch *ds, int port,
net/dsa/devlink.c
103
struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp);
net/dsa/devlink.c
118
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
net/dsa/devlink.c
129
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
net/dsa/devlink.c
142
struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp);
net/dsa/devlink.c
15
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
net/dsa/devlink.c
158
struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp);
net/dsa/devlink.c
188
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
net/dsa/devlink.c
201
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
net/dsa/devlink.c
210
int dsa_devlink_params_register(struct dsa_switch *ds,
net/dsa/devlink.c
218
void dsa_devlink_params_unregister(struct dsa_switch *ds,
net/dsa/devlink.c
226
int dsa_devlink_resource_register(struct dsa_switch *ds,
net/dsa/devlink.c
245
void dsa_devlink_resources_unregister(struct dsa_switch *ds)
net/dsa/devlink.c
251
void dsa_devlink_resource_occ_get_register(struct dsa_switch *ds,
net/dsa/devlink.c
263
void dsa_devlink_resource_occ_get_unregister(struct dsa_switch *ds,
net/dsa/devlink.c
27
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
net/dsa/devlink.c
273
dsa_devlink_region_create(struct dsa_switch *ds,
net/dsa/devlink.c
283
dsa_devlink_port_region_create(struct dsa_switch *ds,
net/dsa/devlink.c
308
struct dsa_switch *ds = dp->ds;
net/dsa/devlink.c
358
struct dsa_switch *ds = dp->ds;
net/dsa/devlink.c
368
void dsa_switch_devlink_register(struct dsa_switch *ds)
net/dsa/devlink.c
373
void dsa_switch_devlink_unregister(struct dsa_switch *ds)
net/dsa/devlink.c
378
int dsa_switch_devlink_alloc(struct dsa_switch *ds)
net/dsa/devlink.c
398
void dsa_switch_devlink_free(struct dsa_switch *ds)
net/dsa/devlink.c
41
struct dsa_switch *ds = dsa_devlink_to_ds(dl);
net/dsa/devlink.c
54
struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp);
net/dsa/devlink.c
69
struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp);
net/dsa/devlink.c
85
struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp);
net/dsa/devlink.h
11
void dsa_switch_devlink_register(struct dsa_switch *ds);
net/dsa/devlink.h
12
void dsa_switch_devlink_unregister(struct dsa_switch *ds);
net/dsa/devlink.h
13
int dsa_switch_devlink_alloc(struct dsa_switch *ds);
net/dsa/devlink.h
14
void dsa_switch_devlink_free(struct dsa_switch *ds);
net/dsa/devlink.h
7
struct dsa_switch;
net/dsa/dsa.c
1086
static struct dsa_port *dsa_port_touch(struct dsa_switch *ds, int index)
net/dsa/dsa.c
1132
struct dsa_switch *mds, *ds = dp->ds;
net/dsa/dsa.c
1158
struct dsa_switch *ds = dp->ds;
net/dsa/dsa.c
1277
static int dsa_switch_parse_ports_of(struct dsa_switch *ds,
net/dsa/dsa.c
1324
static int dsa_switch_parse_member_of(struct dsa_switch *ds,
net/dsa/dsa.c
1354
static int dsa_switch_touch_ports(struct dsa_switch *ds)
net/dsa/dsa.c
1368
static int dsa_switch_parse_of(struct dsa_switch *ds, struct device_node *dn)
net/dsa/dsa.c
1433
static int dsa_switch_parse_ports(struct dsa_switch *ds,
net/dsa/dsa.c
1464
static int dsa_switch_parse(struct dsa_switch *ds, struct dsa_chip_data *cd)
net/dsa/dsa.c
1485
static void dsa_switch_release_ports(struct dsa_switch *ds)
net/dsa/dsa.c
1533
static int dsa_switch_probe(struct dsa_switch *ds)
net/dsa/dsa.c
1575
int dsa_register_switch(struct dsa_switch *ds)
net/dsa/dsa.c
1588
static void dsa_switch_remove(struct dsa_switch *ds)
net/dsa/dsa.c
1597
void dsa_unregister_switch(struct dsa_switch *ds)
net/dsa/dsa.c
1610
void dsa_switch_shutdown(struct dsa_switch *ds)
net/dsa/dsa.c
1656
int dsa_switch_suspend(struct dsa_switch *ds)
net/dsa/dsa.c
1678
int dsa_switch_resume(struct dsa_switch *ds)
net/dsa/dsa.c
1731
bool dsa_fdb_present_in_other_db(struct dsa_switch *ds, int port,
net/dsa/dsa.c
1752
bool dsa_mdb_present_in_other_db(struct dsa_switch *ds, int port,
net/dsa/dsa.c
1776
int dsa_port_simple_hsr_validate(struct dsa_switch *ds, int port,
net/dsa/dsa.c
1797
int dsa_port_simple_hsr_join(struct dsa_switch *ds, int port,
net/dsa/dsa.c
180
struct dsa_switch *dsa_switch_find(int tree_index, int sw_index)
net/dsa/dsa.c
1820
int dsa_port_simple_hsr_leave(struct dsa_switch *ds, int port,
net/dsa/dsa.c
291
struct dsa_switch *ds = dp->ds;
net/dsa/dsa.c
316
struct dsa_switch *ds = dp->ds;
net/dsa/dsa.c
401
dsa_switch_preferred_default_local_cpu_port(struct dsa_switch *ds)
net/dsa/dsa.c
461
struct dsa_switch *ds = dp->ds;
net/dsa/dsa.c
569
static int dsa_switch_setup_tag_protocol(struct dsa_switch *ds)
net/dsa/dsa.c
613
static void dsa_switch_teardown_tag_protocol(struct dsa_switch *ds)
net/dsa/dsa.c
621
static int dsa_switch_setup(struct dsa_switch *ds)
net/dsa/dsa.c
685
static void dsa_switch_teardown(struct dsa_switch *ds)
net/dsa/port.c
107
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1156
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
120
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
133
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1356
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1367
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1378
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1389
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1402
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1433
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1584
bool dsa_supports_eee(struct dsa_switch *ds, int port)
net/dsa/port.c
1620
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1667
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
167
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
181
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1810
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1844
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1853
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1892
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
1909
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
215
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
247
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
272
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
424
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
473
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
57
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
610
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
70
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
729
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
795
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
867
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
908
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
920
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
949
struct dsa_switch *ds = dp->ds;
net/dsa/port.c
958
struct dsa_switch *ds = dp->ds;
net/dsa/switch.c
1120
int dsa_switch_register_notifier(struct dsa_switch *ds)
net/dsa/switch.c
1127
void dsa_switch_unregister_notifier(struct dsa_switch *ds)
net/dsa/switch.c
113
static int dsa_switch_bridge_leave(struct dsa_switch *ds,
net/dsa/switch.c
162
struct dsa_switch *ds = dp->ds;
net/dsa/switch.c
214
struct dsa_switch *ds = dp->ds;
net/dsa/switch.c
23
static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds,
net/dsa/switch.c
261
struct dsa_switch *ds = dp->ds;
net/dsa/switch.c
311
struct dsa_switch *ds = dp->ds;
net/dsa/switch.c
35
static int dsa_switch_ageing_time(struct dsa_switch *ds,
net/dsa/switch.c
354
static int dsa_switch_do_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag *lag,
net/dsa/switch.c
396
static int dsa_switch_do_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag *lag,
net/dsa/switch.c
434
static int dsa_switch_host_fdb_add(struct dsa_switch *ds,
net/dsa/switch.c
462
static int dsa_switch_host_fdb_del(struct dsa_switch *ds,
net/dsa/switch.c
490
static int dsa_switch_fdb_add(struct dsa_switch *ds,
net/dsa/switch.c
502
static int dsa_switch_fdb_del(struct dsa_switch *ds,
net/dsa/switch.c
514
static int dsa_switch_lag_fdb_add(struct dsa_switch *ds,
net/dsa/switch.c
532
static int dsa_switch_lag_fdb_del(struct dsa_switch *ds,
net/dsa/switch.c
550
static int dsa_switch_lag_change(struct dsa_switch *ds,
net/dsa/switch.c
563
static int dsa_switch_lag_join(struct dsa_switch *ds,
net/dsa/switch.c
578
static int dsa_switch_lag_leave(struct dsa_switch *ds,
net/dsa/switch.c
591
static int dsa_switch_mdb_add(struct dsa_switch *ds,
net/dsa/switch.c
603
static int dsa_switch_mdb_del(struct dsa_switch *ds,
net/dsa/switch.c
61
static int dsa_switch_mtu(struct dsa_switch *ds,
net/dsa/switch.c
615
static int dsa_switch_host_mdb_add(struct dsa_switch *ds,
net/dsa/switch.c
635
static int dsa_switch_host_mdb_del(struct dsa_switch *ds,
net/dsa/switch.c
692
struct dsa_switch *ds = dp->ds;
net/dsa/switch.c
748
struct dsa_switch *ds = dp->ds;
net/dsa/switch.c
791
static int dsa_switch_vlan_add(struct dsa_switch *ds,
net/dsa/switch.c
812
static int dsa_switch_vlan_del(struct dsa_switch *ds,
net/dsa/switch.c
82
static int dsa_switch_bridge_join(struct dsa_switch *ds,
net/dsa/switch.c
832
static int dsa_switch_host_vlan_add(struct dsa_switch *ds,
net/dsa/switch.c
853
static int dsa_switch_host_vlan_del(struct dsa_switch *ds,
net/dsa/switch.c
873
static int dsa_switch_change_tag_proto(struct dsa_switch *ds,
net/dsa/switch.c
918
dsa_switch_connect_tag_proto(struct dsa_switch *ds,
net/dsa/switch.c
947
dsa_switch_disconnect_tag_proto(struct dsa_switch *ds,
net/dsa/switch.c
963
dsa_switch_conduit_state_change(struct dsa_switch *ds,
net/dsa/switch.c
977
struct dsa_switch *ds = container_of(nb, struct dsa_switch, nb);
net/dsa/switch.h
120
int dsa_switch_register_notifier(struct dsa_switch *ds);
net/dsa/switch.h
121
void dsa_switch_unregister_notifier(struct dsa_switch *ds);
net/dsa/tag.c
33
struct dsa_switch *ds = p->dp->ds;
net/dsa/tag_8021q.c
146
struct dsa_switch *ds = dp->ds;
net/dsa/tag_8021q.c
182
struct dsa_switch *ds = dp->ds;
net/dsa/tag_8021q.c
217
int dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds,
net/dsa/tag_8021q.c
249
int dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds,
net/dsa/tag_8021q.c
288
int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port,
net/dsa/tag_8021q.c
314
void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port,
net/dsa/tag_8021q.c
339
static int dsa_tag_8021q_port_setup(struct dsa_switch *ds, int port)
net/dsa/tag_8021q.c
369
static void dsa_tag_8021q_port_teardown(struct dsa_switch *ds, int port)
net/dsa/tag_8021q.c
389
static int dsa_tag_8021q_setup(struct dsa_switch *ds)
net/dsa/tag_8021q.c
408
static void dsa_tag_8021q_teardown(struct dsa_switch *ds)
net/dsa/tag_8021q.c
418
int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto)
net/dsa/tag_8021q.c
446
void dsa_tag_8021q_unregister(struct dsa_switch *ds)
net/dsa/tag_8021q.c
74
struct dsa_switch *ds;
net/dsa/tag_8021q.h
23
int dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds,
net/dsa/tag_8021q.h
25
int dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds,
net/dsa/tag_ksz.c
34
ksz_tagger_private(struct dsa_switch *ds)
net/dsa/tag_ksz.c
39
static void ksz_hwtstamp_set_state(struct dsa_switch *ds, bool on)
net/dsa/tag_ksz.c
49
static void ksz_disconnect(struct dsa_switch *ds)
net/dsa/tag_ksz.c
58
static int ksz_connect(struct dsa_switch *ds)
net/dsa/tag_ocelot.c
15
struct dsa_switch *ds = dp->ds;
net/dsa/tag_ocelot_8021q.c
104
static int ocelot_connect(struct dsa_switch *ds)
net/dsa/tag_ocelot_8021q.c
95
static void ocelot_disconnect(struct dsa_switch *ds)
net/dsa/tag_qca.c
104
static void qca_tag_disconnect(struct dsa_switch *ds)
net/dsa/tag_qca.c
39
struct dsa_switch *ds = dp->ds;
net/dsa/tag_qca.c
91
static int qca_tag_connect(struct dsa_switch *ds)
net/dsa/tag_sja1105.c
176
struct dsa_switch *ds = dp->ds;
net/dsa/tag_sja1105.c
388
struct dsa_switch *ds = dp->ds;
net/dsa/tag_sja1105.c
422
struct dsa_switch *ds = dp->ds;
net/dsa/tag_sja1105.c
534
struct dsa_switch *ds;
net/dsa/tag_sja1105.c
689
static void sja1105_disconnect(struct dsa_switch *ds)
net/dsa/tag_sja1105.c
698
static int sja1105_connect(struct dsa_switch *ds)
net/dsa/tag_sja1105.c
72
sja1105_tagger_private(struct dsa_switch *ds)
net/dsa/user.c
1005
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1017
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1029
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1049
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1077
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1100
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1110
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1121
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1133
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1143
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1153
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1167
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1179
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1191
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1200
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1211
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1225
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1258
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1291
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1377
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1464
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1548
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1596
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1610
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1624
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1721
static int dsa_user_setup_ft_block(struct dsa_switch *ds, int port,
net/dsa/user.c
1736
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1757
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1769
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1781
struct dsa_switch *ds = p->dp->ds;
net/dsa/user.c
1800
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
1873
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2107
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2192
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2205
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2218
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2249
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2297
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2361
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2388
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2445
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2538
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2566
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2579
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2616
void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up)
net/dsa/user.c
2629
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2642
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2659
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2704
const struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2762
struct dsa_switch *ds = port->ds;
net/dsa/user.c
279
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
2903
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
300
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
3185
struct dsa_switch *ds;
net/dsa/user.c
321
struct dsa_switch *ds = bus->priv;
net/dsa/user.c
331
struct dsa_switch *ds = bus->priv;
net/dsa/user.c
339
void dsa_user_mii_bus_init(struct dsa_switch *ds)
net/dsa/user.c
362
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
3636
struct dsa_switch *ds;
net/dsa/user.c
3703
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
390
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
451
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
474
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
68
static bool dsa_switch_supports_uc_filtering(struct dsa_switch *ds)
net/dsa/user.c
75
static bool dsa_switch_supports_mc_filtering(struct dsa_switch *ds)
net/dsa/user.c
884
struct dsa_switch *ds = p->dp->ds;
net/dsa/user.c
90
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
962
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
974
struct dsa_switch *ds = dp->ds;
net/dsa/user.c
990
struct dsa_switch *ds = dp->ds;
net/dsa/user.h
38
void dsa_user_mii_bus_init(struct dsa_switch *ds);