/linux-4.1.27/include/net/ |
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) in dsa_is_cpu_port() argument 174 static inline bool dsa_is_port_initialized(struct dsa_switch *ds, int p) in dsa_is_port_initialized() 179 static inline u8 dsa_upstream_port(struct dsa_switch *ds) in dsa_upstream_port() 205 int (*setup)(struct dsa_switch *ds); 206 int (*set_addr)(struct dsa_switch *ds, u8 *addr); 207 u32 (*get_phy_flags)(struct dsa_switch *ds, int port); 212 int (*phy_read)(struct dsa_switch *ds, int port, int regnum); 213 int (*phy_write)(struct dsa_switch *ds, int port, [all …]
|
/linux-4.1.27/drivers/net/dsa/ |
D | mv88e6xxx.h | 262 int mv88e6xxx_switch_reset(struct dsa_switch *ds, bool ppu_active); 263 int mv88e6xxx_setup_port_common(struct dsa_switch *ds, int port); 264 int mv88e6xxx_setup_common(struct dsa_switch *ds); 266 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg); 269 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val); 270 int mv88e6xxx_config_prio(struct dsa_switch *ds); 271 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr); 272 int mv88e6xxx_set_addr_indirect(struct dsa_switch *ds, u8 *addr); 273 int mv88e6xxx_phy_read(struct dsa_switch *ds, int port, int regnum); 274 int mv88e6xxx_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val); [all …]
|
D | mv88e6xxx.c | 79 static int _mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) in _mv88e6xxx_reg_read() 97 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) in mv88e6xxx_reg_read() 142 static int _mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, in _mv88e6xxx_reg_write() 156 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in mv88e6xxx_reg_write() 168 int mv88e6xxx_config_prio(struct dsa_switch *ds) in mv88e6xxx_config_prio() 186 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr) in mv88e6xxx_set_addr_direct() 195 int mv88e6xxx_set_addr_indirect(struct dsa_switch *ds, u8 *addr) in mv88e6xxx_set_addr_indirect() 221 static int _mv88e6xxx_phy_read(struct dsa_switch *ds, int addr, int regnum) in _mv88e6xxx_phy_read() 229 static int _mv88e6xxx_phy_write(struct dsa_switch *ds, int addr, int regnum, in _mv88e6xxx_phy_write() 238 static int mv88e6xxx_ppu_disable(struct dsa_switch *ds) in mv88e6xxx_ppu_disable() [all …]
|
D | mv88e6060.c | 22 static int reg_read(struct dsa_switch *ds, int addr, int reg) in reg_read() 43 static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in reg_write() 83 static int mv88e6060_switch_reset(struct dsa_switch *ds) in mv88e6060_switch_reset() 116 static int mv88e6060_setup_global(struct dsa_switch *ds) in mv88e6060_setup_global() 133 static int mv88e6060_setup_port(struct dsa_switch *ds, int p) in mv88e6060_setup_port() 165 static int mv88e6060_setup(struct dsa_switch *ds) in mv88e6060_setup() 189 static int mv88e6060_set_addr(struct dsa_switch *ds, u8 *addr) in mv88e6060_set_addr() 205 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6060_phy_read() 217 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) in mv88e6060_phy_write() 228 static void mv88e6060_poll_link(struct dsa_switch *ds) in mv88e6060_poll_link()
|
D | mv88e6352.c | 48 static int mv88e6352_setup_global(struct dsa_switch *ds) in mv88e6352_setup_global() 136 static int mv88e6352_setup_port(struct dsa_switch *ds, int p) in mv88e6352_setup_port() 233 static int mv88e6352_get_temp(struct dsa_switch *ds, int *temp) in mv88e6352_get_temp() 248 static int mv88e6352_get_temp_limit(struct dsa_switch *ds, int *temp) in mv88e6352_get_temp_limit() 263 static int mv88e6352_set_temp_limit(struct dsa_switch *ds, int temp) in mv88e6352_set_temp_limit() 275 static int mv88e6352_get_temp_alarm(struct dsa_switch *ds, bool *alarm) in mv88e6352_get_temp_alarm() 291 static int mv88e6352_setup(struct dsa_switch *ds) in mv88e6352_setup() 324 static int mv88e6352_read_eeprom_word(struct dsa_switch *ds, int addr) in mv88e6352_read_eeprom_word() 346 static int mv88e6352_get_eeprom(struct dsa_switch *ds, in mv88e6352_get_eeprom() 409 static int mv88e6352_eeprom_is_readonly(struct dsa_switch *ds) in mv88e6352_eeprom_is_readonly() [all …]
|
D | bcm_sf2.c | 91 static void bcm_sf2_sw_get_strings(struct dsa_switch *ds, in bcm_sf2_sw_get_strings() 101 static void bcm_sf2_sw_get_ethtool_stats(struct dsa_switch *ds, in bcm_sf2_sw_get_ethtool_stats() 129 static int bcm_sf2_sw_get_sset_count(struct dsa_switch *ds) in bcm_sf2_sw_get_sset_count() 139 static void bcm_sf2_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in bcm_sf2_imp_vlan_setup() 159 static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) in bcm_sf2_imp_setup() 224 static void bcm_sf2_eee_enable_set(struct dsa_switch *ds, int port, bool enable) in bcm_sf2_eee_enable_set() 237 static void bcm_sf2_gphy_enable_set(struct dsa_switch *ds, bool enable) in bcm_sf2_gphy_enable_set() 266 static int bcm_sf2_port_setup(struct dsa_switch *ds, int port, in bcm_sf2_port_setup() 322 static void bcm_sf2_port_disable(struct dsa_switch *ds, int port, in bcm_sf2_port_disable() 356 static int bcm_sf2_eee_init(struct dsa_switch *ds, int port, in bcm_sf2_eee_init() [all …]
|
D | mv88e6131.c | 45 static int mv88e6131_setup_global(struct dsa_switch *ds) in mv88e6131_setup_global() 126 static int mv88e6131_setup_port(struct dsa_switch *ds, int p) in mv88e6131_setup_port() 223 static int mv88e6131_setup(struct dsa_switch *ds) in mv88e6131_setup() 269 static int mv88e6131_port_to_phy_addr(struct dsa_switch *ds, int port) in mv88e6131_port_to_phy_addr() 280 mv88e6131_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6131_phy_read() 291 mv88e6131_phy_write(struct dsa_switch *ds, in mv88e6131_phy_write()
|
D | mv88e6171.c | 39 static int mv88e6171_setup_global(struct dsa_switch *ds) in mv88e6171_setup_global() 131 static int mv88e6171_setup_port(struct dsa_switch *ds, int p) in mv88e6171_setup_port() 227 static int mv88e6171_setup(struct dsa_switch *ds) in mv88e6171_setup() 261 static int mv88e6171_get_eee(struct dsa_switch *ds, int port, in mv88e6171_get_eee() 272 static int mv88e6171_set_eee(struct dsa_switch *ds, int port, in mv88e6171_set_eee()
|
D | mv88e6123_61_65.c | 55 static int mv88e6123_61_65_setup_global(struct dsa_switch *ds) in mv88e6123_61_65_setup_global() 144 static int mv88e6123_61_65_setup_port(struct dsa_switch *ds, int p) in mv88e6123_61_65_setup_port() 239 static int mv88e6123_61_65_setup(struct dsa_switch *ds) in mv88e6123_61_65_setup()
|
/linux-4.1.27/net/dsa/ |
D | slave.c | 26 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_read() 36 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_write() 44 void dsa_slave_mii_bus_init(struct dsa_switch *ds) in dsa_slave_mii_bus_init() 74 struct dsa_switch *ds = p->parent; in dsa_slave_open() 130 struct dsa_switch *ds = p->parent; in dsa_slave_close() 207 struct dsa_switch *ds = p->parent; in dsa_slave_fdb_add() 221 struct dsa_switch *ds = p->parent; in dsa_slave_fdb_del() 272 struct dsa_switch *ds = p->parent; in dsa_slave_fdb_dump() 315 static u32 dsa_slave_br_port_mask(struct dsa_switch *ds, in dsa_slave_br_port_mask() 339 struct dsa_switch *ds = p->parent; in dsa_slave_stp_update() [all …]
|
D | dsa_priv.h | 36 struct dsa_switch *parent; 57 void dsa_slave_mii_bus_init(struct dsa_switch *ds); 58 int dsa_slave_create(struct dsa_switch *ds, struct device *parent,
|
D | dsa.c | 86 struct dsa_switch *ds = dev_get_drvdata(dev); in temp1_input_show() 100 struct dsa_switch *ds = dev_get_drvdata(dev); in temp1_max_show() 114 struct dsa_switch *ds = dev_get_drvdata(dev); in temp1_max_store() 132 struct dsa_switch *ds = dev_get_drvdata(dev); in temp1_max_alarm_show() 155 struct dsa_switch *ds = dev_get_drvdata(dev); in dsa_hwmon_attrs_visible() 179 static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent) in dsa_switch_setup_one() 334 static struct dsa_switch * 340 struct dsa_switch *ds; in dsa_switch_setup() 378 static void dsa_switch_destroy(struct dsa_switch *ds) in dsa_switch_destroy() 387 static int dsa_switch_suspend(struct dsa_switch *ds) in dsa_switch_suspend() [all …]
|
D | tag_brcm.c | 107 struct dsa_switch *ds; in brcm_tag_rcv()
|
D | tag_trailer.c | 70 struct dsa_switch *ds; in trailer_rcv()
|
D | tag_dsa.c | 80 struct dsa_switch *ds; in dsa_rcv()
|
D | tag_edsa.c | 93 struct dsa_switch *ds; in edsa_rcv()
|