/linux-4.4.14/include/net/ |
H A D | dsa.h | 121 struct dsa_switch *ds[DSA_MAX_SWITCHES]; 124 struct dsa_switch { struct 169 static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p) dsa_is_cpu_port() 174 static inline bool dsa_is_dsa_port(struct dsa_switch *ds, int p) dsa_is_dsa_port() 179 static inline bool dsa_is_port_initialized(struct dsa_switch *ds, int p) dsa_is_port_initialized() 184 static inline u8 dsa_upstream_port(struct dsa_switch *ds) dsa_upstream_port() 215 int (*setup)(struct dsa_switch *ds); 216 int (*set_addr)(struct dsa_switch *ds, u8 *addr); 217 u32 (*get_phy_flags)(struct dsa_switch *ds, int port); 222 int (*phy_read)(struct dsa_switch *ds, int port, int regnum); 223 int (*phy_write)(struct dsa_switch *ds, int port, 229 void (*poll_link)(struct dsa_switch *ds); 234 void (*adjust_link)(struct dsa_switch *ds, int port, 236 void (*fixed_link_update)(struct dsa_switch *ds, int port, 242 void (*get_strings)(struct dsa_switch *ds, int port, uint8_t *data); 243 void (*get_ethtool_stats)(struct dsa_switch *ds, 245 int (*get_sset_count)(struct dsa_switch *ds); 250 void (*get_wol)(struct dsa_switch *ds, int port, 252 int (*set_wol)(struct dsa_switch *ds, int port, 258 int (*suspend)(struct dsa_switch *ds); 259 int (*resume)(struct dsa_switch *ds); 264 int (*port_enable)(struct dsa_switch *ds, int port, 266 void (*port_disable)(struct dsa_switch *ds, int port, 272 int (*set_eee)(struct dsa_switch *ds, int port, 275 int (*get_eee)(struct dsa_switch *ds, int port, 280 int (*get_temp)(struct dsa_switch *ds, int *temp); 281 int (*get_temp_limit)(struct dsa_switch *ds, int *temp); 282 int (*set_temp_limit)(struct dsa_switch *ds, int temp); 283 int (*get_temp_alarm)(struct dsa_switch *ds, bool *alarm); 287 int (*get_eeprom_len)(struct dsa_switch *ds); 288 int (*get_eeprom)(struct dsa_switch *ds, 290 int (*set_eeprom)(struct dsa_switch *ds, 296 int (*get_regs_len)(struct dsa_switch *ds, int port); 297 void (*get_regs)(struct dsa_switch *ds, int port, 303 int (*port_join_bridge)(struct dsa_switch *ds, int port, 305 int (*port_leave_bridge)(struct dsa_switch *ds, int port, 307 int (*port_stp_update)(struct dsa_switch *ds, int port, 313 int (*port_vlan_prepare)(struct dsa_switch *ds, int port, 316 int (*port_vlan_add)(struct dsa_switch *ds, int port, 319 int (*port_vlan_del)(struct dsa_switch *ds, int port, 321 int (*port_pvid_get)(struct dsa_switch *ds, int port, u16 *pvid); 322 int (*vlan_getnext)(struct dsa_switch *ds, u16 *vid, 328 int (*port_fdb_prepare)(struct dsa_switch *ds, int port, 331 int (*port_fdb_add)(struct dsa_switch *ds, int port, 334 int (*port_fdb_del)(struct dsa_switch *ds, int port, 336 int (*port_fdb_dump)(struct dsa_switch *ds, int port, 345 static inline void *ds_to_priv(struct dsa_switch *ds) ds_to_priv()
|
/linux-4.4.14/drivers/net/dsa/ |
H A D | mv88e6xxx.h | 429 int mv88e6xxx_switch_reset(struct dsa_switch *ds, bool ppu_active); 433 int mv88e6xxx_setup_ports(struct dsa_switch *ds); 434 int mv88e6xxx_setup_common(struct dsa_switch *ds); 435 int mv88e6xxx_setup_global(struct dsa_switch *ds); 436 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg); 437 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val); 438 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr); 439 int mv88e6xxx_set_addr_indirect(struct dsa_switch *ds, u8 *addr); 440 int mv88e6xxx_phy_read(struct dsa_switch *ds, int port, int regnum); 441 int mv88e6xxx_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val); 442 int mv88e6xxx_phy_read_indirect(struct dsa_switch *ds, int port, int regnum); 443 int mv88e6xxx_phy_write_indirect(struct dsa_switch *ds, int port, int regnum, 445 void mv88e6xxx_ppu_state_init(struct dsa_switch *ds); 446 int mv88e6xxx_phy_read_ppu(struct dsa_switch *ds, int addr, int regnum); 447 int mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr, 449 void mv88e6xxx_get_strings(struct dsa_switch *ds, int port, uint8_t *data); 450 void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, int port, 452 int mv88e6xxx_get_sset_count(struct dsa_switch *ds); 453 int mv88e6xxx_get_sset_count_basic(struct dsa_switch *ds); 454 void mv88e6xxx_adjust_link(struct dsa_switch *ds, int port, 456 int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port); 457 void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, 459 int mv88e6xxx_get_temp(struct dsa_switch *ds, int *temp); 460 int mv88e6xxx_get_temp_limit(struct dsa_switch *ds, int *temp); 461 int mv88e6xxx_set_temp_limit(struct dsa_switch *ds, int temp); 462 int mv88e6xxx_get_temp_alarm(struct dsa_switch *ds, bool *alarm); 463 int mv88e6xxx_eeprom_load_wait(struct dsa_switch *ds); 464 int mv88e6xxx_eeprom_busy_wait(struct dsa_switch *ds); 465 int mv88e6xxx_phy_read_indirect(struct dsa_switch *ds, int addr, int regnum); 466 int mv88e6xxx_phy_write_indirect(struct dsa_switch *ds, int addr, int regnum, 468 int mv88e6xxx_get_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e); 469 int mv88e6xxx_set_eee(struct dsa_switch *ds, int port, 471 int mv88e6xxx_port_bridge_join(struct dsa_switch *ds, int port, u32 members); 472 int mv88e6xxx_port_bridge_leave(struct dsa_switch *ds, int port, u32 members); 473 int mv88e6xxx_port_stp_update(struct dsa_switch *ds, int port, u8 state); 474 int mv88e6xxx_port_vlan_prepare(struct dsa_switch *ds, int port, 477 int mv88e6xxx_port_vlan_add(struct dsa_switch *ds, int port, 480 int mv88e6xxx_port_vlan_del(struct dsa_switch *ds, int port, 482 int mv88e6xxx_port_pvid_get(struct dsa_switch *ds, int port, u16 *vid); 483 int mv88e6xxx_vlan_getnext(struct dsa_switch *ds, u16 *vid, 485 int mv88e6xxx_port_fdb_prepare(struct dsa_switch *ds, int port, 488 int mv88e6xxx_port_fdb_add(struct dsa_switch *ds, int port, 491 int mv88e6xxx_port_fdb_del(struct dsa_switch *ds, int port, 493 int mv88e6xxx_port_fdb_dump(struct dsa_switch *ds, int port, 496 int mv88e6xxx_phy_page_read(struct dsa_switch *ds, int port, int page, int reg); 497 int mv88e6xxx_phy_page_write(struct dsa_switch *ds, int port, int page,
|
H A D | mv88e6xxx.c | 27 static void assert_smi_lock(struct dsa_switch *ds) assert_smi_lock() 94 static int _mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) _mv88e6xxx_reg_read() 114 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) mv88e6xxx_reg_read() 158 static int _mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, _mv88e6xxx_reg_write() 174 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) mv88e6xxx_reg_write() 186 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr) mv88e6xxx_set_addr_direct() 195 int mv88e6xxx_set_addr_indirect(struct dsa_switch *ds, u8 *addr) mv88e6xxx_set_addr_indirect() 220 static int _mv88e6xxx_phy_read(struct dsa_switch *ds, int addr, int regnum) _mv88e6xxx_phy_read() 227 static int _mv88e6xxx_phy_write(struct dsa_switch *ds, int addr, int regnum, _mv88e6xxx_phy_write() 236 static int mv88e6xxx_ppu_disable(struct dsa_switch *ds) mv88e6xxx_ppu_disable() 257 static int mv88e6xxx_ppu_enable(struct dsa_switch *ds) mv88e6xxx_ppu_enable() 283 struct dsa_switch *ds = ((struct dsa_switch *)ps) - 1; mv88e6xxx_ppu_reenable_work() 298 static int mv88e6xxx_ppu_access_get(struct dsa_switch *ds) mv88e6xxx_ppu_access_get() 325 static void mv88e6xxx_ppu_access_put(struct dsa_switch *ds) mv88e6xxx_ppu_access_put() 334 void mv88e6xxx_ppu_state_init(struct dsa_switch *ds) mv88e6xxx_ppu_state_init() 345 int mv88e6xxx_phy_read_ppu(struct dsa_switch *ds, int addr, int regnum) mv88e6xxx_phy_read_ppu() 358 int mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr, mv88e6xxx_phy_write_ppu() 373 static bool mv88e6xxx_6065_family(struct dsa_switch *ds) mv88e6xxx_6065_family() 387 static bool mv88e6xxx_6095_family(struct dsa_switch *ds) mv88e6xxx_6095_family() 399 static bool mv88e6xxx_6097_family(struct dsa_switch *ds) mv88e6xxx_6097_family() 413 static bool mv88e6xxx_6165_family(struct dsa_switch *ds) mv88e6xxx_6165_family() 426 static bool mv88e6xxx_6185_family(struct dsa_switch *ds) mv88e6xxx_6185_family() 444 static bool mv88e6xxx_6320_family(struct dsa_switch *ds) mv88e6xxx_6320_family() 456 static bool mv88e6xxx_6351_family(struct dsa_switch *ds) mv88e6xxx_6351_family() 470 static bool mv88e6xxx_6352_family(struct dsa_switch *ds) mv88e6xxx_6352_family() 488 void mv88e6xxx_adjust_link(struct dsa_switch *ds, int port, mv88e6xxx_adjust_link() 552 static int _mv88e6xxx_stats_wait(struct dsa_switch *ds) _mv88e6xxx_stats_wait() 566 static int _mv88e6xxx_stats_snapshot(struct dsa_switch *ds, int port) _mv88e6xxx_stats_snapshot() 588 static void _mv88e6xxx_stats_read(struct dsa_switch *ds, int stat, u32 *val) _mv88e6xxx_stats_read() 656 static bool have_sw_in_discards(struct dsa_switch *ds) have_sw_in_discards() 672 static void _mv88e6xxx_get_strings(struct dsa_switch *ds, _mv88e6xxx_get_strings() 685 static uint64_t _mv88e6xxx_get_ethtool_stat(struct dsa_switch *ds, _mv88e6xxx_get_ethtool_stat() 719 static void _mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, _mv88e6xxx_get_ethtool_stats() 745 mv88e6xxx_get_strings(struct dsa_switch *ds, int port, uint8_t *data) mv88e6xxx_get_strings() 755 int mv88e6xxx_get_sset_count(struct dsa_switch *ds) mv88e6xxx_get_sset_count() 763 mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, mv88e6xxx_get_ethtool_stats() 776 int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port) mv88e6xxx_get_regs_len() 781 void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, mv88e6xxx_get_regs() 800 static int _mv88e6xxx_wait(struct dsa_switch *ds, int reg, int offset, _mv88e6xxx_wait() 819 static int mv88e6xxx_wait(struct dsa_switch *ds, int reg, int offset, u16 mask) mv88e6xxx_wait() 831 static int _mv88e6xxx_phy_wait(struct dsa_switch *ds) _mv88e6xxx_phy_wait() 837 int mv88e6xxx_eeprom_load_wait(struct dsa_switch *ds) mv88e6xxx_eeprom_load_wait() 843 int mv88e6xxx_eeprom_busy_wait(struct dsa_switch *ds) mv88e6xxx_eeprom_busy_wait() 849 static int _mv88e6xxx_atu_wait(struct dsa_switch *ds) _mv88e6xxx_atu_wait() 855 static int _mv88e6xxx_phy_read_indirect(struct dsa_switch *ds, int addr, _mv88e6xxx_phy_read_indirect() 873 static int _mv88e6xxx_phy_write_indirect(struct dsa_switch *ds, int addr, _mv88e6xxx_phy_write_indirect() 889 int mv88e6xxx_get_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e) mv88e6xxx_get_eee() 915 int mv88e6xxx_set_eee(struct dsa_switch *ds, int port, mv88e6xxx_set_eee() 941 static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, u16 cmd) _mv88e6xxx_atu_cmd() 952 static int _mv88e6xxx_atu_data_write(struct dsa_switch *ds, _mv88e6xxx_atu_data_write() 975 static int _mv88e6xxx_atu_flush_move(struct dsa_switch *ds, _mv88e6xxx_atu_flush_move() 1006 static int _mv88e6xxx_atu_flush(struct dsa_switch *ds, u16 fid, bool static_too) _mv88e6xxx_atu_flush() 1016 static int _mv88e6xxx_atu_move(struct dsa_switch *ds, u16 fid, int from_port, _mv88e6xxx_atu_move() 1034 static int _mv88e6xxx_atu_remove(struct dsa_switch *ds, u16 fid, int port, _mv88e6xxx_atu_remove() 1041 static int mv88e6xxx_set_port_state(struct dsa_switch *ds, int port, u8 state) mv88e6xxx_set_port_state() 1077 static int _mv88e6xxx_port_vlan_map_set(struct dsa_switch *ds, int port, _mv88e6xxx_port_vlan_map_set() 1094 int mv88e6xxx_port_stp_update(struct dsa_switch *ds, int port, u8 state) mv88e6xxx_port_stp_update() 1128 static int _mv88e6xxx_port_pvid_get(struct dsa_switch *ds, int port, u16 *pvid) _mv88e6xxx_port_pvid_get() 1141 int mv88e6xxx_port_pvid_get(struct dsa_switch *ds, int port, u16 *pvid) mv88e6xxx_port_pvid_get() 1154 static int _mv88e6xxx_port_pvid_set(struct dsa_switch *ds, int port, u16 pvid) _mv88e6xxx_port_pvid_set() 1160 static int _mv88e6xxx_vtu_wait(struct dsa_switch *ds) _mv88e6xxx_vtu_wait() 1166 static int _mv88e6xxx_vtu_cmd(struct dsa_switch *ds, u16 op) _mv88e6xxx_vtu_cmd() 1177 static int _mv88e6xxx_vtu_stu_flush(struct dsa_switch *ds) _mv88e6xxx_vtu_stu_flush() 1188 static int _mv88e6xxx_vtu_stu_data_read(struct dsa_switch *ds, _mv88e6xxx_vtu_stu_data_read() 1216 static int _mv88e6xxx_vtu_stu_data_write(struct dsa_switch *ds, _mv88e6xxx_vtu_stu_data_write() 1242 static int _mv88e6xxx_vtu_vid_write(struct dsa_switch *ds, u16 vid) _mv88e6xxx_vtu_vid_write() 1248 static int _mv88e6xxx_vtu_getnext(struct dsa_switch *ds, _mv88e6xxx_vtu_getnext() 1296 static int _mv88e6xxx_vtu_loadpurge(struct dsa_switch *ds, _mv88e6xxx_vtu_loadpurge() 1337 static int _mv88e6xxx_stu_getnext(struct dsa_switch *ds, u8 sid, _mv88e6xxx_stu_getnext() 1378 static int _mv88e6xxx_stu_loadpurge(struct dsa_switch *ds, _mv88e6xxx_stu_loadpurge() 1410 static int _mv88e6xxx_vlan_init(struct dsa_switch *ds, u16 vid, _mv88e6xxx_vlan_init() 1461 int mv88e6xxx_port_vlan_prepare(struct dsa_switch *ds, int port, mv88e6xxx_port_vlan_prepare() 1475 static int _mv88e6xxx_port_vlan_add(struct dsa_switch *ds, int port, u16 vid, _mv88e6xxx_port_vlan_add() 1502 int mv88e6xxx_port_vlan_add(struct dsa_switch *ds, int port, mv88e6xxx_port_vlan_add() 1529 static int _mv88e6xxx_port_vlan_del(struct dsa_switch *ds, int port, u16 vid) _mv88e6xxx_port_vlan_del() 1568 int mv88e6xxx_port_vlan_del(struct dsa_switch *ds, int port, mv88e6xxx_port_vlan_del() 1599 int mv88e6xxx_vlan_getnext(struct dsa_switch *ds, u16 *vid, mv88e6xxx_vlan_getnext() 1645 static int _mv88e6xxx_atu_mac_write(struct dsa_switch *ds, _mv88e6xxx_atu_mac_write() 1661 static int _mv88e6xxx_atu_mac_read(struct dsa_switch *ds, unsigned char *addr) _mv88e6xxx_atu_mac_read() 1677 static int _mv88e6xxx_atu_load(struct dsa_switch *ds, _mv88e6xxx_atu_load() 1701 static int _mv88e6xxx_port_fdb_load(struct dsa_switch *ds, int port, _mv88e6xxx_port_fdb_load() 1718 int mv88e6xxx_port_fdb_prepare(struct dsa_switch *ds, int port, mv88e6xxx_port_fdb_prepare() 1732 int mv88e6xxx_port_fdb_add(struct dsa_switch *ds, int port, mv88e6xxx_port_fdb_add() 1749 int mv88e6xxx_port_fdb_del(struct dsa_switch *ds, int port, mv88e6xxx_port_fdb_del() 1763 static int _mv88e6xxx_atu_getnext(struct dsa_switch *ds, u16 fid, _mv88e6xxx_atu_getnext() 1812 int mv88e6xxx_port_fdb_dump(struct dsa_switch *ds, int port, mv88e6xxx_port_fdb_dump() 1877 int mv88e6xxx_port_bridge_join(struct dsa_switch *ds, int port, u32 members) mv88e6xxx_port_bridge_join() 1892 int mv88e6xxx_port_bridge_leave(struct dsa_switch *ds, int port, u32 members) mv88e6xxx_port_bridge_leave() 1910 struct dsa_switch *ds; mv88e6xxx_bridge_work() 1914 ds = ((struct dsa_switch *)ps) - 1; mv88e6xxx_bridge_work() 1923 static int mv88e6xxx_setup_port(struct dsa_switch *ds, int port) mv88e6xxx_setup_port() 2167 int mv88e6xxx_setup_ports(struct dsa_switch *ds) mv88e6xxx_setup_ports() 2189 int mv88e6xxx_setup_common(struct dsa_switch *ds) mv88e6xxx_setup_common() 2202 int mv88e6xxx_setup_global(struct dsa_switch *ds) mv88e6xxx_setup_global() 2322 int mv88e6xxx_switch_reset(struct dsa_switch *ds, bool ppu_active) mv88e6xxx_switch_reset() 2362 int mv88e6xxx_phy_page_read(struct dsa_switch *ds, int port, int page, int reg) mv88e6xxx_phy_page_read() 2378 int mv88e6xxx_phy_page_write(struct dsa_switch *ds, int port, int page, mv88e6xxx_phy_page_write() 2396 static int mv88e6xxx_port_to_phy_addr(struct dsa_switch *ds, int port) mv88e6xxx_port_to_phy_addr() 2406 mv88e6xxx_phy_read(struct dsa_switch *ds, int port, int regnum) mv88e6xxx_phy_read() 2422 mv88e6xxx_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) mv88e6xxx_phy_write() 2438 mv88e6xxx_phy_read_indirect(struct dsa_switch *ds, int port, int regnum) mv88e6xxx_phy_read_indirect() 2454 mv88e6xxx_phy_write_indirect(struct dsa_switch *ds, int port, int regnum, mv88e6xxx_phy_write_indirect() 2472 static int mv88e61xx_get_temp(struct dsa_switch *ds, int *temp) mv88e61xx_get_temp() 2517 static int mv88e63xx_get_temp(struct dsa_switch *ds, int *temp) mv88e63xx_get_temp() 2533 int mv88e6xxx_get_temp(struct dsa_switch *ds, int *temp) mv88e6xxx_get_temp() 2541 int mv88e6xxx_get_temp_limit(struct dsa_switch *ds, int *temp) mv88e6xxx_get_temp_limit() 2560 int mv88e6xxx_set_temp_limit(struct dsa_switch *ds, int temp) mv88e6xxx_set_temp_limit() 2576 int mv88e6xxx_get_temp_alarm(struct dsa_switch *ds, bool *alarm) mv88e6xxx_get_temp_alarm()
|
H A D | mv88e6131.c | 34 static int mv88e6131_setup_global(struct dsa_switch *ds) mv88e6131_setup_global() 89 static int mv88e6131_setup(struct dsa_switch *ds) mv88e6131_setup() 127 static int mv88e6131_port_to_phy_addr(struct dsa_switch *ds, int port) mv88e6131_port_to_phy_addr() 138 mv88e6131_phy_read(struct dsa_switch *ds, int port, int regnum) mv88e6131_phy_read() 149 mv88e6131_phy_write(struct dsa_switch *ds, mv88e6131_phy_write()
|
H A D | mv88e6060.c | 20 static int reg_read(struct dsa_switch *ds, int addr, int reg) reg_read() 41 static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) reg_write() 82 static int mv88e6060_switch_reset(struct dsa_switch *ds) mv88e6060_switch_reset() 119 static int mv88e6060_setup_global(struct dsa_switch *ds) mv88e6060_setup_global() 138 static int mv88e6060_setup_port(struct dsa_switch *ds, int p) mv88e6060_setup_port() 175 static int mv88e6060_setup(struct dsa_switch *ds) mv88e6060_setup() 199 static int mv88e6060_set_addr(struct dsa_switch *ds, u8 *addr) mv88e6060_set_addr() 216 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) mv88e6060_phy_read() 228 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) mv88e6060_phy_write()
|
H A D | bcm_sf2.c | 95 static void bcm_sf2_sw_get_strings(struct dsa_switch *ds, bcm_sf2_sw_get_strings() 105 static void bcm_sf2_sw_get_ethtool_stats(struct dsa_switch *ds, bcm_sf2_sw_get_ethtool_stats() 133 static int bcm_sf2_sw_get_sset_count(struct dsa_switch *ds) bcm_sf2_sw_get_sset_count() 143 static void bcm_sf2_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) bcm_sf2_imp_vlan_setup() 163 static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) bcm_sf2_imp_setup() 228 static void bcm_sf2_eee_enable_set(struct dsa_switch *ds, int port, bool enable) bcm_sf2_eee_enable_set() 241 static void bcm_sf2_gphy_enable_set(struct dsa_switch *ds, bool enable) bcm_sf2_gphy_enable_set() 314 static int bcm_sf2_port_setup(struct dsa_switch *ds, int port, bcm_sf2_port_setup() 370 static void bcm_sf2_port_disable(struct dsa_switch *ds, int port, bcm_sf2_port_disable() 402 static int bcm_sf2_eee_init(struct dsa_switch *ds, int port, bcm_sf2_eee_init() 420 static int bcm_sf2_sw_get_eee(struct dsa_switch *ds, int port, bcm_sf2_sw_get_eee() 434 static int bcm_sf2_sw_set_eee(struct dsa_switch *ds, int port, bcm_sf2_sw_set_eee() 457 static int bcm_sf2_sw_fast_age_port(struct dsa_switch *ds, int port) bcm_sf2_sw_fast_age_port() 485 static int bcm_sf2_sw_br_join(struct dsa_switch *ds, int port, bcm_sf2_sw_br_join() 518 static int bcm_sf2_sw_br_leave(struct dsa_switch *ds, int port, bcm_sf2_sw_br_leave() 548 static int bcm_sf2_sw_br_set_stp_state(struct dsa_switch *ds, int port, bcm_sf2_sw_br_set_stp_state() 723 static int bcm_sf2_sw_fdb_prepare(struct dsa_switch *ds, int port, bcm_sf2_sw_fdb_prepare() 731 static int bcm_sf2_sw_fdb_add(struct dsa_switch *ds, int port, bcm_sf2_sw_fdb_add() 740 static int bcm_sf2_sw_fdb_del(struct dsa_switch *ds, int port, bcm_sf2_sw_fdb_del() 796 static int bcm_sf2_sw_fdb_dump(struct dsa_switch *ds, int port, bcm_sf2_sw_fdb_dump() 929 static int bcm_sf2_sw_setup(struct dsa_switch *ds) bcm_sf2_sw_setup() 1057 static int bcm_sf2_sw_set_addr(struct dsa_switch *ds, u8 *addr) bcm_sf2_sw_set_addr() 1062 static u32 bcm_sf2_sw_get_phy_flags(struct dsa_switch *ds, int port) bcm_sf2_sw_get_phy_flags() 1074 static int bcm_sf2_sw_indir_rw(struct dsa_switch *ds, int op, int addr, bcm_sf2_sw_indir_rw() 1106 static int bcm_sf2_sw_phy_read(struct dsa_switch *ds, int addr, int regnum) bcm_sf2_sw_phy_read() 1120 static int bcm_sf2_sw_phy_write(struct dsa_switch *ds, int addr, int regnum, bcm_sf2_sw_phy_write() 1136 static void bcm_sf2_sw_adjust_link(struct dsa_switch *ds, int port, bcm_sf2_sw_adjust_link() 1216 static void bcm_sf2_sw_fixed_link_update(struct dsa_switch *ds, int port, bcm_sf2_sw_fixed_link_update() 1269 static int bcm_sf2_sw_suspend(struct dsa_switch *ds) bcm_sf2_sw_suspend() 1289 static int bcm_sf2_sw_resume(struct dsa_switch *ds) bcm_sf2_sw_resume() 1314 static void bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port, bcm_sf2_sw_get_wol() 1337 static int bcm_sf2_sw_set_wol(struct dsa_switch *ds, int port, bcm_sf2_sw_set_wol()
|
H A D | mv88e6352.c | 45 static int mv88e6352_setup_global(struct dsa_switch *ds) mv88e6352_setup_global() 78 static int mv88e6352_setup(struct dsa_switch *ds) mv88e6352_setup() 102 static int mv88e6352_read_eeprom_word(struct dsa_switch *ds, int addr) mv88e6352_read_eeprom_word() 125 static int mv88e6352_get_eeprom(struct dsa_switch *ds, mv88e6352_get_eeprom() 188 static int mv88e6352_eeprom_is_readonly(struct dsa_switch *ds) mv88e6352_eeprom_is_readonly() 202 static int mv88e6352_write_eeprom_word(struct dsa_switch *ds, int addr, mv88e6352_write_eeprom_word() 226 static int mv88e6352_set_eeprom(struct dsa_switch *ds, mv88e6352_set_eeprom()
|
H A D | mv88e6123_61_65.c | 38 static int mv88e6123_61_65_setup_global(struct dsa_switch *ds) mv88e6123_61_65_setup_global() 71 static int mv88e6123_61_65_setup(struct dsa_switch *ds) mv88e6123_61_65_setup()
|
H A D | mv88e6171.c | 33 static int mv88e6171_setup_global(struct dsa_switch *ds) mv88e6171_setup_global() 67 static int mv88e6171_setup(struct dsa_switch *ds) mv88e6171_setup()
|
/linux-4.4.14/net/dsa/ |
H A D | dsa_priv.h | 37 struct dsa_switch *parent; 61 void dsa_slave_mii_bus_init(struct dsa_switch *ds); 62 int dsa_slave_create(struct dsa_switch *ds, struct device *parent,
|
H A D | slave.c | 27 struct dsa_switch *ds = bus->priv; dsa_slave_phy_read() 37 struct dsa_switch *ds = bus->priv; dsa_slave_phy_write() 45 void dsa_slave_mii_bus_init(struct dsa_switch *ds) dsa_slave_mii_bus_init() 75 struct dsa_switch *ds = p->parent; dsa_slave_open() 131 struct dsa_switch *ds = p->parent; dsa_slave_close() 203 static int dsa_bridge_check_vlan_range(struct dsa_switch *ds, dsa_bridge_check_vlan_range() 249 struct dsa_switch *ds = p->parent; dsa_slave_port_vlan_add() 281 struct dsa_switch *ds = p->parent; dsa_slave_port_vlan_del() 294 struct dsa_switch *ds = p->parent; dsa_slave_port_vlan_dump() 337 struct dsa_switch *ds = p->parent; dsa_slave_port_fdb_add() 355 struct dsa_switch *ds = p->parent; dsa_slave_port_fdb_del() 369 struct dsa_switch *ds = p->parent; dsa_slave_port_fdb_dump() 391 static u32 dsa_slave_br_port_mask(struct dsa_switch *ds, dsa_slave_br_port_mask() 415 struct dsa_switch *ds = p->parent; dsa_slave_stp_update() 429 struct dsa_switch *ds = p->parent; dsa_slave_port_attr_set() 529 struct dsa_switch *ds = p->parent; dsa_slave_bridge_port_join() 544 struct dsa_switch *ds = p->parent; dsa_slave_bridge_port_leave() 566 struct dsa_switch *ds = p->parent; dsa_slave_port_attr_get() 668 struct dsa_switch *ds = p->parent; dsa_slave_get_regs_len() 680 struct dsa_switch *ds = p->parent; dsa_slave_get_regs() 711 struct dsa_switch *ds = p->parent; dsa_slave_get_eeprom_len() 726 struct dsa_switch *ds = p->parent; dsa_slave_get_eeprom() 738 struct dsa_switch *ds = p->parent; dsa_slave_set_eeprom() 750 struct dsa_switch *ds = p->parent; dsa_slave_get_strings() 769 struct dsa_switch *ds = p->parent; dsa_slave_get_ethtool_stats() 782 struct dsa_switch *ds = p->parent; dsa_slave_get_sset_count() 800 struct dsa_switch *ds = p->parent; dsa_slave_get_wol() 809 struct dsa_switch *ds = p->parent; dsa_slave_set_wol() 821 struct dsa_switch *ds = p->parent; dsa_slave_set_eee() 840 struct dsa_switch *ds = p->parent; dsa_slave_get_eee() 861 struct dsa_switch *ds = p->parent; dsa_slave_netpoll_setup() 956 struct dsa_switch *ds = p->parent; dsa_slave_adjust_link() 985 struct dsa_switch *ds = p->parent; dsa_slave_fixed_link_update() 998 struct dsa_switch *ds = p->parent; dsa_slave_phy_connect() 1018 struct dsa_switch *ds = p->parent; dsa_slave_phy_setup() 1129 int dsa_slave_create(struct dsa_switch *ds, struct device *parent, dsa_slave_create()
|
H A D | dsa.c | 87 struct dsa_switch *ds = dev_get_drvdata(dev); temp1_input_show() 101 struct dsa_switch *ds = dev_get_drvdata(dev); temp1_max_show() 115 struct dsa_switch *ds = dev_get_drvdata(dev); temp1_max_store() 133 struct dsa_switch *ds = dev_get_drvdata(dev); temp1_max_alarm_show() 156 struct dsa_switch *ds = dev_get_drvdata(dev); dsa_hwmon_attrs_visible() 180 static int dsa_cpu_dsa_setup(struct dsa_switch *ds, struct net_device *master) dsa_cpu_dsa_setup() 215 static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent) dsa_switch_setup_one() 375 static struct dsa_switch * dsa_switch_setup() 381 struct dsa_switch *ds; dsa_switch_setup() 419 static void dsa_switch_destroy(struct dsa_switch *ds) dsa_switch_destroy() 465 static int dsa_switch_suspend(struct dsa_switch *ds) dsa_switch_suspend() 485 static int dsa_switch_resume(struct dsa_switch *ds) dsa_switch_resume() 519 struct dsa_switch *ds = dst->ds[i]; dsa_link_poll_work() 852 struct dsa_switch *ds; dsa_setup_dst() 963 struct dsa_switch *ds = dst->ds[i]; dsa_remove_dst() 1014 struct dsa_switch *ds = dst->ds[i]; dsa_suspend() 1030 struct dsa_switch *ds = dst->ds[i]; dsa_resume()
|
H A D | tag_trailer.c | 64 struct dsa_switch *ds; trailer_rcv()
|
H A D | tag_brcm.c | 98 struct dsa_switch *ds; brcm_tag_rcv()
|
H A D | tag_dsa.c | 74 struct dsa_switch *ds; dsa_rcv()
|
H A D | tag_edsa.c | 87 struct dsa_switch *ds; edsa_rcv()
|