Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/dsa/microchip/
Dksz9477.h16 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 …]
Dksz8.h17 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_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt);
25 void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr,
27 void ksz8_freeze_mib(struct ksz_device *dev, int port, bool freeze);
28 void ksz8_port_init_cnt(struct ksz_device *dev, int port);
[all …]
Dksz_common.h22 struct ksz_device;
93 struct ksz_device *dev;
119 struct ksz_device *ksz_dev;
133 struct ksz_device { struct
314 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member);
315 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port);
316 void (*port_cleanup)(struct ksz_device *dev, int port);
317 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
318 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs);
319 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
[all …]
Dlan937x.h9 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);
[all …]
Dlan937x_main.c21 static int lan937x_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in lan937x_cfg()
26 static int lan937x_port_cfg(struct ksz_device *dev, int port, int offset, in lan937x_port_cfg()
33 static int lan937x_enable_spi_indirect_access(struct ksz_device *dev) in lan937x_enable_spi_indirect_access()
53 static int lan937x_vphy_ind_addr_wr(struct ksz_device *dev, int addr, int reg) in lan937x_vphy_ind_addr_wr()
64 static int lan937x_internal_phy_write(struct ksz_device *dev, int addr, int reg, in lan937x_internal_phy_write()
100 static int lan937x_internal_phy_read(struct ksz_device *dev, int addr, int reg, in lan937x_internal_phy_read()
131 int lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data) in lan937x_r_phy()
136 int lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val) in lan937x_w_phy()
141 int lan937x_reset_switch(struct ksz_device *dev) in lan937x_reset_switch()
172 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port) in lan937x_port_setup()
[all …]
Dksz9477.c22 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()
59 static int ksz9477_wait_vlan_ctrl_ready(struct ksz_device *dev) in ksz9477_wait_vlan_ctrl_ready()
67 static int ksz9477_get_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_get_vlan_table()
96 static int ksz9477_set_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_set_vlan_table()
130 static void ksz9477_read_table(struct ksz_device *dev, u32 *table) in ksz9477_read_table()
138 static void ksz9477_write_table(struct ksz_device *dev, u32 *table) in ksz9477_write_table()
[all …]
Dksz8795.c29 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 int ksz8863_change_mtu(struct ksz_device *dev, int frame_size) in ksz8863_change_mtu()
92 static int ksz8795_change_mtu(struct ksz_device *dev, int frame_size) in ksz8795_change_mtu()
109 int ksz8_change_mtu(struct ksz_device *dev, int port, int mtu) in ksz8_change_mtu()
130 static void ksz8795_set_prio_queue(struct ksz_device *dev, int port, int queue) in ksz8795_set_prio_queue()
163 void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt) in ksz8_r_mib_cnt()
198 static void ksz8795_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8795_r_mib_pkt()
[all …]
Dksz_ptp.c20 #define ptp_data_to_ksz_dev(d) container_of((d), struct ksz_device, ptp_data)
35 static int ksz_ptp_tou_gpio(struct ksz_device *dev) in ksz_ptp_tou_gpio()
57 static int ksz_ptp_tou_reset(struct ksz_device *dev, u8 unit) in ksz_ptp_tou_reset()
94 static int ksz_ptp_tou_target_time_set(struct ksz_device *dev, in ksz_ptp_tou_target_time_set()
114 static int ksz_ptp_tou_start(struct ksz_device *dev, u8 unit) in ksz_ptp_tou_start()
141 static int ksz_ptp_configure_perout(struct ksz_device *dev, in ksz_ptp_configure_perout()
177 static int ksz_ptp_enable_perout(struct ksz_device *dev, in ksz_ptp_enable_perout()
262 static int ksz_ptp_enable_mode(struct ksz_device *dev) in ksz_ptp_enable_mode()
298 struct ksz_device *dev = ds->priv; in ksz_get_ts_info()
327 struct ksz_device *dev = ds->priv; in ksz_hwtstamp_get()
[all …]
Dksz_common.c221 static void ksz9477_phylink_mac_link_up(struct ksz_device *dev, int port,
1600 static int ksz_check_device_id(struct ksz_device *dev) in ksz_check_device_id()
1620 struct ksz_device *dev = ds->priv; in ksz_phylink_get_caps()
1646 void ksz_r_mib_stats64(struct ksz_device *dev, int port) in ksz_r_mib_stats64()
1695 void ksz88xx_r_mib_stats64(struct ksz_device *dev, int port) in ksz88xx_r_mib_stats64()
1747 struct ksz_device *dev = ds->priv; in ksz_get_stats64()
1760 struct ksz_device *dev = ds->priv; in ksz_get_pause_stats()
1773 struct ksz_device *dev = ds->priv; in ksz_get_strings()
1785 static void ksz_update_port_member(struct ksz_device *dev, int port) in ksz_update_port_member()
1845 struct ksz_device *dev = bus->priv; in ksz_sw_mdio_read()
[all …]
Dksz8863_smi.c28 struct ksz_device *dev = ctx; in ksz8863_mdio_read()
57 struct ksz_device *dev = ctx; in ksz8863_mdio_write()
139 struct ksz_device *dev; in ksz8863_smi_probe()
183 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_remove()
191 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_shutdown()
Dksz9477_i2c.c20 struct ksz_device *dev; in ksz9477_i2c_probe()
56 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_remove()
64 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_shutdown()
Dksz_spi.c46 struct ksz_device *dev; in ksz_spi_probe()
104 struct ksz_device *dev = spi_get_drvdata(spi); in ksz_spi_remove()
112 struct ksz_device *dev = spi_get_drvdata(spi); in ksz_spi_shutdown()