Lines Matching defs:mv88e6xxx_ops
368 struct mv88e6xxx_ops { struct
372 int (*setup_errata)(struct mv88e6xxx_chip *chip);
374 int (*ieee_pri_map)(struct mv88e6xxx_chip *chip);
375 int (*ip_pri_map)(struct mv88e6xxx_chip *chip);
378 int (*irl_init_all)(struct mv88e6xxx_chip *chip, int port);
380 int (*get_eeprom)(struct mv88e6xxx_chip *chip,
382 int (*set_eeprom)(struct mv88e6xxx_chip *chip,
385 int (*set_switch_mac)(struct mv88e6xxx_chip *chip, u8 *addr);
387 int (*phy_read)(struct mv88e6xxx_chip *chip,
390 int (*phy_write)(struct mv88e6xxx_chip *chip,
395 int (*pot_clear)(struct mv88e6xxx_chip *chip);
398 int (*ppu_enable)(struct mv88e6xxx_chip *chip);
399 int (*ppu_disable)(struct mv88e6xxx_chip *chip);
402 int (*reset)(struct mv88e6xxx_chip *chip);
407 int (*port_set_rgmii_delay)(struct mv88e6xxx_chip *chip, int port,
418 int (*port_set_link)(struct mv88e6xxx_chip *chip, int port, int link);
424 int (*port_set_pause)(struct mv88e6xxx_chip *chip, int port,
439 int (*port_set_speed_duplex)(struct mv88e6xxx_chip *chip, int port,
443 phy_interface_t (*port_max_speed_mode)(int port);
445 int (*port_tag_remap)(struct mv88e6xxx_chip *chip, int port);
447 int (*port_set_policy)(struct mv88e6xxx_chip *chip, int port,
451 int (*port_set_frame_mode)(struct mv88e6xxx_chip *chip, int port,
453 int (*port_set_egress_floods)(struct mv88e6xxx_chip *chip, int port,
455 int (*port_set_ether_type)(struct mv88e6xxx_chip *chip, int port,
457 int (*port_set_jumbo_size)(struct mv88e6xxx_chip *chip, int port,
460 int (*port_egress_rate_limiting)(struct mv88e6xxx_chip *chip, int port);
461 int (*port_pause_limit)(struct mv88e6xxx_chip *chip, int port, u8 in,
463 int (*port_disable_learn_limit)(struct mv88e6xxx_chip *chip, int port);
464 int (*port_disable_pri_override)(struct mv88e6xxx_chip *chip, int port);
465 int (*port_setup_message_port)(struct mv88e6xxx_chip *chip, int port);
470 int (*port_set_cmode)(struct mv88e6xxx_chip *chip, int port,
472 int (*port_get_cmode)(struct mv88e6xxx_chip *chip, int port, u8 *cmode);
477 int (*port_set_upstream_port)(struct mv88e6xxx_chip *chip, int port,
483 int (*stats_snapshot)(struct mv88e6xxx_chip *chip, int port);
488 int (*stats_set_histogram)(struct mv88e6xxx_chip *chip);
491 int (*stats_get_sset_count)(struct mv88e6xxx_chip *chip);
492 int (*stats_get_strings)(struct mv88e6xxx_chip *chip, uint8_t *data);
493 int (*stats_get_stats)(struct mv88e6xxx_chip *chip, int port,
495 int (*set_cpu_port)(struct mv88e6xxx_chip *chip, int port);
496 int (*set_egress_port)(struct mv88e6xxx_chip *chip,
503 int (*set_cascade_port)(struct mv88e6xxx_chip *chip, int port);
505 const struct mv88e6xxx_irq_ops *watchdog_ops;
507 int (*mgmt_rsvd2cpu)(struct mv88e6xxx_chip *chip);
510 int (*serdes_power)(struct mv88e6xxx_chip *chip, int port, u8 lane,
514 u8 (*serdes_get_lane)(struct mv88e6xxx_chip *chip, int port);
516 int (*serdes_pcs_get_state)(struct mv88e6xxx_chip *chip, int port,
518 int (*serdes_pcs_config)(struct mv88e6xxx_chip *chip, int port,
522 int (*serdes_pcs_an_restart)(struct mv88e6xxx_chip *chip, int port,
524 int (*serdes_pcs_link_up)(struct mv88e6xxx_chip *chip, int port,
528 unsigned int (*serdes_irq_mapping)(struct mv88e6xxx_chip *chip,
530 int (*serdes_irq_enable)(struct mv88e6xxx_chip *chip, int port, u8 lane,
532 irqreturn_t (*serdes_irq_status)(struct mv88e6xxx_chip *chip, int port,
536 int (*serdes_get_sset_count)(struct mv88e6xxx_chip *chip, int port);
537 int (*serdes_get_strings)(struct mv88e6xxx_chip *chip, int port,
539 size_t (*serdes_get_stats)(struct mv88e6xxx_chip *chip, int port,
543 int (*serdes_get_regs_len)(struct mv88e6xxx_chip *chip, int port);
544 void (*serdes_get_regs)(struct mv88e6xxx_chip *chip, int port,
548 int (*atu_get_hash)(struct mv88e6xxx_chip *chip, u8 *hash);
549 int (*atu_set_hash)(struct mv88e6xxx_chip *chip, u8 hash);
552 int (*vtu_getnext)(struct mv88e6xxx_chip *chip,
554 int (*vtu_loadpurge)(struct mv88e6xxx_chip *chip,
558 const struct mv88e6xxx_gpio_ops *gpio_ops;
561 const struct mv88e6xxx_avb_ops *avb_ops;
564 int (*rmu_disable)(struct mv88e6xxx_chip *chip);
567 const struct mv88e6xxx_ptp_ops *ptp_ops;
570 void (*phylink_validate)(struct mv88e6xxx_chip *chip, int port,
575 int (*set_max_frame_size)(struct mv88e6xxx_chip *chip, int mtu);