Lines Matching full:int
101 unsigned int num_databases;
102 unsigned int num_macs;
103 unsigned int num_ports;
104 unsigned int num_internal_phys;
105 unsigned int num_gpio;
106 unsigned int max_vid;
107 unsigned int port_base_addr;
108 unsigned int phy_base_addr;
109 unsigned int global1_addr;
110 unsigned int global2_addr;
111 unsigned int age_time_coeff;
112 unsigned int g1_irqs;
113 unsigned int g2_irqs;
120 unsigned int invalid_port_mask;
170 int nirqs;
181 int port_id;
222 int port;
228 int port;
239 unsigned int serdes_irq;
273 int sw_addr;
280 int ppu_disabled;
309 int irq;
311 int device_irq;
313 int watchdog_irq;
316 int atu_prob_irq;
318 int vtu_prob_irq;
342 int egress_dest_port;
343 int ingress_dest_port;
356 int (*read)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val);
357 int (*write)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val);
371 int (*setup_errata)(struct mv88e6xxx_chip *chip);
373 int (*ieee_pri_map)(struct mv88e6xxx_chip *chip);
374 int (*ip_pri_map)(struct mv88e6xxx_chip *chip);
377 int (*irl_init_all)(struct mv88e6xxx_chip *chip, int port);
379 int (*get_eeprom)(struct mv88e6xxx_chip *chip,
381 int (*set_eeprom)(struct mv88e6xxx_chip *chip,
384 int (*set_switch_mac)(struct mv88e6xxx_chip *chip, u8 *addr);
386 int (*phy_read)(struct mv88e6xxx_chip *chip,
388 int addr, int reg, u16 *val);
389 int (*phy_write)(struct mv88e6xxx_chip *chip,
391 int addr, int reg, u16 val);
394 int (*pot_clear)(struct mv88e6xxx_chip *chip);
397 int (*ppu_enable)(struct mv88e6xxx_chip *chip);
398 int (*ppu_disable)(struct mv88e6xxx_chip *chip);
401 int (*reset)(struct mv88e6xxx_chip *chip);
406 int (*port_set_rgmii_delay)(struct mv88e6xxx_chip *chip, int port,
417 int (*port_set_link)(struct mv88e6xxx_chip *chip, int port, int link);
423 int (*port_set_pause)(struct mv88e6xxx_chip *chip, int port,
424 int pause);
438 int (*port_set_speed_duplex)(struct mv88e6xxx_chip *chip, int port,
439 int speed, int duplex);
442 phy_interface_t (*port_max_speed_mode)(int port);
444 int (*port_tag_remap)(struct mv88e6xxx_chip *chip, int port);
446 int (*port_set_policy)(struct mv88e6xxx_chip *chip, int port,
450 int (*port_set_frame_mode)(struct mv88e6xxx_chip *chip, int port,
452 int (*port_set_egress_floods)(struct mv88e6xxx_chip *chip, int port,
454 int (*port_set_ether_type)(struct mv88e6xxx_chip *chip, int port,
456 int (*port_set_jumbo_size)(struct mv88e6xxx_chip *chip, int port,
459 int (*port_egress_rate_limiting)(struct mv88e6xxx_chip *chip, int port);
460 int (*port_pause_limit)(struct mv88e6xxx_chip *chip, int port, u8 in,
462 int (*port_disable_learn_limit)(struct mv88e6xxx_chip *chip, int port);
463 int (*port_disable_pri_override)(struct mv88e6xxx_chip *chip, int port);
464 int (*port_setup_message_port)(struct mv88e6xxx_chip *chip, int port);
469 int (*port_set_cmode)(struct mv88e6xxx_chip *chip, int port,
471 int (*port_get_cmode)(struct mv88e6xxx_chip *chip, int port, u8 *cmode);
476 int (*port_set_upstream_port)(struct mv88e6xxx_chip *chip, int port,
477 int upstream_port);
482 int (*stats_snapshot)(struct mv88e6xxx_chip *chip, int port);
487 int (*stats_set_histogram)(struct mv88e6xxx_chip *chip);
490 int (*stats_get_sset_count)(struct mv88e6xxx_chip *chip);
491 int (*stats_get_strings)(struct mv88e6xxx_chip *chip, uint8_t *data);
492 int (*stats_get_stats)(struct mv88e6xxx_chip *chip, int port,
494 int (*set_cpu_port)(struct mv88e6xxx_chip *chip, int port);
495 int (*set_egress_port)(struct mv88e6xxx_chip *chip,
497 int port);
502 int (*set_cascade_port)(struct mv88e6xxx_chip *chip, int port);
506 int (*mgmt_rsvd2cpu)(struct mv88e6xxx_chip *chip);
509 int (*serdes_power)(struct mv88e6xxx_chip *chip, int port, u8 lane,
513 u8 (*serdes_get_lane)(struct mv88e6xxx_chip *chip, int port);
515 int (*serdes_pcs_get_state)(struct mv88e6xxx_chip *chip, int port,
517 int (*serdes_pcs_config)(struct mv88e6xxx_chip *chip, int port,
518 u8 lane, unsigned int mode,
521 int (*serdes_pcs_an_restart)(struct mv88e6xxx_chip *chip, int port,
523 int (*serdes_pcs_link_up)(struct mv88e6xxx_chip *chip, int port,
524 u8 lane, int speed, int duplex);
527 unsigned int (*serdes_irq_mapping)(struct mv88e6xxx_chip *chip,
528 int port);
529 int (*serdes_irq_enable)(struct mv88e6xxx_chip *chip, int port, u8 lane,
531 irqreturn_t (*serdes_irq_status)(struct mv88e6xxx_chip *chip, int port,
535 int (*serdes_get_sset_count)(struct mv88e6xxx_chip *chip, int port);
536 int (*serdes_get_strings)(struct mv88e6xxx_chip *chip, int port,
538 int (*serdes_get_stats)(struct mv88e6xxx_chip *chip, int port,
542 int (*serdes_get_regs_len)(struct mv88e6xxx_chip *chip, int port);
543 void (*serdes_get_regs)(struct mv88e6xxx_chip *chip, int port,
547 int (*atu_get_hash)(struct mv88e6xxx_chip *chip, u8 *hash);
548 int (*atu_set_hash)(struct mv88e6xxx_chip *chip, u8 hash);
551 int (*vtu_getnext)(struct mv88e6xxx_chip *chip,
553 int (*vtu_loadpurge)(struct mv88e6xxx_chip *chip,
563 int (*rmu_disable)(struct mv88e6xxx_chip *chip);
569 void (*phylink_validate)(struct mv88e6xxx_chip *chip, int port,
574 int (*set_max_frame_size)(struct mv88e6xxx_chip *chip, int mtu);
579 int (*irq_action)(struct mv88e6xxx_chip *chip, int irq);
581 int (*irq_setup)(struct mv88e6xxx_chip *chip);
588 int (*get_data)(struct mv88e6xxx_chip *chip, unsigned int pin);
589 int (*set_data)(struct mv88e6xxx_chip *chip, unsigned int pin,
590 int value);
593 int (*get_dir)(struct mv88e6xxx_chip *chip, unsigned int pin);
594 int (*set_dir)(struct mv88e6xxx_chip *chip, unsigned int pin,
598 int (*get_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin,
599 int *func);
600 int (*set_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin,
601 int func);
606 int (*port_ptp_read)(struct mv88e6xxx_chip *chip, int port, int addr,
607 u16 *data, int len);
608 int (*port_ptp_write)(struct mv88e6xxx_chip *chip, int port, int addr,
612 int (*ptp_read)(struct mv88e6xxx_chip *chip, int addr, u16 *data,
613 int len);
614 int (*ptp_write)(struct mv88e6xxx_chip *chip, int addr, u16 data);
617 int (*tai_read)(struct mv88e6xxx_chip *chip, int addr, u16 *data,
618 int len);
619 int (*tai_write)(struct mv88e6xxx_chip *chip, int addr, u16 data);
624 int (*ptp_enable)(struct ptp_clock_info *ptp,
625 struct ptp_clock_request *rq, int on);
626 int (*ptp_verify)(struct ptp_clock_info *ptp, unsigned int pin,
627 enum ptp_pin_function func, unsigned int chan);
629 int (*port_enable)(struct mv88e6xxx_chip *chip, int port);
630 int (*port_disable)(struct mv88e6xxx_chip *chip, int port);
631 int (*global_enable)(struct mv88e6xxx_chip *chip);
632 int (*global_disable)(struct mv88e6xxx_chip *chip);
633 int n_ext_ts;
634 int arr0_sts_reg;
635 int arr1_sts_reg;
636 int dep_sts_reg;
651 int reg;
652 int type;
660 static inline unsigned int mv88e6xxx_num_databases(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_databases()
665 static inline unsigned int mv88e6xxx_num_macs(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_macs()
670 static inline unsigned int mv88e6xxx_num_ports(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_ports()
680 static inline unsigned int mv88e6xxx_num_gpio(struct mv88e6xxx_chip *chip) in mv88e6xxx_num_gpio()
685 static inline bool mv88e6xxx_is_invalid_port(struct mv88e6xxx_chip *chip, int port) in mv88e6xxx_is_invalid_port()
690 int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val);
691 int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val);
692 int mv88e6xxx_wait_mask(struct mv88e6xxx_chip *chip, int addr, int reg,
694 int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg,
695 int bit, int val);
708 int mv88e6xxx_fid_map(struct mv88e6xxx_chip *chip, unsigned long *bitmap);