Lines Matching refs:lan9303
264 static int lan9303_read_wait(struct lan9303 *chip, int offset, u32 mask) in lan9303_read_wait()
286 static int lan9303_virt_phy_reg_read(struct lan9303 *chip, int regnum) in lan9303_virt_phy_reg_read()
301 static int lan9303_virt_phy_reg_write(struct lan9303 *chip, int regnum, u16 val) in lan9303_virt_phy_reg_write()
309 static int lan9303_indirect_phy_wait_for_completion(struct lan9303 *chip) in lan9303_indirect_phy_wait_for_completion()
315 static int lan9303_indirect_phy_read(struct lan9303 *chip, int addr, int regnum) in lan9303_indirect_phy_read()
352 static int lan9303_indirect_phy_write(struct lan9303 *chip, int addr, in lan9303_indirect_phy_write()
387 static int lan9303_switch_wait_for_completion(struct lan9303 *chip) in lan9303_switch_wait_for_completion()
393 static int lan9303_write_switch_reg(struct lan9303 *chip, u16 regnum, u32 val) in lan9303_write_switch_reg()
425 static int lan9303_read_switch_reg(struct lan9303 *chip, u16 regnum, u32 *val) in lan9303_read_switch_reg()
461 static int lan9303_write_switch_reg_mask(struct lan9303 *chip, u16 regnum, in lan9303_write_switch_reg_mask()
476 static int lan9303_write_switch_port(struct lan9303 *chip, int port, in lan9303_write_switch_port()
483 static int lan9303_read_switch_port(struct lan9303 *chip, int port, in lan9303_read_switch_port()
490 static int lan9303_detect_phy_setup(struct lan9303 *chip) in lan9303_detect_phy_setup()
524 lan9303_alr_cache_find_free(struct lan9303 *chip) in lan9303_alr_cache_find_free()
538 lan9303_alr_cache_find_mac(struct lan9303 *chip, const u8 *mac_addr) in lan9303_alr_cache_find_mac()
553 static int lan9303_csr_reg_wait(struct lan9303 *chip, int regno, u32 mask) in lan9303_csr_reg_wait()
569 static int lan9303_alr_make_entry_raw(struct lan9303 *chip, u32 dat0, u32 dat1) in lan9303_alr_make_entry_raw()
581 typedef int alr_loop_cb_t(struct lan9303 *chip, u32 dat0, u32 dat1,
584 static int lan9303_alr_loop(struct lan9303 *chip, alr_loop_cb_t *cb, void *ctx) in lan9303_alr_loop()
634 static int alr_loop_cb_del_port_learned(struct lan9303 *chip, u32 dat0, in alr_loop_cb_del_port_learned()
656 static int alr_loop_cb_fdb_port_dump(struct lan9303 *chip, u32 dat0, in alr_loop_cb_fdb_port_dump()
672 static void lan9303_alr_set_entry(struct lan9303 *chip, const u8 *mac, in lan9303_alr_set_entry()
702 static int lan9303_alr_add_port(struct lan9303 *chip, const u8 *mac, int port, in lan9303_alr_add_port()
726 static int lan9303_alr_del_port(struct lan9303 *chip, const u8 *mac, int port) in lan9303_alr_del_port()
745 static int lan9303_disable_processing_port(struct lan9303 *chip, in lan9303_disable_processing_port()
762 static int lan9303_enable_processing_port(struct lan9303 *chip, in lan9303_enable_processing_port()
782 static int lan9303_setup_tagging(struct lan9303 *chip) in lan9303_setup_tagging()
806 static int lan9303_separate_ports(struct lan9303 *chip) in lan9303_separate_ports()
827 static void lan9303_bridge_ports(struct lan9303 *chip) in lan9303_bridge_ports()
838 static void lan9303_handle_reset(struct lan9303 *chip) in lan9303_handle_reset()
853 static int lan9303_disable_processing(struct lan9303 *chip) in lan9303_disable_processing()
867 static int lan9303_check_device(struct lan9303 *chip) in lan9303_check_device()
946 struct lan9303 *chip = ds->priv; in lan9303_setup()
1053 struct lan9303 *chip = ds->priv; in lan9303_get_ethtool_stats()
1082 struct lan9303 *chip = ds->priv; in lan9303_phy_read()
1096 struct lan9303 *chip = ds->priv; in lan9303_phy_write()
1111 struct lan9303 *chip = ds->priv; in lan9303_port_enable()
1124 struct lan9303 *chip = ds->priv; in lan9303_port_disable()
1140 struct lan9303 *chip = ds->priv; in lan9303_port_bridge_join()
1154 struct lan9303 *chip = ds->priv; in lan9303_port_bridge_leave()
1167 struct lan9303 *chip = ds->priv; in lan9303_port_stp_state_set()
1205 struct lan9303 *chip = ds->priv; in lan9303_port_fast_age()
1218 struct lan9303 *chip = ds->priv; in lan9303_port_fdb_add()
1229 struct lan9303 *chip = ds->priv; in lan9303_port_fdb_del()
1240 struct lan9303 *chip = ds->priv; in lan9303_port_fdb_dump()
1254 struct lan9303 *chip = ds->priv; in lan9303_port_mdb_prepare()
1272 struct lan9303 *chip = ds->priv; in lan9303_port_mdb_add()
1288 struct lan9303 *chip = ds->priv; in lan9303_port_mdb_del()
1302 struct lan9303 *chip = ds->priv; in lan9303_phylink_get_caps()
1332 struct lan9303 *chip = ds->priv; in lan9303_phylink_mac_link_up()
1385 static int lan9303_register_switch(struct lan9303 *chip) in lan9303_register_switch()
1400 static int lan9303_probe_reset_gpio(struct lan9303 *chip, in lan9303_probe_reset_gpio()
1429 int lan9303_probe(struct lan9303 *chip, struct device_node *np) in lan9303_probe()
1470 int lan9303_remove(struct lan9303 *chip) in lan9303_remove()
1487 void lan9303_shutdown(struct lan9303 *chip) in lan9303_shutdown()