mv88e6xxx_chip 44 drivers/net/dsa/mv88e6xxx/chip.c static void assert_reg_lock(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 52 drivers/net/dsa/mv88e6xxx/chip.c int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val) mv88e6xxx_chip 68 drivers/net/dsa/mv88e6xxx/chip.c int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val) mv88e6xxx_chip 84 drivers/net/dsa/mv88e6xxx/chip.c int mv88e6xxx_wait_mask(struct mv88e6xxx_chip *chip, int addr, int reg, mv88e6xxx_chip 107 drivers/net/dsa/mv88e6xxx/chip.c int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg, mv88e6xxx_chip 114 drivers/net/dsa/mv88e6xxx/chip.c struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 128 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 136 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 142 drivers/net/dsa/mv88e6xxx/chip.c static irqreturn_t mv88e6xxx_g1_irq_thread_work(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 186 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_chip 193 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 200 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 232 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = d->host_data; mv88e6xxx_chip 247 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_g1_irq_free_common(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 264 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 277 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_g1_irq_setup_common(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 327 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 357 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = container_of(work, mv88e6xxx_chip 358 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip, mv88e6xxx_chip 366 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_irq_poll_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 387 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_irq_poll_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 397 drivers/net/dsa/mv88e6xxx/chip.c int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, int link, mv88e6xxx_chip 473 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 478 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6065_phylink_validate(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 491 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6185_phylink_validate(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 504 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6341_phylink_validate(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 518 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6352_phylink_validate(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 529 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6390_phylink_validate(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 545 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6390x_phylink_validate(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 562 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 585 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 602 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 634 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 661 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_stats_snapshot(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 731 drivers/net/dsa/mv88e6xxx/chip.c static uint64_t _mv88e6xxx_get_ethtool_stat(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 772 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_stats_get_strings(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 790 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6095_stats_get_strings(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 797 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6250_stats_get_strings(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 803 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6320_stats_get_strings(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 831 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 853 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_stats_get_sset_count(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 867 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6095_stats_get_sset_count(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 873 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6250_stats_get_sset_count(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 878 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6320_stats_get_sset_count(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 886 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 915 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 937 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6095_stats_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 945 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6250_stats_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 952 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6320_stats_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 961 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6390_stats_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 970 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_atu_vtu_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 980 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1001 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1024 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1060 drivers/net/dsa/mv88e6xxx/chip.c static u16 mv88e6xxx_port_vlan(struct mv88e6xxx_chip *chip, int dev, int port) mv88e6xxx_chip 1093 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_vlan_map(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1106 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1117 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_pri_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1136 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_devmap_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1170 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_trunk_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1179 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_rmu_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1187 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_pot_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1195 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_rsvd2cpu_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1203 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_atu_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1218 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_irl_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1238 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_mac_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1251 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_pvt_map(struct mv88e6xxx_chip *chip, int dev, int port) mv88e6xxx_chip 1265 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_pvt_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1293 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1304 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_vtu_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1312 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 1321 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 1330 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid) mv88e6xxx_chip 1376 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1432 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1451 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1471 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1527 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_policy_apply(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1575 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_policy_insert(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1661 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1708 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1737 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1746 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) mv88e6xxx_chip 1760 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_vlan_join(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1817 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1847 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_vlan_leave(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 1892 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1926 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1940 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 1950 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 1985 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_db_dump(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 2025 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2035 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_bridge_map(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 2076 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2089 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2101 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2117 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2128 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_software_reset(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2136 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2149 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_disable_ports(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2168 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_switch_reset(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2181 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_port_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 2204 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_port_mode_normal(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2211 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_port_mode_dsa(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2218 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_port_mode_edsa(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2226 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_setup_port_mode(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2244 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_setup_message_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2251 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_setup_egress_floods(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2268 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = mvp->chip; mv88e6xxx_chip 2282 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_serdes_irq_request(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 2307 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_serdes_irq_free(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 2330 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_serdes_power(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 2357 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_setup_upstream_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2390 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 2548 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2560 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2571 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2581 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_stats_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2596 drivers/net/dsa/mv88e6xxx/chip.c static bool mv88e6390_setup_errata_applied(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2620 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6390_setup_errata(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2646 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2766 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = mdio_bus->chip; mv88e6xxx_chip 2802 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = mdio_bus->chip; mv88e6xxx_chip 2815 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 2882 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_mdios_unregister(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 2898 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_mdios_register(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 2935 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2943 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 2964 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 4823 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_detect(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 4856 drivers/net/dsa/mv88e6xxx/chip.c static struct mv88e6xxx_chip *mv88e6xxx_alloc_chip(struct device *dev) mv88e6xxx_chip 4858 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip; mv88e6xxx_chip 4876 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 4894 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 4907 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 4920 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 4980 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 5000 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_unregister_switch(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 5039 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip; mv88e6xxx_chip 5181 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 221 drivers/net/dsa/mv88e6xxx/chip.h struct mv88e6xxx_chip *chip; mv88e6xxx_chip 321 drivers/net/dsa/mv88e6xxx/chip.h int (*read)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val); mv88e6xxx_chip 322 drivers/net/dsa/mv88e6xxx/chip.h int (*write)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val); mv88e6xxx_chip 327 drivers/net/dsa/mv88e6xxx/chip.h struct mv88e6xxx_chip *chip; mv88e6xxx_chip 336 drivers/net/dsa/mv88e6xxx/chip.h int (*setup_errata)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 338 drivers/net/dsa/mv88e6xxx/chip.h int (*ieee_pri_map)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 339 drivers/net/dsa/mv88e6xxx/chip.h int (*ip_pri_map)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 342 drivers/net/dsa/mv88e6xxx/chip.h int (*irl_init_all)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 344 drivers/net/dsa/mv88e6xxx/chip.h int (*get_eeprom)(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 346 drivers/net/dsa/mv88e6xxx/chip.h int (*set_eeprom)(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 349 drivers/net/dsa/mv88e6xxx/chip.h int (*set_switch_mac)(struct mv88e6xxx_chip *chip, u8 *addr); mv88e6xxx_chip 351 drivers/net/dsa/mv88e6xxx/chip.h int (*phy_read)(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 354 drivers/net/dsa/mv88e6xxx/chip.h int (*phy_write)(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 359 drivers/net/dsa/mv88e6xxx/chip.h int (*pot_clear)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 362 drivers/net/dsa/mv88e6xxx/chip.h int (*ppu_enable)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 363 drivers/net/dsa/mv88e6xxx/chip.h int (*ppu_disable)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 366 drivers/net/dsa/mv88e6xxx/chip.h int (*reset)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 371 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_rgmii_delay)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 382 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_link)(struct mv88e6xxx_chip *chip, int port, int link); mv88e6xxx_chip 391 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_duplex)(struct mv88e6xxx_chip *chip, int port, int dup); mv88e6xxx_chip 397 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_pause)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 408 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_speed)(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 413 drivers/net/dsa/mv88e6xxx/chip.h int (*port_tag_remap)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 415 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_policy)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 419 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_frame_mode)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 421 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_egress_floods)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 423 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_ether_type)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 425 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_jumbo_size)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 428 drivers/net/dsa/mv88e6xxx/chip.h int (*port_egress_rate_limiting)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 429 drivers/net/dsa/mv88e6xxx/chip.h int (*port_pause_limit)(struct mv88e6xxx_chip *chip, int port, u8 in, mv88e6xxx_chip 431 drivers/net/dsa/mv88e6xxx/chip.h int (*port_disable_learn_limit)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 432 drivers/net/dsa/mv88e6xxx/chip.h int (*port_disable_pri_override)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 433 drivers/net/dsa/mv88e6xxx/chip.h int (*port_setup_message_port)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 438 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_cmode)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 440 drivers/net/dsa/mv88e6xxx/chip.h int (*port_get_cmode)(struct mv88e6xxx_chip *chip, int port, u8 *cmode); mv88e6xxx_chip 445 drivers/net/dsa/mv88e6xxx/chip.h int (*port_set_upstream_port)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 448 drivers/net/dsa/mv88e6xxx/chip.h int (*port_link_state)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 454 drivers/net/dsa/mv88e6xxx/chip.h int (*stats_snapshot)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 459 drivers/net/dsa/mv88e6xxx/chip.h int (*stats_set_histogram)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 462 drivers/net/dsa/mv88e6xxx/chip.h int (*stats_get_sset_count)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 463 drivers/net/dsa/mv88e6xxx/chip.h int (*stats_get_strings)(struct mv88e6xxx_chip *chip, uint8_t *data); mv88e6xxx_chip 464 drivers/net/dsa/mv88e6xxx/chip.h int (*stats_get_stats)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 466 drivers/net/dsa/mv88e6xxx/chip.h int (*set_cpu_port)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 467 drivers/net/dsa/mv88e6xxx/chip.h int (*set_egress_port)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 472 drivers/net/dsa/mv88e6xxx/chip.h int (*set_cascade_port)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 476 drivers/net/dsa/mv88e6xxx/chip.h int (*mgmt_rsvd2cpu)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 479 drivers/net/dsa/mv88e6xxx/chip.h int (*serdes_power)(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 483 drivers/net/dsa/mv88e6xxx/chip.h u8 (*serdes_get_lane)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 486 drivers/net/dsa/mv88e6xxx/chip.h unsigned int (*serdes_irq_mapping)(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 488 drivers/net/dsa/mv88e6xxx/chip.h int (*serdes_irq_enable)(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 490 drivers/net/dsa/mv88e6xxx/chip.h irqreturn_t (*serdes_irq_status)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 494 drivers/net/dsa/mv88e6xxx/chip.h int (*serdes_get_sset_count)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 495 drivers/net/dsa/mv88e6xxx/chip.h int (*serdes_get_strings)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 497 drivers/net/dsa/mv88e6xxx/chip.h int (*serdes_get_stats)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 501 drivers/net/dsa/mv88e6xxx/chip.h int (*vtu_getnext)(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 503 drivers/net/dsa/mv88e6xxx/chip.h int (*vtu_loadpurge)(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 513 drivers/net/dsa/mv88e6xxx/chip.h int (*rmu_disable)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 519 drivers/net/dsa/mv88e6xxx/chip.h void (*phylink_validate)(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 526 drivers/net/dsa/mv88e6xxx/chip.h int (*irq_action)(struct mv88e6xxx_chip *chip, int irq); mv88e6xxx_chip 528 drivers/net/dsa/mv88e6xxx/chip.h int (*irq_setup)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 530 drivers/net/dsa/mv88e6xxx/chip.h void (*irq_free)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 535 drivers/net/dsa/mv88e6xxx/chip.h int (*get_data)(struct mv88e6xxx_chip *chip, unsigned int pin); mv88e6xxx_chip 536 drivers/net/dsa/mv88e6xxx/chip.h int (*set_data)(struct mv88e6xxx_chip *chip, unsigned int pin, mv88e6xxx_chip 540 drivers/net/dsa/mv88e6xxx/chip.h int (*get_dir)(struct mv88e6xxx_chip *chip, unsigned int pin); mv88e6xxx_chip 541 drivers/net/dsa/mv88e6xxx/chip.h int (*set_dir)(struct mv88e6xxx_chip *chip, unsigned int pin, mv88e6xxx_chip 545 drivers/net/dsa/mv88e6xxx/chip.h int (*get_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin, mv88e6xxx_chip 547 drivers/net/dsa/mv88e6xxx/chip.h int (*set_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin, mv88e6xxx_chip 553 drivers/net/dsa/mv88e6xxx/chip.h int (*port_ptp_read)(struct mv88e6xxx_chip *chip, int port, int addr, mv88e6xxx_chip 555 drivers/net/dsa/mv88e6xxx/chip.h int (*port_ptp_write)(struct mv88e6xxx_chip *chip, int port, int addr, mv88e6xxx_chip 559 drivers/net/dsa/mv88e6xxx/chip.h int (*ptp_read)(struct mv88e6xxx_chip *chip, int addr, u16 *data, mv88e6xxx_chip 561 drivers/net/dsa/mv88e6xxx/chip.h int (*ptp_write)(struct mv88e6xxx_chip *chip, int addr, u16 data); mv88e6xxx_chip 564 drivers/net/dsa/mv88e6xxx/chip.h int (*tai_read)(struct mv88e6xxx_chip *chip, int addr, u16 *data, mv88e6xxx_chip 566 drivers/net/dsa/mv88e6xxx/chip.h int (*tai_write)(struct mv88e6xxx_chip *chip, int addr, u16 data); mv88e6xxx_chip 576 drivers/net/dsa/mv88e6xxx/chip.h int (*port_enable)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 577 drivers/net/dsa/mv88e6xxx/chip.h int (*port_disable)(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 578 drivers/net/dsa/mv88e6xxx/chip.h int (*global_enable)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 579 drivers/net/dsa/mv88e6xxx/chip.h int (*global_disable)(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 602 drivers/net/dsa/mv88e6xxx/chip.h static inline bool mv88e6xxx_has_pvt(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 607 drivers/net/dsa/mv88e6xxx/chip.h static inline unsigned int mv88e6xxx_num_databases(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 612 drivers/net/dsa/mv88e6xxx/chip.h static inline unsigned int mv88e6xxx_num_ports(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 617 drivers/net/dsa/mv88e6xxx/chip.h static inline u16 mv88e6xxx_port_mask(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 622 drivers/net/dsa/mv88e6xxx/chip.h static inline unsigned int mv88e6xxx_num_gpio(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 627 drivers/net/dsa/mv88e6xxx/chip.h static inline bool mv88e6xxx_is_invalid_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 632 drivers/net/dsa/mv88e6xxx/chip.h int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val); mv88e6xxx_chip 633 drivers/net/dsa/mv88e6xxx/chip.h int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val); mv88e6xxx_chip 634 drivers/net/dsa/mv88e6xxx/chip.h int mv88e6xxx_wait_mask(struct mv88e6xxx_chip *chip, int addr, int reg, mv88e6xxx_chip 636 drivers/net/dsa/mv88e6xxx/chip.h int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg, mv88e6xxx_chip 638 drivers/net/dsa/mv88e6xxx/chip.h int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, int link, mv88e6xxx_chip 641 drivers/net/dsa/mv88e6xxx/chip.h struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 643 drivers/net/dsa/mv88e6xxx/chip.h static inline void mv88e6xxx_reg_lock(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 648 drivers/net/dsa/mv88e6xxx/chip.h static inline void mv88e6xxx_reg_unlock(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 16 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) mv88e6xxx_chip 23 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) mv88e6xxx_chip 30 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int mv88e6xxx_chip 37 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, mv88e6xxx_chip 46 drivers/net/dsa/mv88e6xxx/global1.c static int mv88e6185_g1_wait_ppu_disabled(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 53 drivers/net/dsa/mv88e6xxx/global1.c static int mv88e6185_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 60 drivers/net/dsa/mv88e6xxx/global1.c static int mv88e6352_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 67 drivers/net/dsa/mv88e6xxx/global1.c static int mv88e6xxx_g1_wait_init_ready(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 82 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) mv88e6xxx_chip 107 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 133 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6250_g1_reset(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 152 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6352_g1_reset(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 163 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6185_g1_ppu_enable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 181 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6185_g1_ppu_disable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 209 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6085_g1_ip_pri_map(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 251 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6085_g1_ieee_pri_map(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 257 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6250_g1_ieee_pri_map(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 266 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6095_g1_set_egress_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 288 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6095_g1_set_cpu_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 303 drivers/net/dsa/mv88e6xxx/global1.c static int mv88e6390_g1_monitor_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 313 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6390_g1_set_egress_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 331 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6390_g1_set_cpu_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 343 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6390_g1_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 377 drivers/net/dsa/mv88e6xxx/global1.c static int mv88e6xxx_g1_ctl2_mask(struct mv88e6xxx_chip *chip, u16 mask, mv88e6xxx_chip 393 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6185_g1_set_cascade_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 400 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6085_g1_rmu_disable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 406 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6352_g1_rmu_disable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 412 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6390_g1_rmu_disable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 418 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6390_g1_stats_set_histogram(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 425 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_set_device_number(struct mv88e6xxx_chip *chip, int index) mv88e6xxx_chip 434 drivers/net/dsa/mv88e6xxx/global1.c static int mv88e6xxx_g1_stats_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 441 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6095_g1_stats_set_histogram(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 457 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 473 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6320_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 480 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6390_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 497 drivers/net/dsa/mv88e6xxx/global1.c void mv88e6xxx_g1_stats_read(struct mv88e6xxx_chip *chip, int stat, u32 *val) mv88e6xxx_chip 528 drivers/net/dsa/mv88e6xxx/global1.c int mv88e6xxx_g1_stats_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 268 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val); mv88e6xxx_chip 269 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val); mv88e6xxx_chip 270 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int mv88e6xxx_chip 272 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, mv88e6xxx_chip 275 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr); mv88e6xxx_chip 277 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 278 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6352_g1_reset(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 279 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6250_g1_reset(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 281 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6185_g1_ppu_enable(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 282 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6185_g1_ppu_disable(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 284 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 285 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6320_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 286 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_stats_snapshot(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 287 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6095_g1_stats_set_histogram(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 288 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_stats_set_histogram(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 289 drivers/net/dsa/mv88e6xxx/global1.h void mv88e6xxx_g1_stats_read(struct mv88e6xxx_chip *chip, int stat, u32 *val); mv88e6xxx_chip 290 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_stats_clear(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 291 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6095_g1_set_egress_port(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 292 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_set_egress_port(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 293 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6095_g1_set_cpu_port(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 294 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_set_cpu_port(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 295 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 297 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6085_g1_ip_pri_map(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 299 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6085_g1_ieee_pri_map(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 300 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6250_g1_ieee_pri_map(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 302 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6185_g1_set_cascade_port(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 304 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6085_g1_rmu_disable(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 305 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6352_g1_rmu_disable(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 306 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_rmu_disable(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 308 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_set_device_number(struct mv88e6xxx_chip *chip, int index); mv88e6xxx_chip 310 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_atu_set_learn2all(struct mv88e6xxx_chip *chip, bool learn2all); mv88e6xxx_chip 311 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_atu_set_age_time(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 313 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_atu_getnext(struct mv88e6xxx_chip *chip, u16 fid, mv88e6xxx_chip 315 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_atu_loadpurge(struct mv88e6xxx_chip *chip, u16 fid, mv88e6xxx_chip 317 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_atu_flush(struct mv88e6xxx_chip *chip, u16 fid, bool all); mv88e6xxx_chip 318 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_atu_remove(struct mv88e6xxx_chip *chip, u16 fid, int port, mv88e6xxx_chip 320 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_atu_prob_irq_setup(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 321 drivers/net/dsa/mv88e6xxx/global1.h void mv88e6xxx_g1_atu_prob_irq_free(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 323 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6185_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 325 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6185_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 327 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6250_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 329 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6250_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 331 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6352_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 333 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6352_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 335 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 337 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6390_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 339 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_vtu_flush(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 340 drivers/net/dsa/mv88e6xxx/global1.h int mv88e6xxx_g1_vtu_prob_irq_setup(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 341 drivers/net/dsa/mv88e6xxx/global1.h void mv88e6xxx_g1_vtu_prob_irq_free(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 18 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) mv88e6xxx_chip 25 drivers/net/dsa/mv88e6xxx/global1_atu.c int mv88e6xxx_g1_atu_set_learn2all(struct mv88e6xxx_chip *chip, bool learn2all) mv88e6xxx_chip 42 drivers/net/dsa/mv88e6xxx/global1_atu.c int mv88e6xxx_g1_atu_set_age_time(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 78 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_op_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 85 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) mv88e6xxx_chip 127 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_data_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 146 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_data_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 166 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_mac_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 184 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_mac_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 202 drivers/net/dsa/mv88e6xxx/global1_atu.c int mv88e6xxx_g1_atu_getnext(struct mv88e6xxx_chip *chip, u16 fid, mv88e6xxx_chip 229 drivers/net/dsa/mv88e6xxx/global1_atu.c int mv88e6xxx_g1_atu_loadpurge(struct mv88e6xxx_chip *chip, u16 fid, mv88e6xxx_chip 249 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_flushmove(struct mv88e6xxx_chip *chip, u16 fid, mv88e6xxx_chip 277 drivers/net/dsa/mv88e6xxx/global1_atu.c int mv88e6xxx_g1_atu_flush(struct mv88e6xxx_chip *chip, u16 fid, bool all) mv88e6xxx_chip 286 drivers/net/dsa/mv88e6xxx/global1_atu.c static int mv88e6xxx_g1_atu_move(struct mv88e6xxx_chip *chip, u16 fid, mv88e6xxx_chip 306 drivers/net/dsa/mv88e6xxx/global1_atu.c int mv88e6xxx_g1_atu_remove(struct mv88e6xxx_chip *chip, u16 fid, int port, mv88e6xxx_chip 317 drivers/net/dsa/mv88e6xxx/global1_atu.c struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_chip 382 drivers/net/dsa/mv88e6xxx/global1_atu.c int mv88e6xxx_g1_atu_prob_irq_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 401 drivers/net/dsa/mv88e6xxx/global1_atu.c void mv88e6xxx_g1_atu_prob_irq_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 19 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_fid_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 34 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_fid_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 44 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_sid_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 59 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_sid_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 69 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_op_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 76 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_op(struct mv88e6xxx_chip *chip, u16 op) mv88e6xxx_chip 90 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_vid_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 110 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_vid_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 129 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6185_g1_vtu_data_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 157 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6185_g1_vtu_data_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 185 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6390_g1_vtu_data_read(struct mv88e6xxx_chip *chip, u8 *data) mv88e6xxx_chip 210 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6390_g1_vtu_data_write(struct mv88e6xxx_chip *chip, u8 *data) mv88e6xxx_chip 237 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_stu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 257 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_stu_get(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 279 drivers/net/dsa/mv88e6xxx/global1_vtu.c static int mv88e6xxx_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 308 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6250_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 337 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6185_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 366 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6352_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 394 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6390_g1_vtu_getnext(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 426 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6250_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 455 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6185_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 484 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6352_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 522 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6390_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 565 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6xxx_g1_vtu_flush(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 578 drivers/net/dsa/mv88e6xxx/global1_vtu.c struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_chip 625 drivers/net/dsa/mv88e6xxx/global1_vtu.c int mv88e6xxx_g1_vtu_prob_irq_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 644 drivers/net/dsa/mv88e6xxx/global1_vtu.c void mv88e6xxx_g1_vtu_prob_irq_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 19 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) mv88e6xxx_chip 24 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) mv88e6xxx_chip 29 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int mv88e6xxx_chip 38 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) mv88e6xxx_chip 46 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) mv88e6xxx_chip 53 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_mgmt_enable_2x(struct mv88e6xxx_chip *chip, u16 en2x) mv88e6xxx_chip 60 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_mgmt_enable_0x(struct mv88e6xxx_chip *chip, u16 en0x) mv88e6xxx_chip 67 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_switch_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 85 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6185_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 99 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6352_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 115 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, int target, mv88e6xxx_chip 129 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_trunk_mask_write(struct mv88e6xxx_chip *chip, int num, mv88e6xxx_chip 143 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_trunk_mapping_write(struct mv88e6xxx_chip *chip, int id, mv88e6xxx_chip 153 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 179 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_irl_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 186 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_irl_op(struct mv88e6xxx_chip *chip, u16 op, int port, mv88e6xxx_chip 200 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6352_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 206 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6390_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 216 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_pvt_op_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 223 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_pvt_op(struct mv88e6xxx_chip *chip, int src_dev, mv88e6xxx_chip 242 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip, int src_dev, mv88e6xxx_chip 261 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_switch_mac_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 270 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) mv88e6xxx_chip 285 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_pot_write(struct mv88e6xxx_chip *chip, int pointer, mv88e6xxx_chip 294 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 313 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_eeprom_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 327 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_eeprom_cmd(struct mv88e6xxx_chip *chip, u16 cmd) mv88e6xxx_chip 339 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_eeprom_read8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 366 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_eeprom_write8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 384 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_eeprom_read16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 401 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_eeprom_write16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 418 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_get_eeprom8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 441 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_set_eeprom8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 464 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_get_eeprom16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 514 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_set_eeprom16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 584 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 591 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_cmd(struct mv88e6xxx_chip *chip, u16 cmd) mv88e6xxx_chip 603 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_access(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 626 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_access_c22(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 634 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_read_data_c22(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 653 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_write_data_c22(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 671 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_access_c45(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 679 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_write_addr_c45(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 698 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_read_data_c45(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 712 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_read_c45(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 730 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_write_data_c45(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 744 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_smi_phy_write_c45(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 761 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_smi_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 775 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_smi_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 790 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6097_watchdog_action(struct mv88e6xxx_chip *chip, int irq) mv88e6xxx_chip 801 drivers/net/dsa/mv88e6xxx/global2.c static void mv88e6097_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 813 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6097_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 827 drivers/net/dsa/mv88e6xxx/global2.c static void mv88e6250_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 839 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6250_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 853 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6390_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 864 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6390_watchdog_action(struct mv88e6xxx_chip *chip, int irq) mv88e6xxx_chip 892 drivers/net/dsa/mv88e6xxx/global2.c static void mv88e6390_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 907 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_chip 918 drivers/net/dsa/mv88e6xxx/global2.c static void mv88e6xxx_g2_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 929 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 955 drivers/net/dsa/mv88e6xxx/global2.c static int mv88e6xxx_g2_misc_5_bit_port(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 973 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_misc_4_bit_port(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 980 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 988 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 996 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_chip 1022 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 1029 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_chip 1051 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_chip *chip = d->host_data; mv88e6xxx_chip 1065 drivers/net/dsa/mv88e6xxx/global2.c void mv88e6xxx_g2_irq_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1082 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_irq_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 1129 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_irq_mdio_setup(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 1152 drivers/net/dsa/mv88e6xxx/global2.c void mv88e6xxx_g2_irq_mdio_free(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 291 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_require(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 296 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val); mv88e6xxx_chip 297 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val); mv88e6xxx_chip 298 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, mv88e6xxx_chip 301 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6352_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 302 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6390_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 304 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_smi_phy_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 307 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_smi_phy_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 310 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr); mv88e6xxx_chip 312 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_get_eeprom8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 314 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_set_eeprom8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 317 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_get_eeprom16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 319 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_set_eeprom16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 322 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip, int src_dev, mv88e6xxx_chip 324 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_misc_4_bit_port(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 326 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_irq_setup(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 327 drivers/net/dsa/mv88e6xxx/global2.h void mv88e6xxx_g2_irq_free(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 329 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_irq_mdio_setup(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 331 drivers/net/dsa/mv88e6xxx/global2.h void mv88e6xxx_g2_irq_mdio_free(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 334 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6185_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 335 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6352_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 337 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 339 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 341 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, int target, mv88e6xxx_chip 354 drivers/net/dsa/mv88e6xxx/global2.h int mv88e6xxx_g2_scratch_gpio_set_smi(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 359 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_require(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 369 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) mv88e6xxx_chip 374 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) mv88e6xxx_chip 379 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 385 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6352_g2_irl_init_all(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 391 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6390_g2_irl_init_all(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 397 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_smi_phy_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 404 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_smi_phy_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 411 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_set_switch_mac(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 417 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_get_eeprom8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 424 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_set_eeprom8(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 431 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_get_eeprom16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 438 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_set_eeprom16(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 445 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 451 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_misc_4_bit_port(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 456 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_irq_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 461 drivers/net/dsa/mv88e6xxx/global2.h static inline void mv88e6xxx_g2_irq_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 465 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_irq_mdio_setup(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 471 drivers/net/dsa/mv88e6xxx/global2.h static inline void mv88e6xxx_g2_irq_mdio_free(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 476 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6185_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 481 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6352_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 486 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 501 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_scratch_gpio_set_smi(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 507 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 512 drivers/net/dsa/mv88e6xxx/global2.h static inline int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 32 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6xxx_g2_avb_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 39 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6xxx_g2_avb_read(struct mv88e6xxx_chip *chip, u16 readop, mv88e6xxx_chip 73 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6xxx_g2_avb_write(struct mv88e6xxx_chip *chip, u16 writeop, mv88e6xxx_chip 92 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6352_g2_avb_port_ptp_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 104 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6352_g2_avb_port_ptp_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 113 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6352_g2_avb_ptp_read(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 121 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6352_g2_avb_ptp_write(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 129 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6352_g2_avb_tai_read(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 137 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6352_g2_avb_tai_write(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 154 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6165_g2_avb_tai_read(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 162 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6165_g2_avb_tai_write(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 179 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6390_g2_avb_port_ptp_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 191 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6390_g2_avb_port_ptp_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 200 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6390_g2_avb_ptp_read(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 208 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6390_g2_avb_ptp_write(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 216 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6390_g2_avb_tai_read(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 224 drivers/net/dsa/mv88e6xxx/global2_avb.c static int mv88e6390_g2_avb_tai_write(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 15 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6xxx_g2_scratch_read(struct mv88e6xxx_chip *chip, int reg, mv88e6xxx_chip 35 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6xxx_g2_scratch_write(struct mv88e6xxx_chip *chip, int reg, mv88e6xxx_chip 50 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6xxx_g2_scratch_get_bit(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 76 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6xxx_g2_scratch_set_bit(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 104 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6352_g2_scratch_gpio_get_data(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 125 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6352_g2_scratch_gpio_set_data(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 149 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6352_g2_scratch_gpio_get_dir(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 169 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6352_g2_scratch_gpio_set_dir(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 188 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6352_g2_scratch_gpio_get_pctl(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 212 drivers/net/dsa/mv88e6xxx/global2_scratch.c static int mv88e6352_g2_scratch_gpio_set_pctl(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 248 drivers/net/dsa/mv88e6xxx/global2_scratch.c int mv88e6xxx_g2_scratch_gpio_set_smi(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 21 drivers/net/dsa/mv88e6xxx/hwtstamp.c static int mv88e6xxx_port_ptp_read(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 31 drivers/net/dsa/mv88e6xxx/hwtstamp.c static int mv88e6xxx_port_ptp_write(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 41 drivers/net/dsa/mv88e6xxx/hwtstamp.c static int mv88e6xxx_ptp_write(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 50 drivers/net/dsa/mv88e6xxx/hwtstamp.c static int mv88e6xxx_ptp_read(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 70 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip; mv88e6xxx_chip 91 drivers/net/dsa/mv88e6xxx/hwtstamp.c static int mv88e6xxx_set_hwtstamp_config(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 178 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 203 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 247 drivers/net/dsa/mv88e6xxx/hwtstamp.c static u8 *mv88e6xxx_should_tstamp(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 286 drivers/net/dsa/mv88e6xxx/hwtstamp.c static void mv88e6xxx_get_rxts(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 342 drivers/net/dsa/mv88e6xxx/hwtstamp.c static void mv88e6xxx_rxtstamp_work(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 369 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip; mv88e6xxx_chip 394 drivers/net/dsa/mv88e6xxx/hwtstamp.c static int mv88e6xxx_txtstamp_work(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 482 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); mv88e6xxx_chip 504 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip = ds->priv; mv88e6xxx_chip 530 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6165_global_disable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 543 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6165_global_enable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 557 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6352_hwtstamp_port_disable(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 563 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6352_hwtstamp_port_enable(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 569 drivers/net/dsa/mv88e6xxx/hwtstamp.c static int mv88e6xxx_hwtstamp_port_setup(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 585 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6xxx_hwtstamp_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 642 drivers/net/dsa/mv88e6xxx/hwtstamp.c void mv88e6xxx_hwtstamp_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 126 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6xxx_hwtstamp_setup(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 127 drivers/net/dsa/mv88e6xxx/hwtstamp.h void mv88e6xxx_hwtstamp_free(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 128 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6352_hwtstamp_port_enable(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 129 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6352_hwtstamp_port_disable(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 130 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6165_global_enable(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 131 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6165_global_disable(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 167 drivers/net/dsa/mv88e6xxx/hwtstamp.h static inline int mv88e6xxx_hwtstamp_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 172 drivers/net/dsa/mv88e6xxx/hwtstamp.h static inline void mv88e6xxx_hwtstamp_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 16 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 22 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 28 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) mv88e6xxx_chip 43 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) mv88e6xxx_chip 58 drivers/net/dsa/mv88e6xxx/phy.c static int mv88e6xxx_phy_page_get(struct mv88e6xxx_chip *chip, int phy, u8 page) mv88e6xxx_chip 63 drivers/net/dsa/mv88e6xxx/phy.c static void mv88e6xxx_phy_page_put(struct mv88e6xxx_chip *chip, int phy) mv88e6xxx_chip 79 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy, mv88e6xxx_chip 97 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy, mv88e6xxx_chip 118 drivers/net/dsa/mv88e6xxx/phy.c static int mv88e6xxx_phy_ppu_disable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 126 drivers/net/dsa/mv88e6xxx/phy.c static int mv88e6xxx_phy_ppu_enable(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 136 drivers/net/dsa/mv88e6xxx/phy.c struct mv88e6xxx_chip *chip; mv88e6xxx_chip 138 drivers/net/dsa/mv88e6xxx/phy.c chip = container_of(ugly, struct mv88e6xxx_chip, ppu_work); mv88e6xxx_chip 153 drivers/net/dsa/mv88e6xxx/phy.c struct mv88e6xxx_chip *chip = from_timer(chip, t, ppu_timer); mv88e6xxx_chip 158 drivers/net/dsa/mv88e6xxx/phy.c static int mv88e6xxx_phy_ppu_access_get(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 184 drivers/net/dsa/mv88e6xxx/phy.c static void mv88e6xxx_phy_ppu_access_put(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 191 drivers/net/dsa/mv88e6xxx/phy.c static void mv88e6xxx_phy_ppu_state_init(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 198 drivers/net/dsa/mv88e6xxx/phy.c static void mv88e6xxx_phy_ppu_state_destroy(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 203 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 217 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 231 drivers/net/dsa/mv88e6xxx/phy.c void mv88e6xxx_phy_init(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 237 drivers/net/dsa/mv88e6xxx/phy.c void mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 243 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6xxx_phy_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 17 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 19 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 21 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 23 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, mv88e6xxx_chip 27 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, mv88e6xxx_chip 29 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, mv88e6xxx_chip 31 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy, mv88e6xxx_chip 33 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy, mv88e6xxx_chip 35 drivers/net/dsa/mv88e6xxx/phy.h void mv88e6xxx_phy_init(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 36 drivers/net/dsa/mv88e6xxx/phy.h void mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 37 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6xxx_phy_setup(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 20 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, mv88e6xxx_chip 28 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, mv88e6xxx_chip 41 drivers/net/dsa/mv88e6xxx/port.c int mv88e6185_port_set_pause(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 68 drivers/net/dsa/mv88e6xxx/port.c static int mv88e6xxx_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 109 drivers/net/dsa/mv88e6xxx/port.c int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 118 drivers/net/dsa/mv88e6xxx/port.c int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 127 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link) mv88e6xxx_chip 165 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_duplex(struct mv88e6xxx_chip *chip, int port, int dup) mv88e6xxx_chip 203 drivers/net/dsa/mv88e6xxx/port.c static int mv88e6xxx_port_set_speed(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 269 drivers/net/dsa/mv88e6xxx/port.c int mv88e6065_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) mv88e6xxx_chip 282 drivers/net/dsa/mv88e6xxx/port.c int mv88e6185_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) mv88e6xxx_chip 294 drivers/net/dsa/mv88e6xxx/port.c int mv88e6250_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) mv88e6xxx_chip 306 drivers/net/dsa/mv88e6xxx/port.c int mv88e6341_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) mv88e6xxx_chip 332 drivers/net/dsa/mv88e6xxx/port.c int mv88e6352_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) mv88e6xxx_chip 347 drivers/net/dsa/mv88e6xxx/port.c int mv88e6390_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) mv88e6xxx_chip 373 drivers/net/dsa/mv88e6xxx/port.c int mv88e6390x_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) mv88e6xxx_chip 395 drivers/net/dsa/mv88e6xxx/port.c static int mv88e6xxx_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 481 drivers/net/dsa/mv88e6xxx/port.c int mv88e6390x_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 490 drivers/net/dsa/mv88e6xxx/port.c int mv88e6390_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 510 drivers/net/dsa/mv88e6xxx/port.c static int mv88e6341_port_set_cmode_writable(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 535 drivers/net/dsa/mv88e6xxx/port.c int mv88e6341_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 561 drivers/net/dsa/mv88e6xxx/port.c int mv88e6185_port_get_cmode(struct mv88e6xxx_chip *chip, int port, u8 *cmode) mv88e6xxx_chip 575 drivers/net/dsa/mv88e6xxx/port.c int mv88e6352_port_get_cmode(struct mv88e6xxx_chip *chip, int port, u8 *cmode) mv88e6xxx_chip 589 drivers/net/dsa/mv88e6xxx/port.c int mv88e6250_port_link_state(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 655 drivers/net/dsa/mv88e6xxx/port.c int mv88e6352_port_link_state(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 730 drivers/net/dsa/mv88e6xxx/port.c int mv88e6185_port_link_state(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 772 drivers/net/dsa/mv88e6xxx/port.c int mv88e6097_port_pause_limit(struct mv88e6xxx_chip *chip, int port, u8 in, mv88e6xxx_chip 779 drivers/net/dsa/mv88e6xxx/port.c int mv88e6390_port_pause_limit(struct mv88e6xxx_chip *chip, int port, u8 in, mv88e6xxx_chip 804 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_state(struct mv88e6xxx_chip *chip, int port, u8 state) mv88e6xxx_chip 845 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_egress_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 877 drivers/net/dsa/mv88e6xxx/port.c int mv88e6085_port_set_frame_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 903 drivers/net/dsa/mv88e6xxx/port.c int mv88e6351_port_set_frame_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 935 drivers/net/dsa/mv88e6xxx/port.c static int mv88e6185_port_set_forward_unknown(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 953 drivers/net/dsa/mv88e6xxx/port.c int mv88e6352_port_set_egress_floods(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 979 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_message_port(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 999 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_vlan_map(struct mv88e6xxx_chip *chip, int port, u16 map) mv88e6xxx_chip 1021 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_get_fid(struct mv88e6xxx_chip *chip, int port, u16 *fid) mv88e6xxx_chip 1047 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_fid(struct mv88e6xxx_chip *chip, int port, u16 fid) mv88e6xxx_chip 1091 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid) mv88e6xxx_chip 1106 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid) mv88e6xxx_chip 1138 drivers/net/dsa/mv88e6xxx/port.c static int mv88e6185_port_set_default_forward(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 1156 drivers/net/dsa/mv88e6xxx/port.c int mv88e6185_port_set_egress_floods(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1168 drivers/net/dsa/mv88e6xxx/port.c int mv88e6095_port_set_upstream_port(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1184 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_8021q_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1207 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_map_da(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1221 drivers/net/dsa/mv88e6xxx/port.c int mv88e6165_port_set_jumbo_size(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1247 drivers/net/dsa/mv88e6xxx/port.c int mv88e6095_port_egress_rate_limiting(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1253 drivers/net/dsa/mv88e6xxx/port.c int mv88e6097_port_egress_rate_limiting(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1261 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_disable_learn_limit(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1268 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_disable_pri_override(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1275 drivers/net/dsa/mv88e6xxx/port.c int mv88e6351_port_set_ether_type(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 1285 drivers/net/dsa/mv88e6xxx/port.c int mv88e6095_port_tag_remap(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1301 drivers/net/dsa/mv88e6xxx/port.c static int mv88e6xxx_port_ieeepmt_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 1314 drivers/net/dsa/mv88e6xxx/port.c int mv88e6390_port_tag_remap(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 1347 drivers/net/dsa/mv88e6xxx/port.c int mv88e6352_port_set_policy(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 287 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, mv88e6xxx_chip 289 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, mv88e6xxx_chip 292 drivers/net/dsa/mv88e6xxx/port.h int mv88e6185_port_set_pause(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 294 drivers/net/dsa/mv88e6xxx/port.h int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 296 drivers/net/dsa/mv88e6xxx/port.h int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 299 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link); mv88e6xxx_chip 301 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_duplex(struct mv88e6xxx_chip *chip, int port, int dup); mv88e6xxx_chip 303 drivers/net/dsa/mv88e6xxx/port.h int mv88e6065_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 304 drivers/net/dsa/mv88e6xxx/port.h int mv88e6185_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 305 drivers/net/dsa/mv88e6xxx/port.h int mv88e6250_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 306 drivers/net/dsa/mv88e6xxx/port.h int mv88e6341_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 307 drivers/net/dsa/mv88e6xxx/port.h int mv88e6352_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 308 drivers/net/dsa/mv88e6xxx/port.h int mv88e6390_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 309 drivers/net/dsa/mv88e6xxx/port.h int mv88e6390x_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed); mv88e6xxx_chip 315 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_state(struct mv88e6xxx_chip *chip, int port, u8 state); mv88e6xxx_chip 317 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_vlan_map(struct mv88e6xxx_chip *chip, int port, u16 map); mv88e6xxx_chip 319 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_get_fid(struct mv88e6xxx_chip *chip, int port, u16 *fid); mv88e6xxx_chip 320 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_fid(struct mv88e6xxx_chip *chip, int port, u16 fid); mv88e6xxx_chip 322 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid); mv88e6xxx_chip 323 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid); mv88e6xxx_chip 325 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_8021q_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 327 drivers/net/dsa/mv88e6xxx/port.h int mv88e6095_port_tag_remap(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 328 drivers/net/dsa/mv88e6xxx/port.h int mv88e6390_port_tag_remap(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 329 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_egress_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 331 drivers/net/dsa/mv88e6xxx/port.h int mv88e6085_port_set_frame_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 333 drivers/net/dsa/mv88e6xxx/port.h int mv88e6351_port_set_frame_mode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 335 drivers/net/dsa/mv88e6xxx/port.h int mv88e6185_port_set_egress_floods(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 337 drivers/net/dsa/mv88e6xxx/port.h int mv88e6352_port_set_egress_floods(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 339 drivers/net/dsa/mv88e6xxx/port.h int mv88e6352_port_set_policy(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 342 drivers/net/dsa/mv88e6xxx/port.h int mv88e6351_port_set_ether_type(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 344 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_message_port(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 346 drivers/net/dsa/mv88e6xxx/port.h int mv88e6165_port_set_jumbo_size(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 348 drivers/net/dsa/mv88e6xxx/port.h int mv88e6095_port_egress_rate_limiting(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 349 drivers/net/dsa/mv88e6xxx/port.h int mv88e6097_port_egress_rate_limiting(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 350 drivers/net/dsa/mv88e6xxx/port.h int mv88e6097_port_pause_limit(struct mv88e6xxx_chip *chip, int port, u8 in, mv88e6xxx_chip 352 drivers/net/dsa/mv88e6xxx/port.h int mv88e6390_port_pause_limit(struct mv88e6xxx_chip *chip, int port, u8 in, mv88e6xxx_chip 354 drivers/net/dsa/mv88e6xxx/port.h int mv88e6341_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 356 drivers/net/dsa/mv88e6xxx/port.h int mv88e6390_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 358 drivers/net/dsa/mv88e6xxx/port.h int mv88e6390x_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 360 drivers/net/dsa/mv88e6xxx/port.h int mv88e6185_port_get_cmode(struct mv88e6xxx_chip *chip, int port, u8 *cmode); mv88e6xxx_chip 361 drivers/net/dsa/mv88e6xxx/port.h int mv88e6352_port_get_cmode(struct mv88e6xxx_chip *chip, int port, u8 *cmode); mv88e6xxx_chip 362 drivers/net/dsa/mv88e6xxx/port.h int mv88e6185_port_link_state(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 364 drivers/net/dsa/mv88e6xxx/port.h int mv88e6250_port_link_state(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 366 drivers/net/dsa/mv88e6xxx/port.h int mv88e6352_port_link_state(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 368 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_map_da(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 369 drivers/net/dsa/mv88e6xxx/port.h int mv88e6095_port_set_upstream_port(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 372 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_disable_learn_limit(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 373 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_disable_pri_override(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 375 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_hidden_write(struct mv88e6xxx_chip *chip, int block, mv88e6xxx_chip 377 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_hidden_wait(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 378 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_hidden_read(struct mv88e6xxx_chip *chip, int block, int port, mv88e6xxx_chip 18 drivers/net/dsa/mv88e6xxx/port_hidden.c int mv88e6xxx_port_hidden_write(struct mv88e6xxx_chip *chip, int block, mv88e6xxx_chip 39 drivers/net/dsa/mv88e6xxx/port_hidden.c int mv88e6xxx_port_hidden_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 47 drivers/net/dsa/mv88e6xxx/port_hidden.c int mv88e6xxx_port_hidden_read(struct mv88e6xxx_chip *chip, int block, int port, mv88e6xxx_chip 46 drivers/net/dsa/mv88e6xxx/ptp.c #define cc_to_chip(cc) container_of(cc, struct mv88e6xxx_chip, tstamp_cc) mv88e6xxx_chip 47 drivers/net/dsa/mv88e6xxx/ptp.c #define dw_overflow_to_chip(dw) container_of(dw, struct mv88e6xxx_chip, \ mv88e6xxx_chip 49 drivers/net/dsa/mv88e6xxx/ptp.c #define dw_tai_event_to_chip(dw) container_of(dw, struct mv88e6xxx_chip, \ mv88e6xxx_chip 52 drivers/net/dsa/mv88e6xxx/ptp.c static int mv88e6xxx_tai_read(struct mv88e6xxx_chip *chip, int addr, mv88e6xxx_chip 61 drivers/net/dsa/mv88e6xxx/ptp.c static int mv88e6xxx_tai_write(struct mv88e6xxx_chip *chip, int addr, u16 data) mv88e6xxx_chip 70 drivers/net/dsa/mv88e6xxx/ptp.c static int mv88e6352_set_gpio_func(struct mv88e6xxx_chip *chip, int pin, mv88e6xxx_chip 87 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = cc_to_chip(cc); mv88e6xxx_chip 101 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = cc_to_chip(cc); mv88e6xxx_chip 119 drivers/net/dsa/mv88e6xxx/ptp.c static int mv88e6352_config_eventcap(struct mv88e6xxx_chip *chip, int event, mv88e6xxx_chip 155 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = dw_tai_event_to_chip(dw); mv88e6xxx_chip 201 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); mv88e6xxx_chip 229 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); mv88e6xxx_chip 241 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); mv88e6xxx_chip 256 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); mv88e6xxx_chip 268 drivers/net/dsa/mv88e6xxx/ptp.c static int mv88e6352_ptp_enable_extts(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 324 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = ptp_to_chip(ptp); mv88e6xxx_chip 424 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = cc_to_chip(cc); mv88e6xxx_chip 439 drivers/net/dsa/mv88e6xxx/ptp.c struct mv88e6xxx_chip *chip = dw_overflow_to_chip(dw); mv88e6xxx_chip 448 drivers/net/dsa/mv88e6xxx/ptp.c int mv88e6xxx_ptp_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 504 drivers/net/dsa/mv88e6xxx/ptp.c void mv88e6xxx_ptp_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 145 drivers/net/dsa/mv88e6xxx/ptp.h int mv88e6xxx_ptp_setup(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 146 drivers/net/dsa/mv88e6xxx/ptp.h void mv88e6xxx_ptp_free(struct mv88e6xxx_chip *chip); mv88e6xxx_chip 148 drivers/net/dsa/mv88e6xxx/ptp.h #define ptp_to_chip(ptp) container_of(ptp, struct mv88e6xxx_chip, \ mv88e6xxx_chip 162 drivers/net/dsa/mv88e6xxx/ptp.h static inline int mv88e6xxx_ptp_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 167 drivers/net/dsa/mv88e6xxx/ptp.h static inline void mv88e6xxx_ptp_free(struct mv88e6xxx_chip *chip) mv88e6xxx_chip 20 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6352_serdes_read(struct mv88e6xxx_chip *chip, int reg, mv88e6xxx_chip 28 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6352_serdes_write(struct mv88e6xxx_chip *chip, int reg, mv88e6xxx_chip 36 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6390_serdes_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 44 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6390_serdes_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 52 drivers/net/dsa/mv88e6xxx/serdes.c int mv88e6352_serdes_power(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 73 drivers/net/dsa/mv88e6xxx/serdes.c u8 mv88e6352_serdes_get_lane(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 86 drivers/net/dsa/mv88e6xxx/serdes.c static bool mv88e6352_port_has_serdes(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 105 drivers/net/dsa/mv88e6xxx/serdes.c int mv88e6352_serdes_get_sset_count(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 113 drivers/net/dsa/mv88e6xxx/serdes.c int mv88e6352_serdes_get_strings(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 130 drivers/net/dsa/mv88e6xxx/serdes.c static uint64_t mv88e6352_serdes_get_stat(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 157 drivers/net/dsa/mv88e6xxx/serdes.c int mv88e6352_serdes_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 181 drivers/net/dsa/mv88e6xxx/serdes.c static void mv88e6352_serdes_irq_link(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 205 drivers/net/dsa/mv88e6xxx/serdes.c irqreturn_t mv88e6352_serdes_irq_status(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 224 drivers/net/dsa/mv88e6xxx/serdes.c int mv88e6352_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 235 drivers/net/dsa/mv88e6xxx/serdes.c unsigned int mv88e6352_serdes_irq_mapping(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 240 drivers/net/dsa/mv88e6xxx/serdes.c u8 mv88e6341_serdes_get_lane(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 257 drivers/net/dsa/mv88e6xxx/serdes.c u8 mv88e6390_serdes_get_lane(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 280 drivers/net/dsa/mv88e6xxx/serdes.c u8 mv88e6390x_serdes_get_lane(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 356 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6390_serdes_power_10g(struct mv88e6xxx_chip *chip, u8 lane, mv88e6xxx_chip 383 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6390_serdes_power_sgmii(struct mv88e6xxx_chip *chip, u8 lane, mv88e6xxx_chip 408 drivers/net/dsa/mv88e6xxx/serdes.c int mv88e6390_serdes_power(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 426 drivers/net/dsa/mv88e6xxx/serdes.c static void mv88e6390_serdes_irq_link_sgmii(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 493 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6390_serdes_irq_enable_sgmii(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 506 drivers/net/dsa/mv88e6xxx/serdes.c int mv88e6390_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 521 drivers/net/dsa/mv88e6xxx/serdes.c static int mv88e6390_serdes_irq_status_sgmii(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 532 drivers/net/dsa/mv88e6xxx/serdes.c irqreturn_t mv88e6390_serdes_irq_status(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 557 drivers/net/dsa/mv88e6xxx/serdes.c unsigned int mv88e6390_serdes_irq_mapping(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 77 drivers/net/dsa/mv88e6xxx/serdes.h u8 mv88e6341_serdes_get_lane(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 78 drivers/net/dsa/mv88e6xxx/serdes.h u8 mv88e6352_serdes_get_lane(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 79 drivers/net/dsa/mv88e6xxx/serdes.h u8 mv88e6390_serdes_get_lane(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 80 drivers/net/dsa/mv88e6xxx/serdes.h u8 mv88e6390x_serdes_get_lane(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 81 drivers/net/dsa/mv88e6xxx/serdes.h unsigned int mv88e6352_serdes_irq_mapping(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 83 drivers/net/dsa/mv88e6xxx/serdes.h unsigned int mv88e6390_serdes_irq_mapping(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 85 drivers/net/dsa/mv88e6xxx/serdes.h int mv88e6352_serdes_power(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 87 drivers/net/dsa/mv88e6xxx/serdes.h int mv88e6390_serdes_power(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 89 drivers/net/dsa/mv88e6xxx/serdes.h int mv88e6352_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 91 drivers/net/dsa/mv88e6xxx/serdes.h int mv88e6390_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, u8 lane, mv88e6xxx_chip 93 drivers/net/dsa/mv88e6xxx/serdes.h irqreturn_t mv88e6352_serdes_irq_status(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 95 drivers/net/dsa/mv88e6xxx/serdes.h irqreturn_t mv88e6390_serdes_irq_status(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 97 drivers/net/dsa/mv88e6xxx/serdes.h int mv88e6352_serdes_get_sset_count(struct mv88e6xxx_chip *chip, int port); mv88e6xxx_chip 98 drivers/net/dsa/mv88e6xxx/serdes.h int mv88e6352_serdes_get_strings(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 100 drivers/net/dsa/mv88e6xxx/serdes.h int mv88e6352_serdes_get_stats(struct mv88e6xxx_chip *chip, int port, mv88e6xxx_chip 104 drivers/net/dsa/mv88e6xxx/serdes.h static inline u8 mv88e6xxx_serdes_get_lane(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 113 drivers/net/dsa/mv88e6xxx/serdes.h static inline int mv88e6xxx_serdes_power_up(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 122 drivers/net/dsa/mv88e6xxx/serdes.h static inline int mv88e6xxx_serdes_power_down(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 132 drivers/net/dsa/mv88e6xxx/serdes.h mv88e6xxx_serdes_irq_mapping(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_chip 140 drivers/net/dsa/mv88e6xxx/serdes.h static inline int mv88e6xxx_serdes_irq_enable(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 149 drivers/net/dsa/mv88e6xxx/serdes.h static inline int mv88e6xxx_serdes_irq_disable(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 159 drivers/net/dsa/mv88e6xxx/serdes.h mv88e6xxx_serdes_irq_status(struct mv88e6xxx_chip *chip, int port, u8 lane) mv88e6xxx_chip 29 drivers/net/dsa/mv88e6xxx/smi.c static int mv88e6xxx_smi_direct_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 43 drivers/net/dsa/mv88e6xxx/smi.c static int mv88e6xxx_smi_direct_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 55 drivers/net/dsa/mv88e6xxx/smi.c static int mv88e6xxx_smi_direct_wait(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 81 drivers/net/dsa/mv88e6xxx/smi.c static int mv88e6xxx_smi_dual_direct_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 87 drivers/net/dsa/mv88e6xxx/smi.c static int mv88e6xxx_smi_dual_direct_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 102 drivers/net/dsa/mv88e6xxx/smi.c static int mv88e6xxx_smi_indirect_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 130 drivers/net/dsa/mv88e6xxx/smi.c static int mv88e6xxx_smi_indirect_write(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 163 drivers/net/dsa/mv88e6xxx/smi.c int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 34 drivers/net/dsa/mv88e6xxx/smi.h int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 37 drivers/net/dsa/mv88e6xxx/smi.h static inline int mv88e6xxx_smi_read(struct mv88e6xxx_chip *chip, mv88e6xxx_chip 46 drivers/net/dsa/mv88e6xxx/smi.h static inline int mv88e6xxx_smi_write(struct mv88e6xxx_chip *chip,