Lines Matching refs:xgbe_prv_data
400 struct xgbe_prv_data;
524 struct xgbe_prv_data *pdata;
757 int (*set_mac_address)(struct xgbe_prv_data *, uint8_t *addr);
758 int (*config_rx_mode)(struct xgbe_prv_data *);
760 int (*enable_rx_csum)(struct xgbe_prv_data *);
761 int (*disable_rx_csum)(struct xgbe_prv_data *);
763 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *);
764 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *);
765 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *);
766 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *);
767 int (*update_vlan_hash_table)(struct xgbe_prv_data *);
769 int (*read_mmd_regs)(struct xgbe_prv_data *, int, int);
770 void (*write_mmd_regs)(struct xgbe_prv_data *, int, int, int);
771 int (*set_speed)(struct xgbe_prv_data *, int);
773 int (*set_ext_mii_mode)(struct xgbe_prv_data *, unsigned int,
775 int (*read_ext_mii_regs)(struct xgbe_prv_data *, int, int);
776 int (*write_ext_mii_regs)(struct xgbe_prv_data *, int, int, uint16_t);
778 int (*set_gpio)(struct xgbe_prv_data *, unsigned int);
779 int (*clr_gpio)(struct xgbe_prv_data *, unsigned int);
781 void (*enable_tx)(struct xgbe_prv_data *);
782 void (*disable_tx)(struct xgbe_prv_data *);
783 void (*enable_rx)(struct xgbe_prv_data *);
784 void (*disable_rx)(struct xgbe_prv_data *);
786 void (*powerup_tx)(struct xgbe_prv_data *);
787 void (*powerdown_tx)(struct xgbe_prv_data *);
788 void (*powerup_rx)(struct xgbe_prv_data *);
789 void (*powerdown_rx)(struct xgbe_prv_data *);
791 int (*init)(struct xgbe_prv_data *);
792 int (*exit)(struct xgbe_prv_data *);
804 int (*config_tx_flow_control)(struct xgbe_prv_data *);
805 int (*config_rx_flow_control)(struct xgbe_prv_data *);
808 int (*config_rx_coalesce)(struct xgbe_prv_data *);
809 int (*config_tx_coalesce)(struct xgbe_prv_data *);
810 unsigned int (*usec_to_riwt)(struct xgbe_prv_data *, unsigned int);
811 unsigned int (*riwt_to_usec)(struct xgbe_prv_data *, unsigned int);
814 int (*config_rx_threshold)(struct xgbe_prv_data *, unsigned int);
815 int (*config_tx_threshold)(struct xgbe_prv_data *, unsigned int);
818 int (*config_rsf_mode)(struct xgbe_prv_data *, unsigned int);
819 int (*config_tsf_mode)(struct xgbe_prv_data *, unsigned int);
822 int (*config_osp_mode)(struct xgbe_prv_data *);
825 void (*rx_mmc_int)(struct xgbe_prv_data *);
826 void (*tx_mmc_int)(struct xgbe_prv_data *);
827 void (*read_mmc_stats)(struct xgbe_prv_data *);
830 int (*enable_rss)(struct xgbe_prv_data *);
831 int (*disable_rss)(struct xgbe_prv_data *);
832 int (*set_rss_hash_key)(struct xgbe_prv_data *, const uint8_t *);
833 int (*set_rss_lookup_table)(struct xgbe_prv_data *, const uint32_t *);
845 int (*init)(struct xgbe_prv_data *);
846 void (*exit)(struct xgbe_prv_data *);
849 int (*reset)(struct xgbe_prv_data *);
850 int (*start)(struct xgbe_prv_data *);
851 void (*stop)(struct xgbe_prv_data *);
854 int (*link_status)(struct xgbe_prv_data *, int *);
857 bool (*valid_speed)(struct xgbe_prv_data *, int);
860 bool (*use_mode)(struct xgbe_prv_data *, enum xgbe_mode);
862 void (*set_mode)(struct xgbe_prv_data *, enum xgbe_mode);
864 enum xgbe_mode (*get_mode)(struct xgbe_prv_data *, int);
866 enum xgbe_mode (*switch_mode)(struct xgbe_prv_data *);
868 enum xgbe_mode (*cur_mode)(struct xgbe_prv_data *);
870 void (*get_type)(struct xgbe_prv_data *, struct ifmediareq *);
873 enum xgbe_an_mode (*an_mode)(struct xgbe_prv_data *);
876 int (*an_config)(struct xgbe_prv_data *);
879 void (*an_advertising)(struct xgbe_prv_data *,
883 enum xgbe_mode (*an_outcome)(struct xgbe_prv_data *);
886 void (*an_pre)(struct xgbe_prv_data *);
887 void (*an_post)(struct xgbe_prv_data *);
890 void (*kr_training_pre)(struct xgbe_prv_data *);
891 void (*kr_training_post)(struct xgbe_prv_data *);
894 int (*module_info)(struct xgbe_prv_data *pdata);
895 int (*module_eeprom)(struct xgbe_prv_data *pdata);
900 int (*phy_init)(struct xgbe_prv_data *);
901 void (*phy_exit)(struct xgbe_prv_data *);
904 int (*phy_reset)(struct xgbe_prv_data *);
905 int (*phy_start)(struct xgbe_prv_data *);
906 void (*phy_stop)(struct xgbe_prv_data *);
909 void (*phy_status)(struct xgbe_prv_data *);
910 int (*phy_config_aneg)(struct xgbe_prv_data *);
913 bool (*phy_valid_speed)(struct xgbe_prv_data *, int);
916 void (*an_isr)(struct xgbe_prv_data *);
924 int (*i2c_init)(struct xgbe_prv_data *);
927 int (*i2c_start)(struct xgbe_prv_data *);
928 void (*i2c_stop)(struct xgbe_prv_data *);
931 int (*i2c_xfer)(struct xgbe_prv_data *, struct xgbe_i2c_op *);
934 void (*i2c_isr)(struct xgbe_prv_data *);
938 int (*alloc_ring_resources)(struct xgbe_prv_data *);
939 void (*free_ring_resources)(struct xgbe_prv_data *);
941 int (*map_rx_buffer)(struct xgbe_prv_data *, struct xgbe_ring *,
943 void (*unmap_rdata)(struct xgbe_prv_data *, struct xgbe_ring_data *);
944 void (*wrapper_tx_desc_init)(struct xgbe_prv_data *);
945 void (*wrapper_rx_desc_init)(struct xgbe_prv_data *);
1010 struct xgbe_prv_data { struct
1307 struct xgbe_prv_data pdata; argument
1323 void xgbe_get_all_hw_features(struct xgbe_prv_data *);
1324 void xgbe_init_rx_coalesce(struct xgbe_prv_data *);
1325 void xgbe_init_tx_coalesce(struct xgbe_prv_data *);
1329 void axgbe_sysctl_init(struct xgbe_prv_data *pdata);
1330 void axgbe_sysctl_exit(struct xgbe_prv_data *pdata);
1332 int xgbe_phy_mii_write(struct xgbe_prv_data *pdata, int addr, int reg,
1334 int xgbe_phy_mii_read(struct xgbe_prv_data *pdata, int addr, int reg);
1336 void xgbe_dump_i2c_registers(struct xgbe_prv_data *);