Lines Matching refs:ksz_device

36 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set)  in ksz_cfg()
41 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg()
62 static int ksz8_ind_write8(struct ksz_device *dev, u8 table, u16 addr, u8 data) in ksz8_ind_write8()
96 static int ksz8_ind_read8(struct ksz_device *dev, u8 table, u16 addr, u8 *val) in ksz8_ind_read8()
116 int ksz8_pme_write8(struct ksz_device *dev, u32 reg, u8 value) in ksz8_pme_write8()
121 int ksz8_pme_pread8(struct ksz_device *dev, int port, int offset, u8 *data) in ksz8_pme_pread8()
128 int ksz8_pme_pwrite8(struct ksz_device *dev, int port, int offset, u8 data) in ksz8_pme_pwrite8()
135 int ksz8_reset_switch(struct ksz_device *dev) in ksz8_reset_switch()
153 static int ksz8863_change_mtu(struct ksz_device *dev, int frame_size) in ksz8863_change_mtu()
166 static int ksz8795_change_mtu(struct ksz_device *dev, int frame_size) in ksz8795_change_mtu()
183 int ksz8_change_mtu(struct ksz_device *dev, int port, int mtu) in ksz8_change_mtu()
206 static int ksz8_port_queue_split(struct ksz_device *dev, int port, int queues) in ksz8_port_queue_split()
258 int ksz8_all_queues_split(struct ksz_device *dev, int queues) in ksz8_all_queues_split()
273 void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt) in ksz8_r_mib_cnt()
308 static void ksz8795_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8795_r_mib_pkt()
360 static void ksz8863_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8863_r_mib_pkt()
393 void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8_r_mib_pkt()
402 void ksz8_freeze_mib(struct ksz_device *dev, int port, bool freeze) in ksz8_freeze_mib()
417 void ksz8_port_init_cnt(struct ksz_device *dev, int port) in ksz8_port_init_cnt()
450 static int ksz8_r_table(struct ksz_device *dev, int table, u16 addr, u64 *data) in ksz8_r_table()
472 static int ksz8_w_table(struct ksz_device *dev, int table, u16 addr, u64 data) in ksz8_w_table()
494 static int ksz8_valid_dyn_entry(struct ksz_device *dev, u8 *data) in ksz8_valid_dyn_entry()
520 static int ksz8_r_dyn_mac_table(struct ksz_device *dev, u16 addr, u8 *mac_addr, in ksz8_r_dyn_mac_table()
586 static int ksz8_r_sta_mac_table(struct ksz_device *dev, u16 addr, in ksz8_r_sta_mac_table()
638 static int ksz8_w_sta_mac_table(struct ksz_device *dev, u16 addr, in ksz8_w_sta_mac_table()
671 static void ksz8_from_vlan(struct ksz_device *dev, u32 vlan, u8 *fid, in ksz8_from_vlan()
686 static void ksz8_to_vlan(struct ksz_device *dev, u8 fid, u8 member, u8 valid, in ksz8_to_vlan()
701 static void ksz8_r_vlan_entries(struct ksz_device *dev, u16 addr) in ksz8_r_vlan_entries()
717 static void ksz8_r_vlan_table(struct ksz_device *dev, u16 vid, u16 *vlan) in ksz8_r_vlan_table()
731 static void ksz8_w_vlan_table(struct ksz_device *dev, u16 vid, u16 vlan) in ksz8_w_vlan_table()
759 static int ksz879x_get_loopback(struct ksz_device *dev, u16 port, in ksz879x_get_loopback()
787 static int ksz879x_set_loopback(struct ksz_device *dev, u16 port, u16 val) in ksz879x_set_loopback()
811 static int ksz8_r_phy_ctrl(struct ksz_device *dev, int port, u16 *val) in ksz8_r_phy_ctrl()
877 static int ksz8_r_phy_bmcr(struct ksz_device *dev, u16 port, u16 *val) in ksz8_r_phy_bmcr()
942 int ksz8_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val) in ksz8_r_phy()
1070 static int ksz8_w_phy_ctrl(struct ksz_device *dev, int port, u16 val) in ksz8_w_phy_ctrl()
1124 static int ksz8_w_phy_bmcr(struct ksz_device *dev, u16 port, u16 val) in ksz8_w_phy_bmcr()
1206 int ksz8_w_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 val) in ksz8_w_phy()
1266 void ksz8_cfg_port_member(struct ksz_device *dev, int port, u8 member) in ksz8_cfg_port_member()
1276 void ksz8_flush_dyn_mac_table(struct ksz_device *dev, int port) in ksz8_flush_dyn_mac_table()
1305 int ksz8_fdb_dump(struct ksz_device *dev, int port, in ksz8_fdb_dump()
1332 static int ksz8_add_sta_mac(struct ksz_device *dev, int port, in ksz8_add_sta_mac()
1379 static int ksz8_del_sta_mac(struct ksz_device *dev, int port, in ksz8_del_sta_mac()
1410 int ksz8_mdb_add(struct ksz_device *dev, int port, in ksz8_mdb_add()
1416 int ksz8_mdb_del(struct ksz_device *dev, int port, in ksz8_mdb_del()
1422 int ksz8_fdb_add(struct ksz_device *dev, int port, const unsigned char *addr, in ksz8_fdb_add()
1428 int ksz8_fdb_del(struct ksz_device *dev, int port, const unsigned char *addr, in ksz8_fdb_del()
1434 int ksz8_port_vlan_filtering(struct ksz_device *dev, int port, bool flag, in ksz8_port_vlan_filtering()
1451 static void ksz8_port_enable_pvid(struct ksz_device *dev, int port, bool state) in ksz8_port_enable_pvid()
1461 int ksz8_port_vlan_add(struct ksz_device *dev, int port, in ksz8_port_vlan_add()
1533 int ksz8_port_vlan_del(struct ksz_device *dev, int port, in ksz8_port_vlan_del()
1565 int ksz8_port_mirror_add(struct ksz_device *dev, int port, in ksz8_port_mirror_add()
1587 void ksz8_port_mirror_del(struct ksz_device *dev, int port, in ksz8_port_mirror_del()
1607 static void ksz8795_cpu_interface_select(struct ksz_device *dev, int port) in ksz8795_cpu_interface_select()
1623 void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port) in ksz8_port_setup()
1665 static void ksz88x3_config_rmii_clk(struct ksz_device *dev) in ksz88x3_config_rmii_clk()
1682 struct ksz_device *dev = ds->priv; in ksz8_config_cpu_port()
1751 static void ksz8_phy_port_link_up(struct ksz_device *dev, int port, int duplex, in ksz8_phy_port_link_up()
1801 static void ksz8_cpu_port_link_up(struct ksz_device *dev, int speed, int duplex, in ksz8_cpu_port_link_up()
1833 struct ksz_device *dev = dp->ds->priv; in ksz8_phylink_mac_link_up()
1847 struct ksz_device *dev = ds->priv; in ksz8_handle_global_errata()
1862 int ksz8_enable_stp_addr(struct ksz_device *dev) in ksz8_enable_stp_addr()
1878 struct ksz_device *dev = ds->priv; in ksz8_setup()
1936 void ksz8_get_caps(struct ksz_device *dev, int port, in ksz8_get_caps()
1959 int ksz8_switch_init(struct ksz_device *dev) in ksz8_switch_init()
1968 void ksz8_switch_exit(struct ksz_device *dev) in ksz8_switch_exit()