Lines Matching refs:ksz_device

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 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()
250 static void ksz8863_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8863_r_mib_pkt()
283 void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, in ksz8_r_mib_pkt()
292 void ksz8_freeze_mib(struct ksz_device *dev, int port, bool freeze) in ksz8_freeze_mib()
307 void ksz8_port_init_cnt(struct ksz_device *dev, int port) in ksz8_port_init_cnt()
339 static int ksz8_r_table(struct ksz_device *dev, int table, u16 addr, u64 *data) in ksz8_r_table()
361 static int ksz8_w_table(struct ksz_device *dev, int table, u16 addr, u64 data) in ksz8_w_table()
383 static int ksz8_valid_dyn_entry(struct ksz_device *dev, u8 *data) in ksz8_valid_dyn_entry()
411 int ksz8_r_dyn_mac_table(struct ksz_device *dev, u16 addr, u8 *mac_addr, in ksz8_r_dyn_mac_table()
474 static int ksz8_r_sta_mac_table(struct ksz_device *dev, u16 addr, in ksz8_r_sta_mac_table()
526 static int ksz8_w_sta_mac_table(struct ksz_device *dev, u16 addr, in ksz8_w_sta_mac_table()
559 static void ksz8_from_vlan(struct ksz_device *dev, u32 vlan, u8 *fid, in ksz8_from_vlan()
574 static void ksz8_to_vlan(struct ksz_device *dev, u8 fid, u8 member, u8 valid, in ksz8_to_vlan()
589 static void ksz8_r_vlan_entries(struct ksz_device *dev, u16 addr) in ksz8_r_vlan_entries()
605 static void ksz8_r_vlan_table(struct ksz_device *dev, u16 vid, u16 *vlan) in ksz8_r_vlan_table()
619 static void ksz8_w_vlan_table(struct ksz_device *dev, u16 vid, u16 vlan) in ksz8_w_vlan_table()
635 int ksz8_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val) in ksz8_r_phy()
789 int ksz8_w_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 val) in ksz8_w_phy()
936 void ksz8_cfg_port_member(struct ksz_device *dev, int port, u8 member) in ksz8_cfg_port_member()
946 void ksz8_flush_dyn_mac_table(struct ksz_device *dev, int port) in ksz8_flush_dyn_mac_table()
975 int ksz8_fdb_dump(struct ksz_device *dev, int port, in ksz8_fdb_dump()
1002 static int ksz8_add_sta_mac(struct ksz_device *dev, int port, in ksz8_add_sta_mac()
1049 static int ksz8_del_sta_mac(struct ksz_device *dev, int port, in ksz8_del_sta_mac()
1080 int ksz8_mdb_add(struct ksz_device *dev, int port, in ksz8_mdb_add()
1086 int ksz8_mdb_del(struct ksz_device *dev, int port, in ksz8_mdb_del()
1092 int ksz8_fdb_add(struct ksz_device *dev, int port, const unsigned char *addr, in ksz8_fdb_add()
1098 int ksz8_fdb_del(struct ksz_device *dev, int port, const unsigned char *addr, in ksz8_fdb_del()
1104 int ksz8_port_vlan_filtering(struct ksz_device *dev, int port, bool flag, in ksz8_port_vlan_filtering()
1121 static void ksz8_port_enable_pvid(struct ksz_device *dev, int port, bool state) in ksz8_port_enable_pvid()
1131 int ksz8_port_vlan_add(struct ksz_device *dev, int port, in ksz8_port_vlan_add()
1203 int ksz8_port_vlan_del(struct ksz_device *dev, int port, in ksz8_port_vlan_del()
1235 int ksz8_port_mirror_add(struct ksz_device *dev, int port, in ksz8_port_mirror_add()
1257 void ksz8_port_mirror_del(struct ksz_device *dev, int port, in ksz8_port_mirror_del()
1277 static void ksz8795_cpu_interface_select(struct ksz_device *dev, int port) in ksz8795_cpu_interface_select()
1290 void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port) in ksz8_port_setup()
1328 struct ksz_device *dev = ds->priv; in ksz8_config_cpu_port()
1364 struct ksz_device *dev = ds->priv; in ksz8_handle_global_errata()
1379 int ksz8_enable_stp_addr(struct ksz_device *dev) in ksz8_enable_stp_addr()
1395 struct ksz_device *dev = ds->priv; in ksz8_setup()
1440 void ksz8_get_caps(struct ksz_device *dev, int port, in ksz8_get_caps()
1463 int ksz8_switch_init(struct ksz_device *dev) in ksz8_switch_init()
1472 void ksz8_switch_exit(struct ksz_device *dev) in ksz8_switch_exit()