Lines Matching refs:lan9303

243 static int lan9303_read_wait(struct lan9303 *chip, int offset, u32 mask)  in lan9303_read_wait()
265 static int lan9303_virt_phy_reg_read(struct lan9303 *chip, int regnum) in lan9303_virt_phy_reg_read()
280 static int lan9303_virt_phy_reg_write(struct lan9303 *chip, int regnum, u16 val) in lan9303_virt_phy_reg_write()
288 static int lan9303_indirect_phy_wait_for_completion(struct lan9303 *chip) in lan9303_indirect_phy_wait_for_completion()
294 static int lan9303_indirect_phy_read(struct lan9303 *chip, int addr, int regnum) in lan9303_indirect_phy_read()
331 static int lan9303_indirect_phy_write(struct lan9303 *chip, int addr, in lan9303_indirect_phy_write()
366 static int lan9303_switch_wait_for_completion(struct lan9303 *chip) in lan9303_switch_wait_for_completion()
372 static int lan9303_write_switch_reg(struct lan9303 *chip, u16 regnum, u32 val) in lan9303_write_switch_reg()
404 static int lan9303_read_switch_reg(struct lan9303 *chip, u16 regnum, u32 *val) in lan9303_read_switch_reg()
440 static int lan9303_write_switch_reg_mask(struct lan9303 *chip, u16 regnum, in lan9303_write_switch_reg_mask()
455 static int lan9303_write_switch_port(struct lan9303 *chip, int port, in lan9303_write_switch_port()
462 static int lan9303_read_switch_port(struct lan9303 *chip, int port, in lan9303_read_switch_port()
469 static int lan9303_detect_phy_setup(struct lan9303 *chip) in lan9303_detect_phy_setup()
503 lan9303_alr_cache_find_free(struct lan9303 *chip) in lan9303_alr_cache_find_free()
517 lan9303_alr_cache_find_mac(struct lan9303 *chip, const u8 *mac_addr) in lan9303_alr_cache_find_mac()
532 static int lan9303_csr_reg_wait(struct lan9303 *chip, int regno, u32 mask) in lan9303_csr_reg_wait()
548 static int lan9303_alr_make_entry_raw(struct lan9303 *chip, u32 dat0, u32 dat1) in lan9303_alr_make_entry_raw()
560 typedef void alr_loop_cb_t(struct lan9303 *chip, u32 dat0, u32 dat1,
563 static void lan9303_alr_loop(struct lan9303 *chip, alr_loop_cb_t *cb, void *ctx) in lan9303_alr_loop()
609 static void alr_loop_cb_del_port_learned(struct lan9303 *chip, u32 dat0, in alr_loop_cb_del_port_learned()
629 static void alr_loop_cb_fdb_port_dump(struct lan9303 *chip, u32 dat0, in alr_loop_cb_fdb_port_dump()
645 static void lan9303_alr_set_entry(struct lan9303 *chip, const u8 *mac, in lan9303_alr_set_entry()
675 static int lan9303_alr_add_port(struct lan9303 *chip, const u8 *mac, int port, in lan9303_alr_add_port()
699 static int lan9303_alr_del_port(struct lan9303 *chip, const u8 *mac, int port) in lan9303_alr_del_port()
718 static int lan9303_disable_processing_port(struct lan9303 *chip, in lan9303_disable_processing_port()
735 static int lan9303_enable_processing_port(struct lan9303 *chip, in lan9303_enable_processing_port()
755 static int lan9303_setup_tagging(struct lan9303 *chip) in lan9303_setup_tagging()
779 static int lan9303_separate_ports(struct lan9303 *chip) in lan9303_separate_ports()
800 static void lan9303_bridge_ports(struct lan9303 *chip) in lan9303_bridge_ports()
811 static void lan9303_handle_reset(struct lan9303 *chip) in lan9303_handle_reset()
824 static int lan9303_disable_processing(struct lan9303 *chip) in lan9303_disable_processing()
838 static int lan9303_check_device(struct lan9303 *chip) in lan9303_check_device()
894 struct lan9303 *chip = ds->priv; in lan9303_setup()
989 struct lan9303 *chip = ds->priv; in lan9303_get_ethtool_stats()
1016 struct lan9303 *chip = ds->priv; in lan9303_phy_read()
1030 struct lan9303 *chip = ds->priv; in lan9303_phy_write()
1044 struct lan9303 *chip = ds->priv; in lan9303_adjust_link()
1080 struct lan9303 *chip = ds->priv; in lan9303_port_enable()
1090 struct lan9303 *chip = ds->priv; in lan9303_port_disable()
1102 struct lan9303 *chip = ds->priv; in lan9303_port_bridge_join()
1116 struct lan9303 *chip = ds->priv; in lan9303_port_bridge_leave()
1129 struct lan9303 *chip = ds->priv; in lan9303_port_stp_state_set()
1167 struct lan9303 *chip = ds->priv; in lan9303_port_fast_age()
1179 struct lan9303 *chip = ds->priv; in lan9303_port_fdb_add()
1192 struct lan9303 *chip = ds->priv; in lan9303_port_fdb_del()
1205 struct lan9303 *chip = ds->priv; in lan9303_port_fdb_dump()
1221 struct lan9303 *chip = ds->priv; in lan9303_port_mdb_prepare()
1238 struct lan9303 *chip = ds->priv; in lan9303_port_mdb_add()
1248 struct lan9303 *chip = ds->priv; in lan9303_port_mdb_del()
1282 static int lan9303_register_switch(struct lan9303 *chip) in lan9303_register_switch()
1300 static int lan9303_probe_reset_gpio(struct lan9303 *chip, in lan9303_probe_reset_gpio()
1329 int lan9303_probe(struct lan9303 *chip, struct device_node *np) in lan9303_probe()
1356 int lan9303_remove(struct lan9303 *chip) in lan9303_remove()