Lines Matching refs:mv88e6xxx_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()
152 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_unmask()
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()
209 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_lock()
216 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_sync_unlock()
248 struct mv88e6xxx_chip *chip = d->host_data; in mv88e6xxx_g1_irq_domain_map()
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()
377 struct mv88e6xxx_chip, in mv88e6xxx_irq_poll()
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()
570 mv88e6250_setup_supported_interfaces(struct mv88e6xxx_chip *chip, int port, in mv88e6250_setup_supported_interfaces()
619 static void mv88e6250_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6250_phylink_get_caps()
628 static void mv88e6351_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6351_phylink_get_caps()
640 static int mv88e63xx_get_port_serdes_cmode(struct mv88e6xxx_chip *chip, int port) in mv88e63xx_get_port_serdes_cmode()
670 static void mv88e6352_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6352_phylink_get_caps()
700 static void mv88e632x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e632x_phylink_get_caps()
723 static void mv88e6341_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6341_phylink_get_caps()
745 static void mv88e6390_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390_phylink_get_caps()
767 static void mv88e6390x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390x_phylink_get_caps()
802 static void mv88e6393x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6393x_phylink_get_caps()
849 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_caps()
869 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_select_pcs()
883 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_prepare()
908 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_config()
932 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_finish()
962 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_link_down()
994 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_link_up()
1026 static int mv88e6xxx_stats_snapshot(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_stats_snapshot()
1114 static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, in _mv88e6xxx_get_ethtool_stat()
1155 static int mv88e6xxx_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_strings()
1173 static int mv88e6095_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6095_stats_get_strings()
1180 static int mv88e6250_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6250_stats_get_strings()
1186 static int mv88e6320_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6320_stats_get_strings()
1214 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_strings()
1236 static int mv88e6xxx_stats_get_sset_count(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_sset_count()
1250 static int mv88e6095_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6095_stats_get_sset_count()
1256 static int mv88e6250_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6250_stats_get_sset_count()
1261 static int mv88e6320_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6320_stats_get_sset_count()
1269 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_sset_count()
1298 static size_t mv88e6095_stats_get_stat(struct mv88e6xxx_chip *chip, int port, in mv88e6095_stats_get_stat()
1310 static size_t mv88e6250_stats_get_stat(struct mv88e6xxx_chip *chip, int port, in mv88e6250_stats_get_stat()
1322 static size_t mv88e6320_stats_get_stat(struct mv88e6xxx_chip *chip, int port, in mv88e6320_stats_get_stat()
1335 static size_t mv88e6390_stats_get_stat(struct mv88e6xxx_chip *chip, int port, in mv88e6390_stats_get_stat()
1348 static size_t mv88e6xxx_stats_get_stat(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_stats_get_stat()
1363 static size_t mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_stats_get_stats()
1376 static void mv88e6xxx_atu_vtu_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_atu_vtu_get_stats()
1386 static void mv88e6xxx_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_get_stats()
1406 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_ethtool_stats()
1419 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eth_mac_stats()
1467 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_rmon_stats()
1497 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs_len()
1510 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs()
1550 static u16 mv88e6xxx_port_vlan(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_port_vlan()
1615 static int mv88e6xxx_port_vlan_map(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_vlan_map()
1628 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_stp_state_set()
1639 static int mv88e6xxx_pri_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pri_setup()
1658 static int mv88e6xxx_devmap_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_devmap_setup()
1692 static int mv88e6xxx_trunk_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_trunk_setup()
1701 static int mv88e6xxx_rmu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rmu_setup()
1709 static int mv88e6xxx_pot_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pot_setup()
1717 static int mv88e6xxx_rsvd2cpu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rsvd2cpu_setup()
1725 static int mv88e6xxx_atu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_atu_setup()
1747 static int mv88e6xxx_irl_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irl_setup()
1767 static int mv88e6xxx_mac_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_mac_setup()
1780 static int mv88e6xxx_pvt_map(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_pvt_map()
1812 static int mv88e6xxx_pvt_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pvt_setup()
1838 static int mv88e6xxx_port_fast_age_fid(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_fast_age_fid()
1853 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fast_age()
1865 static int mv88e6xxx_vtu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_vtu_setup()
1873 static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, in mv88e6xxx_vtu_get()
1892 int mv88e6xxx_vtu_walk(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1893 int (*cb)(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1923 static int mv88e6xxx_vtu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_loadpurge()
1932 static int mv88e6xxx_fid_map_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_fid_map_vlan()
1942 int mv88e6xxx_fid_map(struct mv88e6xxx_chip *chip, unsigned long *fid_bitmap) in mv88e6xxx_fid_map()
1952 static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_atu_new()
1969 static int mv88e6xxx_stu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_stu_loadpurge()
1978 static int mv88e6xxx_stu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stu_setup()
1996 static int mv88e6xxx_sid_get(struct mv88e6xxx_chip *chip, u8 *sid) in mv88e6xxx_sid_get()
2011 static int mv88e6xxx_mst_put(struct mv88e6xxx_chip *chip, u8 sid) in mv88e6xxx_mst_put()
2041 static int mv88e6xxx_mst_get(struct mv88e6xxx_chip *chip, struct net_device *br, in mv88e6xxx_mst_get()
2109 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mst_state_set()
2154 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_check_hw_vlan()
2191 static int mv88e6xxx_port_commit_pvid(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_commit_pvid()
2220 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_filtering()
2248 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_prepare()
2264 static int mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_load_purge()
2325 static int mv88e6xxx_policy_apply(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_apply()
2373 static int mv88e6xxx_policy_insert(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_insert()
2459 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_rxnfc()
2506 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_rxnfc()
2535 static int mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_add_broadcast()
2546 static int mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) in mv88e6xxx_broadcast_setup()
2579 mv88e6xxx_port_broadcast_sync_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_broadcast_sync_vlan()
2598 static int mv88e6xxx_port_broadcast_sync(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_broadcast_sync()
2620 static int mv88e6xxx_port_vlan_join(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_vlan_join()
2675 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_add()
2733 static int mv88e6xxx_port_vlan_leave(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_vlan_leave()
2781 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_del()
2822 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_fast_age()
2844 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_vlan_msti_set()
2890 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_add()
2905 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_del()
2915 static int mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_fid()
2956 static int mv88e6xxx_port_db_dump_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_vlan()
2966 static int mv88e6xxx_port_db_dump(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_dump()
2992 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_dump()
3002 static int mv88e6xxx_bridge_map(struct mv88e6xxx_chip *chip, in mv88e6xxx_bridge_map()
3042 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_map_virtual_bridge_to_pvt()
3052 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_join()
3086 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_leave()
3119 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_join()
3137 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_leave()
3149 static int mv88e6xxx_software_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_software_reset()
3157 static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_hardware_reset()
3192 static int mv88e6xxx_disable_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_disable_ports()
3211 static int mv88e6xxx_switch_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_switch_reset()
3224 static int mv88e6xxx_set_port_mode(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_set_port_mode()
3247 static int mv88e6xxx_set_port_mode_normal(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_normal()
3254 static int mv88e6xxx_set_port_mode_dsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_dsa()
3261 static int mv88e6xxx_set_port_mode_edsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_edsa()
3269 static int mv88e6xxx_setup_port_mode(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port_mode()
3287 static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_message_port()
3294 static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_egress_floods()
3312 static int mv88e6xxx_set_egress_port(struct mv88e6xxx_chip *chip, in mv88e6xxx_set_egress_port()
3333 static int mv88e6xxx_setup_upstream_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_upstream_port()
3371 static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port()
3598 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_max_mtu()
3609 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_mtu()
3640 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_ageing_time()
3650 static int mv88e6xxx_stats_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stats_setup()
3665 static bool mv88e6390_setup_errata_applied(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata_applied()
3689 static int mv88e6390_setup_errata(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata()
3723 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read()
3750 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read_c45()
3767 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write()
3784 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write_c45()
3797 static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdio_register()
3870 static void mv88e6xxx_mdios_unregister(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_unregister()
3887 static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_register()
3924 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_teardown()
3934 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup()
4102 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_setup()
4117 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_teardown()
4128 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom_len()
4136 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom()
4157 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_eeprom()
6452 static int mv88e6xxx_detect(struct mv88e6xxx_chip *chip) in mv88e6xxx_detect()
6481 static int mv88e6xxx_single_chip_detect(struct mv88e6xxx_chip *chip, in mv88e6xxx_single_chip_detect()
6507 static struct mv88e6xxx_chip *mv88e6xxx_alloc_chip(struct device *dev) in mv88e6xxx_alloc_chip()
6509 struct mv88e6xxx_chip *chip; in mv88e6xxx_alloc_chip()
6529 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_tag_protocol()
6537 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_tag_protocol()
6590 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_add()
6605 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_del()
6623 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_add()
6661 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_del()
6688 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_pre_bridge_flags()
6710 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_flags()
6774 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_can_offload()
6814 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_map()
6869 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_masks()
6945 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_change()
6959 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_join()
6991 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_leave()
7004 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_change()
7018 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_join()
7040 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_leave()
7121 static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_register_switch()
7150 static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_unregister_switch()
7189 struct mv88e6xxx_chip *chip; in mv88e6xxx_probe()
7336 struct mv88e6xxx_chip *chip; in mv88e6xxx_remove()