Lines Matching refs:xgbe_prv_data
350 struct xgbe_prv_data;
501 struct xgbe_prv_data *pdata;
762 int (*set_mac_address)(struct xgbe_prv_data *, const u8 *addr);
763 int (*config_rx_mode)(struct xgbe_prv_data *);
765 int (*enable_rx_csum)(struct xgbe_prv_data *);
766 int (*disable_rx_csum)(struct xgbe_prv_data *);
768 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *);
769 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *);
770 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *);
771 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *);
772 int (*update_vlan_hash_table)(struct xgbe_prv_data *);
774 int (*read_mmd_regs)(struct xgbe_prv_data *, int, int);
775 void (*write_mmd_regs)(struct xgbe_prv_data *, int, int, int);
776 int (*set_speed)(struct xgbe_prv_data *, int);
778 int (*set_ext_mii_mode)(struct xgbe_prv_data *, unsigned int,
780 int (*read_ext_mii_regs_c22)(struct xgbe_prv_data *, int, int);
781 int (*write_ext_mii_regs_c22)(struct xgbe_prv_data *, int, int, u16);
782 int (*read_ext_mii_regs_c45)(struct xgbe_prv_data *, int, int, int);
783 int (*write_ext_mii_regs_c45)(struct xgbe_prv_data *, int, int, int,
786 int (*set_gpio)(struct xgbe_prv_data *, unsigned int);
787 int (*clr_gpio)(struct xgbe_prv_data *, unsigned int);
789 void (*enable_tx)(struct xgbe_prv_data *);
790 void (*disable_tx)(struct xgbe_prv_data *);
791 void (*enable_rx)(struct xgbe_prv_data *);
792 void (*disable_rx)(struct xgbe_prv_data *);
794 void (*powerup_tx)(struct xgbe_prv_data *);
795 void (*powerdown_tx)(struct xgbe_prv_data *);
796 void (*powerup_rx)(struct xgbe_prv_data *);
797 void (*powerdown_rx)(struct xgbe_prv_data *);
799 int (*init)(struct xgbe_prv_data *);
800 int (*exit)(struct xgbe_prv_data *);
809 void (*rx_desc_reset)(struct xgbe_prv_data *, struct xgbe_ring_data *,
816 int (*config_tx_flow_control)(struct xgbe_prv_data *);
817 int (*config_rx_flow_control)(struct xgbe_prv_data *);
820 int (*config_rx_coalesce)(struct xgbe_prv_data *);
821 int (*config_tx_coalesce)(struct xgbe_prv_data *);
822 unsigned int (*usec_to_riwt)(struct xgbe_prv_data *, unsigned int);
823 unsigned int (*riwt_to_usec)(struct xgbe_prv_data *, unsigned int);
826 int (*config_rx_threshold)(struct xgbe_prv_data *, unsigned int);
827 int (*config_tx_threshold)(struct xgbe_prv_data *, unsigned int);
830 int (*config_rsf_mode)(struct xgbe_prv_data *, unsigned int);
831 int (*config_tsf_mode)(struct xgbe_prv_data *, unsigned int);
834 int (*config_osp_mode)(struct xgbe_prv_data *);
837 void (*rx_mmc_int)(struct xgbe_prv_data *);
838 void (*tx_mmc_int)(struct xgbe_prv_data *);
839 void (*read_mmc_stats)(struct xgbe_prv_data *);
842 int (*config_tstamp)(struct xgbe_prv_data *, unsigned int);
843 void (*update_tstamp_addend)(struct xgbe_prv_data *, unsigned int);
844 void (*set_tstamp_time)(struct xgbe_prv_data *, unsigned int sec,
846 u64 (*get_tstamp_time)(struct xgbe_prv_data *);
847 u64 (*get_tx_tstamp)(struct xgbe_prv_data *);
850 void (*config_tc)(struct xgbe_prv_data *);
851 void (*config_dcb_tc)(struct xgbe_prv_data *);
852 void (*config_dcb_pfc)(struct xgbe_prv_data *);
855 int (*enable_rss)(struct xgbe_prv_data *);
856 int (*disable_rss)(struct xgbe_prv_data *);
857 int (*set_rss_hash_key)(struct xgbe_prv_data *, const u8 *);
858 int (*set_rss_lookup_table)(struct xgbe_prv_data *, const u32 *);
861 void (*disable_ecc_ded)(struct xgbe_prv_data *);
862 void (*disable_ecc_sec)(struct xgbe_prv_data *, enum xgbe_ecc_sec);
865 void (*enable_vxlan)(struct xgbe_prv_data *);
866 void (*disable_vxlan)(struct xgbe_prv_data *);
867 void (*set_vxlan_id)(struct xgbe_prv_data *);
879 int (*init)(struct xgbe_prv_data *);
880 void (*exit)(struct xgbe_prv_data *);
883 int (*reset)(struct xgbe_prv_data *);
884 int (*start)(struct xgbe_prv_data *);
885 void (*stop)(struct xgbe_prv_data *);
888 int (*link_status)(struct xgbe_prv_data *, int *);
891 bool (*valid_speed)(struct xgbe_prv_data *, int);
894 bool (*use_mode)(struct xgbe_prv_data *, enum xgbe_mode);
896 void (*set_mode)(struct xgbe_prv_data *, enum xgbe_mode);
898 enum xgbe_mode (*get_mode)(struct xgbe_prv_data *, int);
900 enum xgbe_mode (*switch_mode)(struct xgbe_prv_data *);
902 enum xgbe_mode (*cur_mode)(struct xgbe_prv_data *);
905 enum xgbe_an_mode (*an_mode)(struct xgbe_prv_data *);
908 int (*an_config)(struct xgbe_prv_data *);
911 void (*an_advertising)(struct xgbe_prv_data *,
915 enum xgbe_mode (*an_outcome)(struct xgbe_prv_data *);
918 void (*an_pre)(struct xgbe_prv_data *);
919 void (*an_post)(struct xgbe_prv_data *);
922 void (*kr_training_pre)(struct xgbe_prv_data *);
923 void (*kr_training_post)(struct xgbe_prv_data *);
926 int (*module_info)(struct xgbe_prv_data *pdata,
928 int (*module_eeprom)(struct xgbe_prv_data *pdata,
934 int (*phy_init)(struct xgbe_prv_data *);
935 void (*phy_exit)(struct xgbe_prv_data *);
938 int (*phy_reset)(struct xgbe_prv_data *);
939 int (*phy_start)(struct xgbe_prv_data *);
940 void (*phy_stop)(struct xgbe_prv_data *);
943 void (*phy_status)(struct xgbe_prv_data *);
944 int (*phy_config_aneg)(struct xgbe_prv_data *);
947 bool (*phy_valid_speed)(struct xgbe_prv_data *, int);
950 irqreturn_t (*an_isr)(struct xgbe_prv_data *);
953 int (*module_info)(struct xgbe_prv_data *pdata,
955 int (*module_eeprom)(struct xgbe_prv_data *pdata,
964 int (*i2c_init)(struct xgbe_prv_data *);
967 int (*i2c_start)(struct xgbe_prv_data *);
968 void (*i2c_stop)(struct xgbe_prv_data *);
971 int (*i2c_xfer)(struct xgbe_prv_data *, struct xgbe_i2c_op *);
974 irqreturn_t (*i2c_isr)(struct xgbe_prv_data *);
978 int (*alloc_ring_resources)(struct xgbe_prv_data *);
979 void (*free_ring_resources)(struct xgbe_prv_data *);
981 int (*map_rx_buffer)(struct xgbe_prv_data *, struct xgbe_ring *,
983 void (*unmap_rdata)(struct xgbe_prv_data *, struct xgbe_ring_data *);
984 void (*wrapper_tx_desc_init)(struct xgbe_prv_data *);
985 void (*wrapper_rx_desc_init)(struct xgbe_prv_data *);
1051 struct xgbe_prv_data { struct
1327 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument
1328 void xgbe_free_pdata(struct xgbe_prv_data *);
1329 void xgbe_set_counts(struct xgbe_prv_data *);
1330 int xgbe_config_netdev(struct xgbe_prv_data *);
1331 void xgbe_deconfig_netdev(struct xgbe_prv_data *);
1357 void xgbe_ptp_register(struct xgbe_prv_data *);
1358 void xgbe_ptp_unregister(struct xgbe_prv_data *);
1359 void xgbe_dump_tx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1361 void xgbe_dump_rx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1364 void xgbe_get_all_hw_features(struct xgbe_prv_data *);
1367 void xgbe_init_rx_coalesce(struct xgbe_prv_data *);
1368 void xgbe_init_tx_coalesce(struct xgbe_prv_data *);
1369 void xgbe_restart_dev(struct xgbe_prv_data *pdata);
1370 void xgbe_full_restart_dev(struct xgbe_prv_data *pdata);
1373 void xgbe_debugfs_init(struct xgbe_prv_data *);
1374 void xgbe_debugfs_exit(struct xgbe_prv_data *);
1375 void xgbe_debugfs_rename(struct xgbe_prv_data *pdata);
1377 static inline void xgbe_debugfs_init(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_init()
1378 static inline void xgbe_debugfs_exit(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_exit()
1379 static inline void xgbe_debugfs_rename(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_rename()