• Home
  • Raw
  • Download

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 void mv88e6351_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6351_phylink_get_caps()
592 static int mv88e6352_get_port4_serdes_cmode(struct mv88e6xxx_chip *chip) in mv88e6352_get_port4_serdes_cmode()
622 static void mv88e6352_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6352_phylink_get_caps()
652 static void mv88e6341_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6341_phylink_get_caps()
674 static void mv88e6390_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390_phylink_get_caps()
696 static void mv88e6390x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6390x_phylink_get_caps()
731 static void mv88e6393x_phylink_get_caps(struct mv88e6xxx_chip *chip, int port, in mv88e6393x_phylink_get_caps()
778 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_caps() local
797 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_select_pcs() local
810 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_prepare() local
833 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_config() local
855 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_finish() local
883 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_down() local
913 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_up() local
944 static int mv88e6xxx_stats_snapshot(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_stats_snapshot()
1014 static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, in _mv88e6xxx_get_ethtool_stat()
1055 static int mv88e6xxx_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_strings()
1073 static int mv88e6095_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6095_stats_get_strings()
1080 static int mv88e6250_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6250_stats_get_strings()
1086 static int mv88e6320_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6320_stats_get_strings()
1114 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_strings() local
1136 static int mv88e6xxx_stats_get_sset_count(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_sset_count()
1150 static int mv88e6095_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6095_stats_get_sset_count()
1156 static int mv88e6250_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6250_stats_get_sset_count()
1161 static int mv88e6320_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6320_stats_get_sset_count()
1169 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_sset_count() local
1198 static int mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_stats_get_stats()
1220 static int mv88e6095_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6095_stats_get_stats()
1228 static int mv88e6250_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6250_stats_get_stats()
1235 static int mv88e6320_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6320_stats_get_stats()
1244 static int mv88e6390_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6390_stats_get_stats()
1253 static void mv88e6xxx_atu_vtu_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_atu_vtu_get_stats()
1263 static void mv88e6xxx_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_get_stats()
1284 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_ethtool_stats() local
1301 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs_len() local
1314 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs() local
1354 static u16 mv88e6xxx_port_vlan(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_port_vlan()
1419 static int mv88e6xxx_port_vlan_map(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_vlan_map()
1432 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_stp_state_set() local
1443 static int mv88e6xxx_pri_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pri_setup()
1462 static int mv88e6xxx_devmap_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_devmap_setup()
1496 static int mv88e6xxx_trunk_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_trunk_setup()
1505 static int mv88e6xxx_rmu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rmu_setup()
1513 static int mv88e6xxx_pot_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pot_setup()
1521 static int mv88e6xxx_rsvd2cpu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rsvd2cpu_setup()
1529 static int mv88e6xxx_atu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_atu_setup()
1551 static int mv88e6xxx_irl_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irl_setup()
1571 static int mv88e6xxx_mac_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_mac_setup()
1584 static int mv88e6xxx_pvt_map(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_pvt_map()
1616 static int mv88e6xxx_pvt_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pvt_setup()
1642 static int mv88e6xxx_port_fast_age_fid(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_fast_age_fid()
1657 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fast_age() local
1669 static int mv88e6xxx_vtu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_vtu_setup()
1677 static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, in mv88e6xxx_vtu_get()
1696 int mv88e6xxx_vtu_walk(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1697 int (*cb)(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1727 static int mv88e6xxx_vtu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_loadpurge()
1736 static int mv88e6xxx_fid_map_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_fid_map_vlan()
1746 int mv88e6xxx_fid_map(struct mv88e6xxx_chip *chip, unsigned long *fid_bitmap) in mv88e6xxx_fid_map()
1756 static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_atu_new()
1773 static int mv88e6xxx_stu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_stu_loadpurge()
1782 static int mv88e6xxx_stu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stu_setup()
1800 static int mv88e6xxx_sid_get(struct mv88e6xxx_chip *chip, u8 *sid) in mv88e6xxx_sid_get()
1815 static int mv88e6xxx_mst_put(struct mv88e6xxx_chip *chip, u8 sid) in mv88e6xxx_mst_put()
1845 static int mv88e6xxx_mst_get(struct mv88e6xxx_chip *chip, struct net_device *br, in mv88e6xxx_mst_get()
1913 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mst_state_set() local
1958 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_check_hw_vlan() local
1995 static int mv88e6xxx_port_commit_pvid(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_commit_pvid()
2024 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_filtering() local
2052 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_prepare() local
2068 static int mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_load_purge()
2129 static int mv88e6xxx_policy_apply(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_apply()
2177 static int mv88e6xxx_policy_insert(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_insert()
2263 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_rxnfc() local
2310 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_rxnfc() local
2339 static int mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_add_broadcast()
2350 static int mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) in mv88e6xxx_broadcast_setup()
2383 mv88e6xxx_port_broadcast_sync_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_broadcast_sync_vlan()
2402 static int mv88e6xxx_port_broadcast_sync(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_broadcast_sync()
2424 static int mv88e6xxx_port_vlan_join(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_vlan_join()
2479 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_add() local
2537 static int mv88e6xxx_port_vlan_leave(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_vlan_leave()
2585 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_del() local
2626 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_fast_age() local
2648 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_vlan_msti_set() local
2694 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_add() local
2709 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_del() local
2719 static int mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_fid()
2760 static int mv88e6xxx_port_db_dump_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_vlan()
2770 static int mv88e6xxx_port_db_dump(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_dump()
2796 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_dump() local
2806 static int mv88e6xxx_bridge_map(struct mv88e6xxx_chip *chip, in mv88e6xxx_bridge_map()
2846 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_map_virtual_bridge_to_pvt() local
2856 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_join() local
2890 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_leave() local
2923 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_join() local
2941 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_leave() local
2953 static int mv88e6xxx_software_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_software_reset()
2961 static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_hardware_reset()
2986 static int mv88e6xxx_disable_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_disable_ports()
3005 static int mv88e6xxx_switch_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_switch_reset()
3018 static int mv88e6xxx_set_port_mode(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_set_port_mode()
3041 static int mv88e6xxx_set_port_mode_normal(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_normal()
3048 static int mv88e6xxx_set_port_mode_dsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_dsa()
3055 static int mv88e6xxx_set_port_mode_edsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_edsa()
3063 static int mv88e6xxx_setup_port_mode(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port_mode()
3081 static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_message_port()
3088 static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_egress_floods()
3106 static int mv88e6xxx_set_egress_port(struct mv88e6xxx_chip *chip, in mv88e6xxx_set_egress_port()
3127 static int mv88e6xxx_setup_upstream_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_upstream_port()
3165 static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port()
3392 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_max_mtu() local
3403 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_mtu() local
3433 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_ageing_time() local
3443 static int mv88e6xxx_stats_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stats_setup()
3458 static bool mv88e6390_setup_errata_applied(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata_applied()
3482 static int mv88e6390_setup_errata(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata()
3516 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read() local
3543 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read_c45() local
3560 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write() local
3577 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write_c45() local
3590 static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdio_register()
3660 static void mv88e6xxx_mdios_unregister(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_unregister()
3677 static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_register()
3714 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_teardown() local
3724 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup() local
3892 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_setup() local
3907 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_teardown() local
3918 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom_len() local
3926 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom() local
3947 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_eeprom() local
6206 static int mv88e6xxx_detect(struct mv88e6xxx_chip *chip) in mv88e6xxx_detect()
6235 static int mv88e6xxx_single_chip_detect(struct mv88e6xxx_chip *chip, in mv88e6xxx_single_chip_detect()
6263 struct mv88e6xxx_chip *chip; in mv88e6xxx_alloc_chip() local
6283 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_tag_protocol() local
6291 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_tag_protocol() local
6344 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_add() local
6359 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_del() local
6377 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_add() local
6415 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_del() local
6442 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_pre_bridge_flags() local
6464 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_flags() local
6528 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_can_offload() local
6568 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_map() local
6623 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_masks() local
6699 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_change() local
6713 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_join() local
6745 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_leave() local
6758 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_change() local
6772 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_join() local
6794 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_leave() local
6870 static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_register_switch()
6898 static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_unregister_switch()
6937 struct mv88e6xxx_chip *chip; in mv88e6xxx_probe() local
7084 struct mv88e6xxx_chip *chip; in mv88e6xxx_remove() local