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()
123 int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg, in mv88e6xxx_wait_bit()
130 struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) in mv88e6xxx_default_mdio_bus()
144 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_mask() local
152 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_unmask() local
158 static irqreturn_t mv88e6xxx_g1_irq_thread_work(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_thread_work()
202 struct mv88e6xxx_chip *chip = dev_id; in mv88e6xxx_g1_irq_thread_fn() local
209 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_lock() local
216 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_sync_unlock() local
248 struct mv88e6xxx_chip *chip = d->host_data; in mv88e6xxx_g1_irq_domain_map() local
263 static void mv88e6xxx_g1_irq_free_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free_common()
280 static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free()
293 static int mv88e6xxx_g1_irq_setup_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup_common()
343 static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup()
376 struct mv88e6xxx_chip *chip = container_of(work, in mv88e6xxx_irq_poll() local
385 static int mv88e6xxx_irq_poll_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_setup()
406 static void mv88e6xxx_irq_poll_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_free()
416 static int mv88e6xxx_port_config_interface(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_config_interface()
438 static int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_setup_mac()
473 static int mv88e6xxx_phy_is_internal(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_phy_is_internal()
480 static int mv88e6xxx_port_ppu_updates(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_ppu_updates()
512 static void mv88e6095_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6095_phylink_get_caps()
531 static void mv88e6185_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6185_phylink_get_caps()
569 static void mv88e6250_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6250_phylink_get_caps()
580 static int mv88e6352_get_port4_serdes_cmode(struct mv88e6xxx_chip *chip) in mv88e6352_get_port4_serdes_cmode()
610 static void mv88e6352_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6352_phylink_get_caps()
640 static void mv88e6341_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6341_phylink_get_caps()
662 static void mv88e6390_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390_phylink_get_caps()
684 static void mv88e6390x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390x_phylink_get_caps()
719 static void mv88e6393x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6393x_phylink_get_caps()
766 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_caps() local
785 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_select_pcs() local
798 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_prepare() local
821 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_config() local
843 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_finish() local
871 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_down() local
901 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_up() local
932 static int mv88e6xxx_stats_snapshot(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_stats_snapshot()
1002 static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, in _mv88e6xxx_get_ethtool_stat()
1043 static int mv88e6xxx_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_strings()
1061 static int mv88e6095_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6095_stats_get_strings()
1068 static int mv88e6250_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6250_stats_get_strings()
1074 static int mv88e6320_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6320_stats_get_strings()
1102 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_strings() local
1124 static int mv88e6xxx_stats_get_sset_count(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_sset_count()
1138 static int mv88e6095_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6095_stats_get_sset_count()
1144 static int mv88e6250_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6250_stats_get_sset_count()
1149 static int mv88e6320_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6320_stats_get_sset_count()
1157 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_sset_count() local
1186 static int mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_stats_get_stats()
1208 static int mv88e6095_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6095_stats_get_stats()
1216 static int mv88e6250_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6250_stats_get_stats()
1223 static int mv88e6320_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6320_stats_get_stats()
1232 static int mv88e6390_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6390_stats_get_stats()
1241 static void mv88e6xxx_atu_vtu_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_atu_vtu_get_stats()
1251 static void mv88e6xxx_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_get_stats()
1272 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_ethtool_stats() local
1289 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs_len() local
1302 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs() local
1342 static u16 mv88e6xxx_port_vlan(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_port_vlan()
1407 static int mv88e6xxx_port_vlan_map(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_vlan_map()
1420 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_stp_state_set() local
1431 static int mv88e6xxx_pri_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pri_setup()
1450 static int mv88e6xxx_devmap_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_devmap_setup()
1484 static int mv88e6xxx_trunk_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_trunk_setup()
1493 static int mv88e6xxx_rmu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rmu_setup()
1501 static int mv88e6xxx_pot_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pot_setup()
1509 static int mv88e6xxx_rsvd2cpu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rsvd2cpu_setup()
1517 static int mv88e6xxx_atu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_atu_setup()
1539 static int mv88e6xxx_irl_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irl_setup()
1559 static int mv88e6xxx_mac_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_mac_setup()
1572 static int mv88e6xxx_pvt_map(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_pvt_map()
1604 static int mv88e6xxx_pvt_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pvt_setup()
1630 static int mv88e6xxx_port_fast_age_fid(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_fast_age_fid()
1645 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fast_age() local
1657 static int mv88e6xxx_vtu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_vtu_setup()
1665 static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, in mv88e6xxx_vtu_get()
1684 int mv88e6xxx_vtu_walk(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1685 int (*cb)(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1715 static int mv88e6xxx_vtu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_loadpurge()
1724 static int mv88e6xxx_fid_map_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_fid_map_vlan()
1734 int mv88e6xxx_fid_map(struct mv88e6xxx_chip *chip, unsigned long *fid_bitmap) in mv88e6xxx_fid_map()
1744 static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_atu_new()
1761 static int mv88e6xxx_stu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_stu_loadpurge()
1770 static int mv88e6xxx_stu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stu_setup()
1788 static int mv88e6xxx_sid_get(struct mv88e6xxx_chip *chip, u8 *sid) in mv88e6xxx_sid_get()
1803 static int mv88e6xxx_mst_put(struct mv88e6xxx_chip *chip, u8 sid) in mv88e6xxx_mst_put()
1833 static int mv88e6xxx_mst_get(struct mv88e6xxx_chip *chip, struct net_device *br, in mv88e6xxx_mst_get()
1901 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mst_state_set() local
1946 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_check_hw_vlan() local
1983 static int mv88e6xxx_port_commit_pvid(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_commit_pvid()
2012 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_filtering() local
2040 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_prepare() local
2056 static int mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_load_purge()
2117 static int mv88e6xxx_policy_apply(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_apply()
2165 static int mv88e6xxx_policy_insert(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_insert()
2251 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_rxnfc() local
2298 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_rxnfc() local
2327 static int mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_add_broadcast()
2338 static int mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) in mv88e6xxx_broadcast_setup()
2371 mv88e6xxx_port_broadcast_sync_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_broadcast_sync_vlan()
2390 static int mv88e6xxx_port_broadcast_sync(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_broadcast_sync()
2412 static int mv88e6xxx_port_vlan_join(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_vlan_join()
2467 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_add() local
2525 static int mv88e6xxx_port_vlan_leave(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_vlan_leave()
2573 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_del() local
2614 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_fast_age() local
2636 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_vlan_msti_set() local
2682 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_add() local
2697 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_del() local
2707 static int mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_fid()
2748 static int mv88e6xxx_port_db_dump_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_vlan()
2758 static int mv88e6xxx_port_db_dump(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_dump()
2784 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_dump() local
2794 static int mv88e6xxx_bridge_map(struct mv88e6xxx_chip *chip, in mv88e6xxx_bridge_map()
2834 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_map_virtual_bridge_to_pvt() local
2844 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_join() local
2878 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_leave() local
2911 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_join() local
2929 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_leave() local
2941 static int mv88e6xxx_software_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_software_reset()
2949 static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_hardware_reset()
2974 static int mv88e6xxx_disable_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_disable_ports()
2993 static int mv88e6xxx_switch_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_switch_reset()
3006 static int mv88e6xxx_set_port_mode(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_set_port_mode()
3029 static int mv88e6xxx_set_port_mode_normal(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_normal()
3036 static int mv88e6xxx_set_port_mode_dsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_dsa()
3043 static int mv88e6xxx_set_port_mode_edsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_edsa()
3051 static int mv88e6xxx_setup_port_mode(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port_mode()
3069 static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_message_port()
3076 static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_egress_floods()
3094 static int mv88e6xxx_set_egress_port(struct mv88e6xxx_chip *chip, in mv88e6xxx_set_egress_port()
3115 static int mv88e6xxx_setup_upstream_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_upstream_port()
3153 static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port()
3380 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_max_mtu() local
3391 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_mtu() local
3421 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_ageing_time() local
3431 static int mv88e6xxx_stats_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stats_setup()
3446 static bool mv88e6390_setup_errata_applied(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata_applied()
3470 static int mv88e6390_setup_errata(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata()
3504 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read() local
3531 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read_c45() local
3548 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write() local
3565 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write_c45() local
3578 static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdio_register()
3648 static void mv88e6xxx_mdios_unregister(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_unregister()
3665 static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_register()
3702 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_teardown() local
3712 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup() local
3880 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_setup() local
3894 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_teardown() local
3904 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom_len() local
3912 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom() local
3933 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_eeprom() local
6192 static int mv88e6xxx_detect(struct mv88e6xxx_chip *chip) in mv88e6xxx_detect()
6221 static int mv88e6xxx_single_chip_detect(struct mv88e6xxx_chip *chip, in mv88e6xxx_single_chip_detect()
6249 struct mv88e6xxx_chip *chip; in mv88e6xxx_alloc_chip() local
6269 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_tag_protocol() local
6277 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_tag_protocol() local
6330 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_add() local
6345 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_del() local
6363 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_add() local
6401 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_del() local
6428 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_pre_bridge_flags() local
6450 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_flags() local
6514 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_can_offload() local
6554 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_map() local
6609 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_masks() local
6685 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_change() local
6699 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_join() local
6731 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_leave() local
6744 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_change() local
6758 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_join() local
6780 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_leave() local
6856 static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_register_switch()
6884 static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_unregister_switch()
6923 struct mv88e6xxx_chip *chip; in mv88e6xxx_probe() local
7070 struct mv88e6xxx_chip *chip; in mv88e6xxx_remove() local