Lines Matching defs:chip

46 static void assert_reg_lock(struct mv88e6xxx_chip *chip)  in assert_reg_lock()
54 int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val) in mv88e6xxx_read()
70 int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val) in mv88e6xxx_write()
86 int mv88e6xxx_wait_mask(struct mv88e6xxx_chip *chip, int addr, int reg, in mv88e6xxx_wait_mask()
116 int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg, in mv88e6xxx_wait_bit()
123 struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) in mv88e6xxx_default_mdio_bus()
137 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_mask() local
145 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_unmask() local
151 static irqreturn_t mv88e6xxx_g1_irq_thread_work(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_thread_work()
195 struct mv88e6xxx_chip *chip = dev_id; in mv88e6xxx_g1_irq_thread_fn() local
202 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_lock() local
209 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_sync_unlock() local
241 struct mv88e6xxx_chip *chip = d->host_data; in mv88e6xxx_g1_irq_domain_map() local
256 static void mv88e6xxx_g1_irq_free_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free_common()
273 static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free()
286 static int mv88e6xxx_g1_irq_setup_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup_common()
336 static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup()
369 struct mv88e6xxx_chip *chip = container_of(work, in mv88e6xxx_irq_poll() local
378 static int mv88e6xxx_irq_poll_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_setup()
399 static void mv88e6xxx_irq_poll_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_free()
409 static int mv88e6xxx_port_config_interface(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_config_interface()
431 static int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_setup_mac()
468 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_phy_is_internal() local
473 static int mv88e6xxx_port_ppu_updates(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_ppu_updates()
498 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_serdes_pcs_get_state() local
514 static int mv88e6xxx_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_pcs_config()
534 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_serdes_pcs_an_restart() local
553 static int mv88e6xxx_serdes_pcs_link_up(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_pcs_link_up()
580 static void mv88e6095_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6095_phylink_get_caps()
599 static void mv88e6185_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6185_phylink_get_caps()
637 static void mv88e6250_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6250_phylink_get_caps()
648 static int mv88e6352_get_port4_serdes_cmode(struct mv88e6xxx_chip *chip) in mv88e6352_get_port4_serdes_cmode()
678 static void mv88e6352_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6352_phylink_get_caps()
711 static void mv88e6341_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6341_phylink_get_caps()
733 static void mv88e6390_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390_phylink_get_caps()
755 static void mv88e6390x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390x_phylink_get_caps()
790 static void mv88e6393x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6393x_phylink_get_caps()
832 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_caps() local
849 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_config() local
908 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_down() local
938 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_up() local
980 static int mv88e6xxx_stats_snapshot(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_stats_snapshot()
1050 static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, in _mv88e6xxx_get_ethtool_stat()
1091 static int mv88e6xxx_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_strings()
1109 static int mv88e6095_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6095_stats_get_strings()
1116 static int mv88e6250_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6250_stats_get_strings()
1122 static int mv88e6320_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6320_stats_get_strings()
1150 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_strings() local
1172 static int mv88e6xxx_stats_get_sset_count(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_sset_count()
1186 static int mv88e6095_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6095_stats_get_sset_count()
1192 static int mv88e6250_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6250_stats_get_sset_count()
1197 static int mv88e6320_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6320_stats_get_sset_count()
1205 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_sset_count() local
1234 static int mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_stats_get_stats()
1256 static int mv88e6095_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6095_stats_get_stats()
1264 static int mv88e6250_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6250_stats_get_stats()
1271 static int mv88e6320_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6320_stats_get_stats()
1280 static int mv88e6390_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6390_stats_get_stats()
1289 static void mv88e6xxx_atu_vtu_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_atu_vtu_get_stats()
1299 static void mv88e6xxx_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_get_stats()
1320 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_ethtool_stats() local
1337 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs_len() local
1350 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs() local
1390 static u16 mv88e6xxx_port_vlan(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_port_vlan()
1455 static int mv88e6xxx_port_vlan_map(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_vlan_map()
1468 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_stp_state_set() local
1479 static int mv88e6xxx_pri_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pri_setup()
1498 static int mv88e6xxx_devmap_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_devmap_setup()
1532 static int mv88e6xxx_trunk_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_trunk_setup()
1541 static int mv88e6xxx_rmu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rmu_setup()
1549 static int mv88e6xxx_pot_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pot_setup()
1557 static int mv88e6xxx_rsvd2cpu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rsvd2cpu_setup()
1565 static int mv88e6xxx_atu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_atu_setup()
1587 static int mv88e6xxx_irl_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irl_setup()
1607 static int mv88e6xxx_mac_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_mac_setup()
1620 static int mv88e6xxx_pvt_map(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_pvt_map()
1652 static int mv88e6xxx_pvt_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pvt_setup()
1678 static int mv88e6xxx_port_fast_age_fid(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_fast_age_fid()
1693 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fast_age() local
1705 static int mv88e6xxx_vtu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_vtu_setup()
1713 static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, in mv88e6xxx_vtu_get()
1732 static int mv88e6xxx_vtu_walk(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1733 int (*cb)(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1763 static int mv88e6xxx_vtu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_loadpurge()
1772 static int mv88e6xxx_fid_map_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_fid_map_vlan()
1782 int mv88e6xxx_fid_map(struct mv88e6xxx_chip *chip, unsigned long *fid_bitmap) in mv88e6xxx_fid_map()
1792 static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_atu_new()
1809 static int mv88e6xxx_stu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_stu_loadpurge()
1818 static int mv88e6xxx_stu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stu_setup()
1836 static int mv88e6xxx_sid_get(struct mv88e6xxx_chip *chip, u8 *sid) in mv88e6xxx_sid_get()
1851 static int mv88e6xxx_mst_put(struct mv88e6xxx_chip *chip, u8 sid) in mv88e6xxx_mst_put()
1881 static int mv88e6xxx_mst_get(struct mv88e6xxx_chip *chip, struct net_device *br, in mv88e6xxx_mst_get()
1949 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mst_state_set() local
1994 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_check_hw_vlan() local
2031 static int mv88e6xxx_port_commit_pvid(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_commit_pvid()
2060 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_filtering() local
2088 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_prepare() local
2104 static int mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_load_purge()
2165 static int mv88e6xxx_policy_apply(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_apply()
2213 static int mv88e6xxx_policy_insert(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_insert()
2299 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_rxnfc() local
2346 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_rxnfc() local
2375 static int mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_add_broadcast()
2386 static int mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) in mv88e6xxx_broadcast_setup()
2419 mv88e6xxx_port_broadcast_sync_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_broadcast_sync_vlan()
2438 static int mv88e6xxx_port_broadcast_sync(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_broadcast_sync()
2460 static int mv88e6xxx_port_vlan_join(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_vlan_join()
2515 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_add() local
2573 static int mv88e6xxx_port_vlan_leave(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_vlan_leave()
2621 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_del() local
2662 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_fast_age() local
2684 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_vlan_msti_set() local
2730 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_add() local
2745 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_del() local
2755 static int mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_fid()
2796 static int mv88e6xxx_port_db_dump_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_vlan()
2806 static int mv88e6xxx_port_db_dump(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_dump()
2832 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_dump() local
2842 static int mv88e6xxx_bridge_map(struct mv88e6xxx_chip *chip, in mv88e6xxx_bridge_map()
2882 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_map_virtual_bridge_to_pvt() local
2892 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_join() local
2926 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_leave() local
2959 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_join() local
2977 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_leave() local
2989 static int mv88e6xxx_software_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_software_reset()
2997 static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_hardware_reset()
3012 static int mv88e6xxx_disable_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_disable_ports()
3031 static int mv88e6xxx_switch_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_switch_reset()
3044 static int mv88e6xxx_set_port_mode(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_set_port_mode()
3067 static int mv88e6xxx_set_port_mode_normal(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_normal()
3074 static int mv88e6xxx_set_port_mode_dsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_dsa()
3081 static int mv88e6xxx_set_port_mode_edsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_edsa()
3089 static int mv88e6xxx_setup_port_mode(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port_mode()
3107 static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_message_port()
3114 static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_egress_floods()
3135 struct mv88e6xxx_chip *chip = mvp->chip; in mv88e6xxx_serdes_irq_thread_fn() local
3149 static int mv88e6xxx_serdes_irq_request(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_irq_request()
3178 static int mv88e6xxx_serdes_irq_free(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_irq_free()
3201 static int mv88e6xxx_serdes_power(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_power()
3228 static int mv88e6xxx_set_egress_port(struct mv88e6xxx_chip *chip, in mv88e6xxx_set_egress_port()
3249 static int mv88e6xxx_setup_upstream_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_upstream_port()
3287 static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port()
3547 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_max_mtu() local
3558 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_mtu() local
3580 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_enable() local
3592 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_disable() local
3603 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_ageing_time() local
3613 static int mv88e6xxx_stats_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stats_setup()
3628 static bool mv88e6390_setup_errata_applied(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata_applied()
3652 static int mv88e6390_setup_errata(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata()
3685 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup() local
3865 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read() local
3891 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write() local
3904 static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdio_register()
3969 static void mv88e6xxx_mdios_unregister(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_unregister()
3986 static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdios_register()
4023 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom_len() local
4031 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom() local
4052 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_eeprom() local
6286 static int mv88e6xxx_detect(struct mv88e6xxx_chip *chip) in mv88e6xxx_detect()
6315 static int mv88e6xxx_single_chip_detect(struct mv88e6xxx_chip *chip, in mv88e6xxx_single_chip_detect()
6343 struct mv88e6xxx_chip *chip; in mv88e6xxx_alloc_chip() local
6363 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_tag_protocol() local
6371 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_tag_protocol() local
6424 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_add() local
6439 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_del() local
6457 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_add() local
6495 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_del() local
6522 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_pre_bridge_flags() local
6544 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_flags() local
6602 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_can_offload() local
6642 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_map() local
6697 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_masks() local
6773 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_change() local
6787 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_join() local
6819 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_leave() local
6832 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_change() local
6846 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_join() local
6868 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_leave() local
6945 static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_register_switch()
6973 static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_unregister_switch()
7012 struct mv88e6xxx_chip *chip; in mv88e6xxx_probe() local
7165 struct mv88e6xxx_chip *chip; in mv88e6xxx_remove() local