Lines Matching refs:xgbe_prv_data

402 struct xgbe_prv_data;
526 struct xgbe_prv_data *pdata;
759 int (*set_mac_address)(struct xgbe_prv_data *, uint8_t *addr);
760 int (*config_rx_mode)(struct xgbe_prv_data *);
762 int (*enable_rx_csum)(struct xgbe_prv_data *);
763 int (*disable_rx_csum)(struct xgbe_prv_data *);
765 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *);
766 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *);
767 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *);
768 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *);
769 int (*update_vlan_hash_table)(struct xgbe_prv_data *);
771 int (*read_mmd_regs)(struct xgbe_prv_data *, int, int);
772 void (*write_mmd_regs)(struct xgbe_prv_data *, int, int, int);
773 int (*set_speed)(struct xgbe_prv_data *, int);
775 int (*set_ext_mii_mode)(struct xgbe_prv_data *, unsigned int,
777 int (*read_ext_mii_regs)(struct xgbe_prv_data *, int, int);
778 int (*write_ext_mii_regs)(struct xgbe_prv_data *, int, int, uint16_t);
780 int (*set_gpio)(struct xgbe_prv_data *, unsigned int);
781 int (*clr_gpio)(struct xgbe_prv_data *, unsigned int);
783 void (*enable_tx)(struct xgbe_prv_data *);
784 void (*disable_tx)(struct xgbe_prv_data *);
785 void (*enable_rx)(struct xgbe_prv_data *);
786 void (*disable_rx)(struct xgbe_prv_data *);
788 void (*powerup_tx)(struct xgbe_prv_data *);
789 void (*powerdown_tx)(struct xgbe_prv_data *);
790 void (*powerup_rx)(struct xgbe_prv_data *);
791 void (*powerdown_rx)(struct xgbe_prv_data *);
793 int (*init)(struct xgbe_prv_data *);
794 int (*exit)(struct xgbe_prv_data *);
806 int (*config_tx_flow_control)(struct xgbe_prv_data *);
807 int (*config_rx_flow_control)(struct xgbe_prv_data *);
810 int (*config_rx_coalesce)(struct xgbe_prv_data *);
811 int (*config_tx_coalesce)(struct xgbe_prv_data *);
812 unsigned int (*usec_to_riwt)(struct xgbe_prv_data *, unsigned int);
813 unsigned int (*riwt_to_usec)(struct xgbe_prv_data *, unsigned int);
816 int (*config_rx_threshold)(struct xgbe_prv_data *, unsigned int);
817 int (*config_tx_threshold)(struct xgbe_prv_data *, unsigned int);
820 int (*config_rsf_mode)(struct xgbe_prv_data *, unsigned int);
821 int (*config_tsf_mode)(struct xgbe_prv_data *, unsigned int);
824 int (*config_osp_mode)(struct xgbe_prv_data *);
827 void (*rx_mmc_int)(struct xgbe_prv_data *);
828 void (*tx_mmc_int)(struct xgbe_prv_data *);
829 void (*read_mmc_stats)(struct xgbe_prv_data *);
832 int (*enable_rss)(struct xgbe_prv_data *);
833 int (*disable_rss)(struct xgbe_prv_data *);
834 int (*set_rss_hash_key)(struct xgbe_prv_data *, const uint8_t *);
835 int (*set_rss_lookup_table)(struct xgbe_prv_data *, const uint32_t *);
847 int (*init)(struct xgbe_prv_data *);
848 void (*exit)(struct xgbe_prv_data *);
851 int (*reset)(struct xgbe_prv_data *);
852 int (*start)(struct xgbe_prv_data *);
853 void (*stop)(struct xgbe_prv_data *);
856 int (*link_status)(struct xgbe_prv_data *, int *);
859 bool (*valid_speed)(struct xgbe_prv_data *, int);
862 bool (*use_mode)(struct xgbe_prv_data *, enum xgbe_mode);
864 void (*set_mode)(struct xgbe_prv_data *, enum xgbe_mode);
866 enum xgbe_mode (*get_mode)(struct xgbe_prv_data *, int);
868 enum xgbe_mode (*switch_mode)(struct xgbe_prv_data *);
870 enum xgbe_mode (*cur_mode)(struct xgbe_prv_data *);
872 void (*get_type)(struct xgbe_prv_data *, struct ifmediareq *);
875 enum xgbe_an_mode (*an_mode)(struct xgbe_prv_data *);
878 int (*an_config)(struct xgbe_prv_data *);
881 void (*an_advertising)(struct xgbe_prv_data *,
885 enum xgbe_mode (*an_outcome)(struct xgbe_prv_data *);
888 void (*an_pre)(struct xgbe_prv_data *);
889 void (*an_post)(struct xgbe_prv_data *);
892 void (*kr_training_pre)(struct xgbe_prv_data *);
893 void (*kr_training_post)(struct xgbe_prv_data *);
896 int (*module_info)(struct xgbe_prv_data *pdata);
897 int (*module_eeprom)(struct xgbe_prv_data *pdata);
902 int (*phy_init)(struct xgbe_prv_data *);
903 void (*phy_exit)(struct xgbe_prv_data *);
906 int (*phy_reset)(struct xgbe_prv_data *);
907 int (*phy_start)(struct xgbe_prv_data *);
908 void (*phy_stop)(struct xgbe_prv_data *);
911 void (*phy_status)(struct xgbe_prv_data *);
912 int (*phy_config_aneg)(struct xgbe_prv_data *);
915 bool (*phy_valid_speed)(struct xgbe_prv_data *, int);
918 void (*an_isr)(struct xgbe_prv_data *);
926 int (*i2c_init)(struct xgbe_prv_data *);
929 int (*i2c_start)(struct xgbe_prv_data *);
930 void (*i2c_stop)(struct xgbe_prv_data *);
933 int (*i2c_xfer)(struct xgbe_prv_data *, struct xgbe_i2c_op *);
936 void (*i2c_isr)(struct xgbe_prv_data *);
940 int (*alloc_ring_resources)(struct xgbe_prv_data *);
941 void (*free_ring_resources)(struct xgbe_prv_data *);
943 int (*map_rx_buffer)(struct xgbe_prv_data *, struct xgbe_ring *,
945 void (*unmap_rdata)(struct xgbe_prv_data *, struct xgbe_ring_data *);
946 void (*wrapper_tx_desc_init)(struct xgbe_prv_data *);
947 void (*wrapper_rx_desc_init)(struct xgbe_prv_data *);
1012 struct xgbe_prv_data { struct
1309 struct xgbe_prv_data pdata; argument
1325 void xgbe_get_all_hw_features(struct xgbe_prv_data *);
1326 void xgbe_init_rx_coalesce(struct xgbe_prv_data *);
1327 void xgbe_init_tx_coalesce(struct xgbe_prv_data *);
1331 void axgbe_sysctl_init(struct xgbe_prv_data *pdata);
1332 void axgbe_sysctl_exit(struct xgbe_prv_data *pdata);
1334 int xgbe_phy_mii_write(struct xgbe_prv_data *pdata, int addr, int reg,
1336 int xgbe_phy_mii_read(struct xgbe_prv_data *pdata, int addr, int reg);
1338 void xgbe_dump_i2c_registers(struct xgbe_prv_data *);