Lines Matching defs:chip
47 static void assert_reg_lock(struct mv88e6xxx_chip *chip) in assert_reg_lock()
67 static int mv88e6xxx_smi_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_read()
76 static int mv88e6xxx_smi_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_write()
85 static int mv88e6xxx_smi_single_chip_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_single_chip_read()
99 static int mv88e6xxx_smi_single_chip_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_single_chip_write()
116 static int mv88e6xxx_smi_multi_chip_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_smi_multi_chip_wait()
133 static int mv88e6xxx_smi_multi_chip_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_multi_chip_read()
164 static int mv88e6xxx_smi_multi_chip_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_multi_chip_write()
198 int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val) in mv88e6xxx_read()
214 int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val) in mv88e6xxx_write()
230 struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) in mv88e6xxx_default_mdio_bus()
244 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_mask() local
252 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_unmask() local
258 static irqreturn_t mv88e6xxx_g1_irq_thread_work(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_thread_work()
286 struct mv88e6xxx_chip *chip = dev_id; in mv88e6xxx_g1_irq_thread_fn() local
293 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_lock() local
300 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_sync_unlock() local
332 struct mv88e6xxx_chip *chip = d->host_data; in mv88e6xxx_g1_irq_domain_map() local
347 static void mv88e6xxx_g1_irq_free_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free_common()
364 static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free()
377 static int mv88e6xxx_g1_irq_setup_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup_common()
427 static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup()
447 struct mv88e6xxx_chip *chip = container_of(work, in mv88e6xxx_irq_poll() local
456 static int mv88e6xxx_irq_poll_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_setup()
477 static void mv88e6xxx_irq_poll_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_free()
487 int mv88e6xxx_wait(struct mv88e6xxx_chip *chip, int addr, int reg, u16 mask) in mv88e6xxx_wait()
510 int mv88e6xxx_update(struct mv88e6xxx_chip *chip, int addr, int reg, u16 update) in mv88e6xxx_update()
526 static int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_setup_mac()
585 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_adjust_link() local
601 static void mv88e6065_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6065_phylink_validate()
614 static void mv88e6185_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6185_phylink_validate()
627 static void mv88e6352_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6352_phylink_validate()
638 static void mv88e6390_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6390_phylink_validate()
652 static void mv88e6390x_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6390x_phylink_validate()
669 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_validate() local
692 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_link_state() local
709 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_config() local
737 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_force() local
764 static int mv88e6xxx_stats_snapshot(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_stats_snapshot()
834 static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, in _mv88e6xxx_get_ethtool_stat()
875 static int mv88e6xxx_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_strings()
893 static int mv88e6095_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6095_stats_get_strings()
900 static int mv88e6320_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6320_stats_get_strings()
928 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_strings() local
950 static int mv88e6xxx_stats_get_sset_count(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_sset_count()
964 static int mv88e6095_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6095_stats_get_sset_count()
970 static int mv88e6320_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6320_stats_get_sset_count()
978 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_sset_count() local
1007 static int mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_stats_get_stats()
1029 static int mv88e6095_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6095_stats_get_stats()
1037 static int mv88e6320_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6320_stats_get_stats()
1046 static int mv88e6390_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6390_stats_get_stats()
1055 static void mv88e6xxx_atu_vtu_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_atu_vtu_get_stats()
1065 static void mv88e6xxx_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_get_stats()
1086 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_ethtool_stats() local
1109 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs() local
1145 static u16 mv88e6xxx_port_vlan(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_port_vlan()
1178 static int mv88e6xxx_port_vlan_map(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_vlan_map()
1191 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_stp_state_set() local
1202 static int mv88e6xxx_pri_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pri_setup()
1221 static int mv88e6xxx_devmap_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_devmap_setup()
1255 static int mv88e6xxx_trunk_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_trunk_setup()
1264 static int mv88e6xxx_rmu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rmu_setup()
1272 static int mv88e6xxx_pot_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pot_setup()
1280 static int mv88e6xxx_rsvd2cpu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rsvd2cpu_setup()
1288 static int mv88e6xxx_atu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_atu_setup()
1303 static int mv88e6xxx_irl_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irl_setup()
1323 static int mv88e6xxx_mac_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_mac_setup()
1336 static int mv88e6xxx_pvt_map(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_pvt_map()
1350 static int mv88e6xxx_pvt_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pvt_setup()
1378 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fast_age() local
1389 static int mv88e6xxx_vtu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_vtu_setup()
1397 static int mv88e6xxx_vtu_getnext(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_getnext()
1406 static int mv88e6xxx_vtu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_loadpurge()
1415 static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_atu_new()
1457 static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, in mv88e6xxx_vtu_get()
1498 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_check_hw_vlan() local
1559 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_filtering() local
1578 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_prepare() local
1598 static int mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_load_purge()
1642 static int mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_add_broadcast()
1651 static int mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) in mv88e6xxx_broadcast_setup()
1665 static int _mv88e6xxx_port_vlan_add(struct mv88e6xxx_chip *chip, int port, in _mv88e6xxx_port_vlan_add()
1687 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_add() local
1717 static int _mv88e6xxx_port_vlan_del(struct mv88e6xxx_chip *chip, in _mv88e6xxx_port_vlan_del()
1753 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_del() local
1787 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_add() local
1801 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_del() local
1812 static int mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_fid()
1849 static int mv88e6xxx_port_db_dump(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_dump()
1893 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_dump() local
1898 static int mv88e6xxx_bridge_map(struct mv88e6xxx_chip *chip, in mv88e6xxx_bridge_map()
1939 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_join() local
1952 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_leave() local
1964 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_join() local
1980 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_leave() local
1991 static int mv88e6xxx_software_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_software_reset()
1999 static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_hardware_reset()
2012 static int mv88e6xxx_disable_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_disable_ports()
2031 static int mv88e6xxx_switch_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_switch_reset()
2044 static int mv88e6xxx_set_port_mode(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_set_port_mode()
2067 static int mv88e6xxx_set_port_mode_normal(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_normal()
2074 static int mv88e6xxx_set_port_mode_dsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_dsa()
2081 static int mv88e6xxx_set_port_mode_edsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_edsa()
2089 static int mv88e6xxx_setup_port_mode(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port_mode()
2107 static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_message_port()
2114 static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_egress_floods()
2128 static int mv88e6xxx_serdes_power(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_power()
2137 static int mv88e6xxx_setup_upstream_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_upstream_port()
2170 static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port()
2336 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_enable() local
2354 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_disable() local
2370 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_ageing_time() local
2380 static int mv88e6xxx_stats_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stats_setup()
2396 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup() local
2503 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read() local
2528 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write() local
2541 static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdio_register()
2608 static void mv88e6xxx_mdios_unregister(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_unregister()
2624 static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdios_register()
2660 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom_len() local
2668 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom() local
2689 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_eeprom() local
4370 static int mv88e6xxx_detect(struct mv88e6xxx_chip *chip) in mv88e6xxx_detect()
4405 struct mv88e6xxx_chip *chip; in mv88e6xxx_alloc_chip() local
4419 static int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_init()
4438 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_tag_protocol() local
4448 struct mv88e6xxx_chip *chip; in mv88e6xxx_drv_probe() local
4506 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_add() local
4519 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_del() local
4582 static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_register_switch()
4602 static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_unregister_switch()
4626 struct mv88e6xxx_chip *chip; in mv88e6xxx_probe() local
4761 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_remove() local