• Home
  • Raw
  • Download

Lines Matching refs:mv88e6xxx_chip

258 	struct mv88e6xxx_chip *chip;
290 struct mv88e6xxx_chip { struct
393 int (*read)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val); argument
394 int (*write)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val);
399 struct mv88e6xxx_chip *chip;
408 int (*setup_errata)(struct mv88e6xxx_chip *chip);
410 int (*ieee_pri_map)(struct mv88e6xxx_chip *chip);
411 int (*ip_pri_map)(struct mv88e6xxx_chip *chip);
414 int (*irl_init_all)(struct mv88e6xxx_chip *chip, int port);
416 int (*get_eeprom)(struct mv88e6xxx_chip *chip,
418 int (*set_eeprom)(struct mv88e6xxx_chip *chip,
421 int (*set_switch_mac)(struct mv88e6xxx_chip *chip, u8 *addr);
423 int (*phy_read)(struct mv88e6xxx_chip *chip,
426 int (*phy_write)(struct mv88e6xxx_chip *chip,
431 int (*pot_clear)(struct mv88e6xxx_chip *chip);
434 int (*ppu_enable)(struct mv88e6xxx_chip *chip);
435 int (*ppu_disable)(struct mv88e6xxx_chip *chip);
438 int (*reset)(struct mv88e6xxx_chip *chip);
443 int (*port_set_rgmii_delay)(struct mv88e6xxx_chip *chip, int port,
454 int (*port_set_link)(struct mv88e6xxx_chip *chip, int port, int link);
458 int (*port_sync_link)(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup);
464 int (*port_set_pause)(struct mv88e6xxx_chip *chip, int port,
479 int (*port_set_speed_duplex)(struct mv88e6xxx_chip *chip, int port,
485 int (*port_tag_remap)(struct mv88e6xxx_chip *chip, int port);
487 int (*port_set_policy)(struct mv88e6xxx_chip *chip, int port,
491 int (*port_set_frame_mode)(struct mv88e6xxx_chip *chip, int port,
493 int (*port_set_ucast_flood)(struct mv88e6xxx_chip *chip, int port,
495 int (*port_set_mcast_flood)(struct mv88e6xxx_chip *chip, int port,
497 int (*port_set_ether_type)(struct mv88e6xxx_chip *chip, int port,
499 int (*port_set_jumbo_size)(struct mv88e6xxx_chip *chip, int port,
502 int (*port_egress_rate_limiting)(struct mv88e6xxx_chip *chip, int port);
503 int (*port_pause_limit)(struct mv88e6xxx_chip *chip, int port, u8 in,
505 int (*port_disable_learn_limit)(struct mv88e6xxx_chip *chip, int port);
506 int (*port_disable_pri_override)(struct mv88e6xxx_chip *chip, int port);
507 int (*port_setup_message_port)(struct mv88e6xxx_chip *chip, int port);
512 int (*port_set_cmode)(struct mv88e6xxx_chip *chip, int port,
514 int (*port_get_cmode)(struct mv88e6xxx_chip *chip, int port, u8 *cmode);
519 int (*port_set_upstream_port)(struct mv88e6xxx_chip *chip, int port,
525 int (*stats_snapshot)(struct mv88e6xxx_chip *chip, int port);
530 int (*stats_set_histogram)(struct mv88e6xxx_chip *chip);
533 int (*stats_get_sset_count)(struct mv88e6xxx_chip *chip);
534 int (*stats_get_strings)(struct mv88e6xxx_chip *chip, uint8_t *data);
535 int (*stats_get_stats)(struct mv88e6xxx_chip *chip, int port,
537 int (*set_cpu_port)(struct mv88e6xxx_chip *chip, int port);
538 int (*set_egress_port)(struct mv88e6xxx_chip *chip,
545 int (*set_cascade_port)(struct mv88e6xxx_chip *chip, int port);
549 int (*mgmt_rsvd2cpu)(struct mv88e6xxx_chip *chip);
552 int (*serdes_power)(struct mv88e6xxx_chip *chip, int port, int lane,
556 int (*serdes_get_lane)(struct mv88e6xxx_chip *chip, int port);
558 int (*serdes_pcs_get_state)(struct mv88e6xxx_chip *chip, int port,
560 int (*serdes_pcs_config)(struct mv88e6xxx_chip *chip, int port,
564 int (*serdes_pcs_an_restart)(struct mv88e6xxx_chip *chip, int port,
566 int (*serdes_pcs_link_up)(struct mv88e6xxx_chip *chip, int port,
570 unsigned int (*serdes_irq_mapping)(struct mv88e6xxx_chip *chip,
572 int (*serdes_irq_enable)(struct mv88e6xxx_chip *chip, int port, int lane,
574 irqreturn_t (*serdes_irq_status)(struct mv88e6xxx_chip *chip, int port,
578 int (*serdes_get_sset_count)(struct mv88e6xxx_chip *chip, int port);
579 int (*serdes_get_strings)(struct mv88e6xxx_chip *chip, int port,
581 size_t (*serdes_get_stats)(struct mv88e6xxx_chip *chip, int port,
585 int (*serdes_get_regs_len)(struct mv88e6xxx_chip *chip, int port);
586 void (*serdes_get_regs)(struct mv88e6xxx_chip *chip, int port,
590 int (*atu_get_hash)(struct mv88e6xxx_chip *chip, u8 *hash);
591 int (*atu_set_hash)(struct mv88e6xxx_chip *chip, u8 hash);
594 int (*vtu_getnext)(struct mv88e6xxx_chip *chip,
596 int (*vtu_loadpurge)(struct mv88e6xxx_chip *chip,
606 int (*rmu_disable)(struct mv88e6xxx_chip *chip);
612 void (*phylink_validate)(struct mv88e6xxx_chip *chip, int port,
617 int (*set_max_frame_size)(struct mv88e6xxx_chip *chip, int mtu);
622 int (*irq_action)(struct mv88e6xxx_chip *chip, int irq);
624 int (*irq_setup)(struct mv88e6xxx_chip *chip);
626 void (*irq_free)(struct mv88e6xxx_chip *chip);
631 int (*get_data)(struct mv88e6xxx_chip *chip, unsigned int pin);
632 int (*set_data)(struct mv88e6xxx_chip *chip, unsigned int pin,
636 int (*get_dir)(struct mv88e6xxx_chip *chip, unsigned int pin);
637 int (*set_dir)(struct mv88e6xxx_chip *chip, unsigned int pin,
641 int (*get_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin,
643 int (*set_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin,
649 int (*port_ptp_read)(struct mv88e6xxx_chip *chip, int port, int addr,
651 int (*port_ptp_write)(struct mv88e6xxx_chip *chip, int port, int addr,
655 int (*ptp_read)(struct mv88e6xxx_chip *chip, int addr, u16 *data,
657 int (*ptp_write)(struct mv88e6xxx_chip *chip, int addr, u16 data);
660 int (*tai_read)(struct mv88e6xxx_chip *chip, int addr, u16 *data,
662 int (*tai_write)(struct mv88e6xxx_chip *chip, int addr, u16 data);
672 int (*port_enable)(struct mv88e6xxx_chip *chip, int port);
673 int (*port_disable)(struct mv88e6xxx_chip *chip, int port);
674 int (*global_enable)(struct mv88e6xxx_chip *chip);
675 int (*global_disable)(struct mv88e6xxx_chip *chip);
698 static inline bool mv88e6xxx_has_pvt(struct mv88e6xxx_chip *chip) in mv88e6xxx_has_pvt()
703 static inline bool mv88e6xxx_has_lag(struct mv88e6xxx_chip *chip) in mv88e6xxx_has_lag()
708 static inline unsigned int mv88e6xxx_num_databases(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_databases()
713 static inline unsigned int mv88e6xxx_num_macs(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_macs()
718 static inline unsigned int mv88e6xxx_num_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_ports()
723 static inline unsigned int mv88e6xxx_max_vid(struct mv88e6xxx_chip *chip) in mv88e6xxx_max_vid()
728 static inline u16 mv88e6xxx_port_mask(struct mv88e6xxx_chip *chip) in mv88e6xxx_port_mask()
733 static inline unsigned int mv88e6xxx_num_gpio(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_gpio()
738 static inline bool mv88e6xxx_is_invalid_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_is_invalid_port()
743 int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val);
744 int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val);
745 int mv88e6xxx_wait_mask(struct mv88e6xxx_chip *chip, int addr, int reg,
747 int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg,
749 struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip);
751 static inline void mv88e6xxx_reg_lock(struct mv88e6xxx_chip *chip) in mv88e6xxx_reg_lock()
756 static inline void mv88e6xxx_reg_unlock(struct mv88e6xxx_chip *chip) in mv88e6xxx_reg_unlock()
761 int mv88e6xxx_fid_map(struct mv88e6xxx_chip *chip, unsigned long *bitmap);