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()
109 int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg, in mv88e6xxx_wait_bit()
116 struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) in mv88e6xxx_default_mdio_bus()
130 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_mask() local
138 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_unmask() local
144 static irqreturn_t mv88e6xxx_g1_irq_thread_work(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_thread_work()
188 struct mv88e6xxx_chip *chip = dev_id; in mv88e6xxx_g1_irq_thread_fn() local
195 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_lock() local
202 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_bus_sync_unlock() local
234 struct mv88e6xxx_chip *chip = d->host_data; in mv88e6xxx_g1_irq_domain_map() local
249 static void mv88e6xxx_g1_irq_free_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free_common()
266 static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_free()
279 static int mv88e6xxx_g1_irq_setup_common(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup_common()
329 static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_setup()
362 struct mv88e6xxx_chip *chip = container_of(work, in mv88e6xxx_irq_poll() local
371 static int mv88e6xxx_irq_poll_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_setup()
392 static void mv88e6xxx_irq_poll_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_irq_poll_free()
402 static int mv88e6xxx_port_config_interface(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_config_interface()
424 static int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_setup_mac()
464 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_phy_is_internal() local
469 static int mv88e6xxx_port_ppu_updates(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_ppu_updates()
494 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_serdes_pcs_get_state() local
510 static int mv88e6xxx_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_pcs_config()
530 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_serdes_pcs_an_restart() local
549 static int mv88e6xxx_serdes_pcs_link_up(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_pcs_link_up()
566 static void mv88e6065_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6065_phylink_validate()
579 static void mv88e6185_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6185_phylink_validate()
592 static void mv88e6341_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6341_phylink_validate()
606 static void mv88e6352_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6352_phylink_validate()
617 static void mv88e6390_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6390_phylink_validate()
633 static void mv88e6390x_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6390x_phylink_validate()
645 static void mv88e6393x_phylink_validate(struct mv88e6xxx_chip *chip, int port, in mv88e6393x_phylink_validate()
676 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_validate() local
699 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_config() local
758 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_down() local
788 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_mac_link_up() local
830 static int mv88e6xxx_stats_snapshot(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_stats_snapshot()
900 static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, in _mv88e6xxx_get_ethtool_stat()
941 static int mv88e6xxx_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_strings()
959 static int mv88e6095_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6095_stats_get_strings()
966 static int mv88e6250_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6250_stats_get_strings()
972 static int mv88e6320_stats_get_strings(struct mv88e6xxx_chip *chip, in mv88e6320_stats_get_strings()
1000 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_strings() local
1022 static int mv88e6xxx_stats_get_sset_count(struct mv88e6xxx_chip *chip, in mv88e6xxx_stats_get_sset_count()
1036 static int mv88e6095_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6095_stats_get_sset_count()
1042 static int mv88e6250_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6250_stats_get_sset_count()
1047 static int mv88e6320_stats_get_sset_count(struct mv88e6xxx_chip *chip) in mv88e6320_stats_get_sset_count()
1055 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_sset_count() local
1084 static int mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_stats_get_stats()
1106 static int mv88e6095_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6095_stats_get_stats()
1114 static int mv88e6250_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6250_stats_get_stats()
1121 static int mv88e6320_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6320_stats_get_stats()
1130 static int mv88e6390_stats_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6390_stats_get_stats()
1139 static void mv88e6xxx_atu_vtu_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_atu_vtu_get_stats()
1149 static void mv88e6xxx_get_stats(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_get_stats()
1170 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_ethtool_stats() local
1187 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs_len() local
1200 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_regs() local
1240 static u16 mv88e6xxx_port_vlan(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_port_vlan()
1301 static int mv88e6xxx_port_vlan_map(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_vlan_map()
1314 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_stp_state_set() local
1325 static int mv88e6xxx_pri_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pri_setup()
1344 static int mv88e6xxx_devmap_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_devmap_setup()
1378 static int mv88e6xxx_trunk_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_trunk_setup()
1387 static int mv88e6xxx_rmu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rmu_setup()
1395 static int mv88e6xxx_pot_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pot_setup()
1403 static int mv88e6xxx_rsvd2cpu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_rsvd2cpu_setup()
1411 static int mv88e6xxx_atu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_atu_setup()
1433 static int mv88e6xxx_irl_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_irl_setup()
1453 static int mv88e6xxx_mac_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_mac_setup()
1466 static int mv88e6xxx_pvt_map(struct mv88e6xxx_chip *chip, int dev, int port) in mv88e6xxx_pvt_map()
1497 static int mv88e6xxx_pvt_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_pvt_setup()
1525 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fast_age() local
1543 static int mv88e6xxx_vtu_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_vtu_setup()
1551 static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, in mv88e6xxx_vtu_get()
1570 static int mv88e6xxx_vtu_walk(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1571 int (*cb)(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_walk()
1601 static int mv88e6xxx_vtu_loadpurge(struct mv88e6xxx_chip *chip, in mv88e6xxx_vtu_loadpurge()
1610 static int mv88e6xxx_fid_map_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_fid_map_vlan()
1620 int mv88e6xxx_fid_map(struct mv88e6xxx_chip *chip, unsigned long *fid_bitmap) in mv88e6xxx_fid_map()
1640 static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_atu_new()
1663 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_check_hw_vlan() local
1705 static int mv88e6xxx_port_commit_pvid(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_port_commit_pvid()
1733 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_filtering() local
1761 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_prepare() local
1777 static int mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_load_purge()
1838 static int mv88e6xxx_policy_apply(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_apply()
1886 static int mv88e6xxx_policy_insert(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_policy_insert()
1972 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_rxnfc() local
2019 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_rxnfc() local
2048 static int mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_add_broadcast()
2059 static int mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) in mv88e6xxx_broadcast_setup()
2092 mv88e6xxx_port_broadcast_sync_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_broadcast_sync_vlan()
2111 static int mv88e6xxx_port_broadcast_sync(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_broadcast_sync()
2133 static int mv88e6xxx_port_vlan_join(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_vlan_join()
2185 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_add() local
2243 static int mv88e6xxx_port_vlan_leave(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_vlan_leave()
2285 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_vlan_del() local
2320 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_add() local
2334 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_del() local
2344 static int mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_fid()
2385 static int mv88e6xxx_port_db_dump_vlan(struct mv88e6xxx_chip *chip, in mv88e6xxx_port_db_dump_vlan()
2395 static int mv88e6xxx_port_db_dump(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_db_dump()
2421 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_fdb_dump() local
2431 static int mv88e6xxx_bridge_map(struct mv88e6xxx_chip *chip, in mv88e6xxx_bridge_map()
2466 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_join() local
2488 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_leave() local
2510 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_join() local
2527 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_bridge_leave() local
2546 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_map_virtual_bridge_to_pvt() local
2576 static int mv88e6xxx_software_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_software_reset()
2584 static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_hardware_reset()
2599 static int mv88e6xxx_disable_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_disable_ports()
2618 static int mv88e6xxx_switch_reset(struct mv88e6xxx_chip *chip) in mv88e6xxx_switch_reset()
2631 static int mv88e6xxx_set_port_mode(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_set_port_mode()
2654 static int mv88e6xxx_set_port_mode_normal(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_normal()
2661 static int mv88e6xxx_set_port_mode_dsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_dsa()
2668 static int mv88e6xxx_set_port_mode_edsa(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_set_port_mode_edsa()
2676 static int mv88e6xxx_setup_port_mode(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port_mode()
2694 static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_message_port()
2701 static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_egress_floods()
2722 struct mv88e6xxx_chip *chip = mvp->chip; in mv88e6xxx_serdes_irq_thread_fn() local
2736 static int mv88e6xxx_serdes_irq_request(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_irq_request()
2765 static int mv88e6xxx_serdes_irq_free(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_irq_free()
2788 static int mv88e6xxx_serdes_power(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_serdes_power()
2815 static int mv88e6xxx_set_egress_port(struct mv88e6xxx_chip *chip, in mv88e6xxx_set_egress_port()
2836 static int mv88e6xxx_setup_upstream_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_upstream_port()
2874 static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_setup_port()
3050 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_max_mtu() local
3061 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_mtu() local
3083 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_enable() local
3095 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_disable() local
3106 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_ageing_time() local
3116 static int mv88e6xxx_stats_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_stats_setup()
3131 static bool mv88e6390_setup_errata_applied(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata_applied()
3155 static int mv88e6390_setup_errata(struct mv88e6xxx_chip *chip) in mv88e6390_setup_errata()
3188 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup() local
3361 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read() local
3387 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write() local
3400 static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdio_register()
3461 static void mv88e6xxx_mdios_unregister(struct mv88e6xxx_chip *chip) in mv88e6xxx_mdios_unregister()
3477 static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip, in mv88e6xxx_mdios_register()
3513 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom_len() local
3521 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_eeprom() local
3542 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_set_eeprom() local
5704 static int mv88e6xxx_detect(struct mv88e6xxx_chip *chip) in mv88e6xxx_detect()
5735 struct mv88e6xxx_chip *chip; in mv88e6xxx_alloc_chip() local
5754 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_tag_protocol() local
5762 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_change_tag_protocol() local
5800 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_add() local
5814 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mdb_del() local
5831 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_add() local
5869 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_mirror_del() local
5896 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_pre_bridge_flags() local
5918 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_bridge_flags() local
5968 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_can_offload() local
6001 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_map() local
6055 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_lag_sync_masks() local
6131 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_change() local
6144 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_join() local
6175 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_lag_leave() local
6188 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_change() local
6201 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_join() local
6223 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_crosschip_lag_leave() local
6299 static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_register_switch()
6327 static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip) in mv88e6xxx_unregister_switch()
6366 struct mv88e6xxx_chip *chip; in mv88e6xxx_probe() local
6513 struct mv88e6xxx_chip *chip; in mv88e6xxx_remove() local