/drivers/net/dsa/microchip/ |
D | ksz9477.h | 16 void ksz9477_cfg_port_member(struct ksz_device *dev, int port, u8 member); 17 void ksz9477_flush_dyn_mac_table(struct ksz_device *dev, int port); 18 void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port); 19 int ksz9477_set_ageing_time(struct ksz_device *dev, unsigned int msecs); 20 int ksz9477_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data); 21 int ksz9477_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val); 22 void ksz9477_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt); 23 void ksz9477_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, 25 void ksz9477_freeze_mib(struct ksz_device *dev, int port, bool freeze); 26 void ksz9477_port_init_cnt(struct ksz_device *dev, int port); [all …]
|
D | ksz8.h | 17 void ksz8_cfg_port_member(struct ksz_device *dev, int port, u8 member); 18 void ksz8_flush_dyn_mac_table(struct ksz_device *dev, int port); 19 void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port); 20 int ksz8_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val); 21 int ksz8_w_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 val); 22 int ksz8_r_dyn_mac_table(struct ksz_device *dev, u16 addr, u8 *mac_addr, 24 void ksz8_w_sta_mac_table(struct ksz_device *dev, u16 addr, 26 void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt); 27 void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, 29 void ksz8_freeze_mib(struct ksz_device *dev, int port, bool freeze); [all …]
|
D | ksz_common.h | 20 struct ksz_device; 81 struct ksz_device *dev; 101 struct ksz_device *ksz_dev; 106 struct ksz_device { struct 284 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member); 285 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port); 286 void (*port_cleanup)(struct ksz_device *dev, int port); 287 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port); 288 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs); 289 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val); [all …]
|
D | lan937x.h | 9 int lan937x_reset_switch(struct ksz_device *dev); 12 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port); 14 int lan937x_switch_init(struct ksz_device *dev); 15 void lan937x_switch_exit(struct ksz_device *dev); 16 int lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data); 17 int lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val); 18 int lan937x_change_mtu(struct ksz_device *dev, int port, int new_mtu); 19 void lan937x_phylink_get_caps(struct ksz_device *dev, int port, 21 void lan937x_setup_rgmii_delay(struct ksz_device *dev, int port); 22 int lan937x_set_ageing_time(struct ksz_device *dev, unsigned int msecs);
|
D | lan937x_main.c | 20 static int lan937x_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in lan937x_cfg() 25 static int lan937x_port_cfg(struct ksz_device *dev, int port, int offset, in lan937x_port_cfg() 32 static int lan937x_enable_spi_indirect_access(struct ksz_device *dev) in lan937x_enable_spi_indirect_access() 52 static int lan937x_vphy_ind_addr_wr(struct ksz_device *dev, int addr, int reg) in lan937x_vphy_ind_addr_wr() 63 static int lan937x_internal_phy_write(struct ksz_device *dev, int addr, int reg, in lan937x_internal_phy_write() 99 static int lan937x_internal_phy_read(struct ksz_device *dev, int addr, int reg, in lan937x_internal_phy_read() 130 int lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data) in lan937x_r_phy() 135 int lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val) in lan937x_w_phy() 140 int lan937x_reset_switch(struct ksz_device *dev) in lan937x_reset_switch() 171 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port) in lan937x_port_setup() [all …]
|
D | ksz9477.c | 22 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg() 27 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg() 34 static void ksz9477_cfg32(struct ksz_device *dev, u32 addr, u32 bits, bool set) in ksz9477_cfg32() 39 static void ksz9477_port_cfg32(struct ksz_device *dev, int port, int offset, in ksz9477_port_cfg32() 46 int ksz9477_change_mtu(struct ksz_device *dev, int port, int mtu) in ksz9477_change_mtu() 63 int ksz9477_max_mtu(struct ksz_device *dev, int port) in ksz9477_max_mtu() 68 static int ksz9477_wait_vlan_ctrl_ready(struct ksz_device *dev) in ksz9477_wait_vlan_ctrl_ready() 76 static int ksz9477_get_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_get_vlan_table() 105 static int ksz9477_set_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_set_vlan_table() 139 static void ksz9477_read_table(struct ksz_device *dev, u32 *table) in ksz9477_read_table() [all …]
|
D | ksz8795.c | 29 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg() 34 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg() 41 static int ksz8_ind_write8(struct ksz_device *dev, u8 table, u16 addr, u8 data) in ksz8_ind_write8() 61 int ksz8_reset_switch(struct ksz_device *dev) in ksz8_reset_switch() 79 static void ksz8795_set_prio_queue(struct ksz_device *dev, int port, int queue) in ksz8795_set_prio_queue() 112 void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt) in ksz8_r_mib_cnt() 147 static void ksz8795_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8795_r_mib_pkt() 199 static void ksz8863_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8863_r_mib_pkt() 232 void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8_r_mib_pkt() 241 void ksz8_freeze_mib(struct ksz_device *dev, int port, bool freeze) in ksz8_freeze_mib() [all …]
|
D | ksz_common.c | 176 static void ksz9477_phylink_mac_link_up(struct ksz_device *dev, int port, 1458 static int ksz_check_device_id(struct ksz_device *dev) in ksz_check_device_id() 1478 struct ksz_device *dev = ds->priv; in ksz_phylink_get_caps() 1506 void ksz_r_mib_stats64(struct ksz_device *dev, int port) in ksz_r_mib_stats64() 1558 struct ksz_device *dev = ds->priv; in ksz_get_stats64() 1571 struct ksz_device *dev = ds->priv; in ksz_get_pause_stats() 1584 struct ksz_device *dev = ds->priv; in ksz_get_strings() 1596 static void ksz_update_port_member(struct ksz_device *dev, int port) in ksz_update_port_member() 1656 struct ksz_device *dev = bus->priv; in ksz_sw_mdio_read() 1673 struct ksz_device *dev = bus->priv; in ksz_sw_mdio_write() [all …]
|
D | ksz8863_smi.c | 25 struct ksz_device *dev = ctx; in ksz8863_mdio_read() 54 struct ksz_device *dev = ctx; in ksz8863_mdio_write() 131 struct ksz_device *dev; in ksz8863_smi_probe() 170 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_remove() 178 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_shutdown()
|
D | ksz9477_i2c.c | 21 struct ksz_device *dev; in ksz9477_i2c_probe() 57 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_remove() 65 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_shutdown()
|
D | ksz_spi.c | 46 struct ksz_device *dev; in ksz_spi_probe() 106 struct ksz_device *dev = spi_get_drvdata(spi); in ksz_spi_remove() 114 struct ksz_device *dev = spi_get_drvdata(spi); in ksz_spi_shutdown()
|