Home
last modified time | relevance | path

Searched refs:ksz_device (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/net/dsa/microchip/
Dksz_common.h73 struct ksz_device { struct
165 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member);
166 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port);
167 void (*port_cleanup)(struct ksz_device *dev, int port);
168 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
169 void (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
170 void (*w_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 val);
171 int (*r_dyn_mac_table)(struct ksz_device *dev, u16 addr, u8 *mac_addr,
174 int (*r_sta_mac_table)(struct ksz_device *dev, u16 addr,
176 void (*w_sta_mac_table)(struct ksz_device *dev, u16 addr,
[all …]
Dksz9477.c26 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg()
31 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg()
38 static void ksz9477_cfg32(struct ksz_device *dev, u32 addr, u32 bits, bool set) in ksz9477_cfg32()
43 static void ksz9477_port_cfg32(struct ksz_device *dev, int port, int offset, in ksz9477_port_cfg32()
52 struct ksz_device *dev = ds->priv; in ksz9477_change_mtu()
73 static int ksz9477_wait_vlan_ctrl_ready(struct ksz_device *dev) in ksz9477_wait_vlan_ctrl_ready()
81 static int ksz9477_get_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_get_vlan_table()
110 static int ksz9477_set_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_set_vlan_table()
144 static void ksz9477_read_table(struct ksz_device *dev, u32 *table) in ksz9477_read_table()
152 static void ksz9477_write_table(struct ksz_device *dev, u32 *table) in ksz9477_write_table()
[all …]
Dksz_common.c422 static int ksz_check_device_id(struct ksz_device *dev) in ksz_check_device_id()
442 struct ksz_device *dev = ds->priv; in ksz_phylink_get_caps()
471 void ksz_r_mib_stats64(struct ksz_device *dev, int port) in ksz_r_mib_stats64()
517 struct ksz_device *dev = ds->priv; in ksz_get_stats64()
531 struct ksz_device *dev = ds->priv; in ksz_get_strings()
544 void ksz_update_port_member(struct ksz_device *dev, int port) in ksz_update_port_member()
603 static void port_r_cnt(struct ksz_device *dev, int port) in port_r_cnt()
629 struct ksz_device *dev = container_of(work, struct ksz_device, in ksz_mib_read_work()
664 void ksz_init_mib_timer(struct ksz_device *dev) in ksz_init_mib_timer()
683 struct ksz_device *dev = ds->priv; in ksz_phy_read16()
[all …]
Dksz8795.c129 static bool ksz_is_ksz88x3(struct ksz_device *dev) in ksz_is_ksz88x3()
134 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg()
139 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg()
146 static int ksz8_ind_write8(struct ksz_device *dev, u8 table, u16 addr, u8 data) in ksz8_ind_write8()
165 static int ksz8_reset_switch(struct ksz_device *dev) in ksz8_reset_switch()
183 static void ksz8795_set_prio_queue(struct ksz_device *dev, int port, int queue) in ksz8795_set_prio_queue()
216 static void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt) in ksz8_r_mib_cnt()
252 static void ksz8795_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8795_r_mib_pkt()
305 static void ksz8863_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8863_r_mib_pkt()
337 static void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8_r_mib_pkt()
[all …]
Dksz8863_smi.c25 struct ksz_device *dev = ctx; in ksz8863_mdio_read()
56 struct ksz_device *dev = ctx; in ksz8863_mdio_write()
144 struct ksz_device *dev; in ksz8863_smi_probe()
190 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_remove()
200 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_shutdown()
Dksz9477_i2c.c21 struct ksz_device *dev; in ksz9477_i2c_probe()
57 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_remove()
69 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_shutdown()
Dksz9477_spi.c28 struct ksz_device *dev; in ksz9477_spi_probe()
70 struct ksz_device *dev = spi_get_drvdata(spi); in ksz9477_spi_remove()
80 struct ksz_device *dev = spi_get_drvdata(spi); in ksz9477_spi_shutdown()
Dksz8795_spi.c40 struct ksz_device *dev; in ksz8795_spi_probe()
98 struct ksz_device *dev = spi_get_drvdata(spi); in ksz8795_spi_remove()
108 struct ksz_device *dev = spi_get_drvdata(spi); in ksz8795_spi_shutdown()