Lines Matching refs:xgbe_prv_data

348 struct xgbe_prv_data;
499 struct xgbe_prv_data *pdata;
758 int (*set_mac_address)(struct xgbe_prv_data *, const u8 *addr);
759 int (*config_rx_mode)(struct xgbe_prv_data *);
761 int (*enable_rx_csum)(struct xgbe_prv_data *);
762 int (*disable_rx_csum)(struct xgbe_prv_data *);
764 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *);
765 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *);
766 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *);
767 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *);
768 int (*update_vlan_hash_table)(struct xgbe_prv_data *);
770 int (*read_mmd_regs)(struct xgbe_prv_data *, int, int);
771 void (*write_mmd_regs)(struct xgbe_prv_data *, int, int, int);
772 int (*set_speed)(struct xgbe_prv_data *, int);
774 int (*set_ext_mii_mode)(struct xgbe_prv_data *, unsigned int,
776 int (*read_ext_mii_regs)(struct xgbe_prv_data *, int, int);
777 int (*write_ext_mii_regs)(struct xgbe_prv_data *, int, int, u16);
779 int (*set_gpio)(struct xgbe_prv_data *, unsigned int);
780 int (*clr_gpio)(struct xgbe_prv_data *, unsigned int);
782 void (*enable_tx)(struct xgbe_prv_data *);
783 void (*disable_tx)(struct xgbe_prv_data *);
784 void (*enable_rx)(struct xgbe_prv_data *);
785 void (*disable_rx)(struct xgbe_prv_data *);
787 void (*powerup_tx)(struct xgbe_prv_data *);
788 void (*powerdown_tx)(struct xgbe_prv_data *);
789 void (*powerup_rx)(struct xgbe_prv_data *);
790 void (*powerdown_rx)(struct xgbe_prv_data *);
792 int (*init)(struct xgbe_prv_data *);
793 int (*exit)(struct xgbe_prv_data *);
802 void (*rx_desc_reset)(struct xgbe_prv_data *, struct xgbe_ring_data *,
809 int (*config_tx_flow_control)(struct xgbe_prv_data *);
810 int (*config_rx_flow_control)(struct xgbe_prv_data *);
813 int (*config_rx_coalesce)(struct xgbe_prv_data *);
814 int (*config_tx_coalesce)(struct xgbe_prv_data *);
815 unsigned int (*usec_to_riwt)(struct xgbe_prv_data *, unsigned int);
816 unsigned int (*riwt_to_usec)(struct xgbe_prv_data *, unsigned int);
819 int (*config_rx_threshold)(struct xgbe_prv_data *, unsigned int);
820 int (*config_tx_threshold)(struct xgbe_prv_data *, unsigned int);
823 int (*config_rsf_mode)(struct xgbe_prv_data *, unsigned int);
824 int (*config_tsf_mode)(struct xgbe_prv_data *, unsigned int);
827 int (*config_osp_mode)(struct xgbe_prv_data *);
830 void (*rx_mmc_int)(struct xgbe_prv_data *);
831 void (*tx_mmc_int)(struct xgbe_prv_data *);
832 void (*read_mmc_stats)(struct xgbe_prv_data *);
835 int (*config_tstamp)(struct xgbe_prv_data *, unsigned int);
836 void (*update_tstamp_addend)(struct xgbe_prv_data *, unsigned int);
837 void (*set_tstamp_time)(struct xgbe_prv_data *, unsigned int sec,
839 u64 (*get_tstamp_time)(struct xgbe_prv_data *);
840 u64 (*get_tx_tstamp)(struct xgbe_prv_data *);
843 void (*config_tc)(struct xgbe_prv_data *);
844 void (*config_dcb_tc)(struct xgbe_prv_data *);
845 void (*config_dcb_pfc)(struct xgbe_prv_data *);
848 int (*enable_rss)(struct xgbe_prv_data *);
849 int (*disable_rss)(struct xgbe_prv_data *);
850 int (*set_rss_hash_key)(struct xgbe_prv_data *, const u8 *);
851 int (*set_rss_lookup_table)(struct xgbe_prv_data *, const u32 *);
854 void (*disable_ecc_ded)(struct xgbe_prv_data *);
855 void (*disable_ecc_sec)(struct xgbe_prv_data *, enum xgbe_ecc_sec);
858 void (*enable_vxlan)(struct xgbe_prv_data *);
859 void (*disable_vxlan)(struct xgbe_prv_data *);
860 void (*set_vxlan_id)(struct xgbe_prv_data *);
872 int (*init)(struct xgbe_prv_data *);
873 void (*exit)(struct xgbe_prv_data *);
876 int (*reset)(struct xgbe_prv_data *);
877 int (*start)(struct xgbe_prv_data *);
878 void (*stop)(struct xgbe_prv_data *);
881 int (*link_status)(struct xgbe_prv_data *, int *);
884 bool (*valid_speed)(struct xgbe_prv_data *, int);
887 bool (*use_mode)(struct xgbe_prv_data *, enum xgbe_mode);
889 void (*set_mode)(struct xgbe_prv_data *, enum xgbe_mode);
891 enum xgbe_mode (*get_mode)(struct xgbe_prv_data *, int);
893 enum xgbe_mode (*switch_mode)(struct xgbe_prv_data *);
895 enum xgbe_mode (*cur_mode)(struct xgbe_prv_data *);
898 enum xgbe_an_mode (*an_mode)(struct xgbe_prv_data *);
901 int (*an_config)(struct xgbe_prv_data *);
904 void (*an_advertising)(struct xgbe_prv_data *,
908 enum xgbe_mode (*an_outcome)(struct xgbe_prv_data *);
911 void (*an_pre)(struct xgbe_prv_data *);
912 void (*an_post)(struct xgbe_prv_data *);
915 void (*kr_training_pre)(struct xgbe_prv_data *);
916 void (*kr_training_post)(struct xgbe_prv_data *);
919 int (*module_info)(struct xgbe_prv_data *pdata,
921 int (*module_eeprom)(struct xgbe_prv_data *pdata,
927 int (*phy_init)(struct xgbe_prv_data *);
928 void (*phy_exit)(struct xgbe_prv_data *);
931 int (*phy_reset)(struct xgbe_prv_data *);
932 int (*phy_start)(struct xgbe_prv_data *);
933 void (*phy_stop)(struct xgbe_prv_data *);
936 void (*phy_status)(struct xgbe_prv_data *);
937 int (*phy_config_aneg)(struct xgbe_prv_data *);
940 bool (*phy_valid_speed)(struct xgbe_prv_data *, int);
943 irqreturn_t (*an_isr)(struct xgbe_prv_data *);
946 int (*module_info)(struct xgbe_prv_data *pdata,
948 int (*module_eeprom)(struct xgbe_prv_data *pdata,
957 int (*i2c_init)(struct xgbe_prv_data *);
960 int (*i2c_start)(struct xgbe_prv_data *);
961 void (*i2c_stop)(struct xgbe_prv_data *);
964 int (*i2c_xfer)(struct xgbe_prv_data *, struct xgbe_i2c_op *);
967 irqreturn_t (*i2c_isr)(struct xgbe_prv_data *);
971 int (*alloc_ring_resources)(struct xgbe_prv_data *);
972 void (*free_ring_resources)(struct xgbe_prv_data *);
974 int (*map_rx_buffer)(struct xgbe_prv_data *, struct xgbe_ring *,
976 void (*unmap_rdata)(struct xgbe_prv_data *, struct xgbe_ring_data *);
977 void (*wrapper_tx_desc_init)(struct xgbe_prv_data *);
978 void (*wrapper_rx_desc_init)(struct xgbe_prv_data *);
1044 struct xgbe_prv_data { struct
1315 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument
1316 void xgbe_free_pdata(struct xgbe_prv_data *);
1317 void xgbe_set_counts(struct xgbe_prv_data *);
1318 int xgbe_config_netdev(struct xgbe_prv_data *);
1319 void xgbe_deconfig_netdev(struct xgbe_prv_data *);
1345 void xgbe_ptp_register(struct xgbe_prv_data *);
1346 void xgbe_ptp_unregister(struct xgbe_prv_data *);
1347 void xgbe_dump_tx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1349 void xgbe_dump_rx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1352 void xgbe_get_all_hw_features(struct xgbe_prv_data *);
1355 void xgbe_init_rx_coalesce(struct xgbe_prv_data *);
1356 void xgbe_init_tx_coalesce(struct xgbe_prv_data *);
1357 void xgbe_restart_dev(struct xgbe_prv_data *pdata);
1358 void xgbe_full_restart_dev(struct xgbe_prv_data *pdata);
1361 void xgbe_debugfs_init(struct xgbe_prv_data *);
1362 void xgbe_debugfs_exit(struct xgbe_prv_data *);
1363 void xgbe_debugfs_rename(struct xgbe_prv_data *pdata);
1365 static inline void xgbe_debugfs_init(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_init()
1366 static inline void xgbe_debugfs_exit(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_exit()
1367 static inline void xgbe_debugfs_rename(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_rename()