Lines Matching refs:xgbe_prv_data
348 struct xgbe_prv_data;
499 struct xgbe_prv_data *pdata;
733 int (*set_mac_address)(struct xgbe_prv_data *, u8 *addr);
734 int (*config_rx_mode)(struct xgbe_prv_data *);
736 int (*enable_rx_csum)(struct xgbe_prv_data *);
737 int (*disable_rx_csum)(struct xgbe_prv_data *);
739 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *);
740 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *);
741 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *);
742 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *);
743 int (*update_vlan_hash_table)(struct xgbe_prv_data *);
745 int (*read_mmd_regs)(struct xgbe_prv_data *, int, int);
746 void (*write_mmd_regs)(struct xgbe_prv_data *, int, int, int);
747 int (*set_speed)(struct xgbe_prv_data *, int);
749 int (*set_ext_mii_mode)(struct xgbe_prv_data *, unsigned int,
751 int (*read_ext_mii_regs)(struct xgbe_prv_data *, int, int);
752 int (*write_ext_mii_regs)(struct xgbe_prv_data *, int, int, u16);
754 int (*set_gpio)(struct xgbe_prv_data *, unsigned int);
755 int (*clr_gpio)(struct xgbe_prv_data *, unsigned int);
757 void (*enable_tx)(struct xgbe_prv_data *);
758 void (*disable_tx)(struct xgbe_prv_data *);
759 void (*enable_rx)(struct xgbe_prv_data *);
760 void (*disable_rx)(struct xgbe_prv_data *);
762 void (*powerup_tx)(struct xgbe_prv_data *);
763 void (*powerdown_tx)(struct xgbe_prv_data *);
764 void (*powerup_rx)(struct xgbe_prv_data *);
765 void (*powerdown_rx)(struct xgbe_prv_data *);
767 int (*init)(struct xgbe_prv_data *);
768 int (*exit)(struct xgbe_prv_data *);
777 void (*rx_desc_reset)(struct xgbe_prv_data *, struct xgbe_ring_data *,
784 int (*config_tx_flow_control)(struct xgbe_prv_data *);
785 int (*config_rx_flow_control)(struct xgbe_prv_data *);
788 int (*config_rx_coalesce)(struct xgbe_prv_data *);
789 int (*config_tx_coalesce)(struct xgbe_prv_data *);
790 unsigned int (*usec_to_riwt)(struct xgbe_prv_data *, unsigned int);
791 unsigned int (*riwt_to_usec)(struct xgbe_prv_data *, unsigned int);
794 int (*config_rx_threshold)(struct xgbe_prv_data *, unsigned int);
795 int (*config_tx_threshold)(struct xgbe_prv_data *, unsigned int);
798 int (*config_rsf_mode)(struct xgbe_prv_data *, unsigned int);
799 int (*config_tsf_mode)(struct xgbe_prv_data *, unsigned int);
802 int (*config_osp_mode)(struct xgbe_prv_data *);
805 void (*rx_mmc_int)(struct xgbe_prv_data *);
806 void (*tx_mmc_int)(struct xgbe_prv_data *);
807 void (*read_mmc_stats)(struct xgbe_prv_data *);
810 int (*config_tstamp)(struct xgbe_prv_data *, unsigned int);
811 void (*update_tstamp_addend)(struct xgbe_prv_data *, unsigned int);
812 void (*set_tstamp_time)(struct xgbe_prv_data *, unsigned int sec,
814 u64 (*get_tstamp_time)(struct xgbe_prv_data *);
815 u64 (*get_tx_tstamp)(struct xgbe_prv_data *);
818 void (*config_tc)(struct xgbe_prv_data *);
819 void (*config_dcb_tc)(struct xgbe_prv_data *);
820 void (*config_dcb_pfc)(struct xgbe_prv_data *);
823 int (*enable_rss)(struct xgbe_prv_data *);
824 int (*disable_rss)(struct xgbe_prv_data *);
825 int (*set_rss_hash_key)(struct xgbe_prv_data *, const u8 *);
826 int (*set_rss_lookup_table)(struct xgbe_prv_data *, const u32 *);
829 void (*disable_ecc_ded)(struct xgbe_prv_data *);
830 void (*disable_ecc_sec)(struct xgbe_prv_data *, enum xgbe_ecc_sec);
833 void (*enable_vxlan)(struct xgbe_prv_data *);
834 void (*disable_vxlan)(struct xgbe_prv_data *);
835 void (*set_vxlan_id)(struct xgbe_prv_data *);
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 *);
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,
896 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 irqreturn_t (*an_isr)(struct xgbe_prv_data *);
921 int (*module_info)(struct xgbe_prv_data *pdata,
923 int (*module_eeprom)(struct xgbe_prv_data *pdata,
932 int (*i2c_init)(struct xgbe_prv_data *);
935 int (*i2c_start)(struct xgbe_prv_data *);
936 void (*i2c_stop)(struct xgbe_prv_data *);
939 int (*i2c_xfer)(struct xgbe_prv_data *, struct xgbe_i2c_op *);
942 irqreturn_t (*i2c_isr)(struct xgbe_prv_data *);
946 int (*alloc_ring_resources)(struct xgbe_prv_data *);
947 void (*free_ring_resources)(struct xgbe_prv_data *);
949 int (*map_rx_buffer)(struct xgbe_prv_data *, struct xgbe_ring *,
951 void (*unmap_rdata)(struct xgbe_prv_data *, struct xgbe_ring_data *);
952 void (*wrapper_tx_desc_init)(struct xgbe_prv_data *);
953 void (*wrapper_rx_desc_init)(struct xgbe_prv_data *);
1024 struct xgbe_prv_data { struct
1301 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument
1302 void xgbe_free_pdata(struct xgbe_prv_data *);
1303 void xgbe_set_counts(struct xgbe_prv_data *);
1304 int xgbe_config_netdev(struct xgbe_prv_data *);
1305 void xgbe_deconfig_netdev(struct xgbe_prv_data *);
1330 void xgbe_ptp_register(struct xgbe_prv_data *);
1331 void xgbe_ptp_unregister(struct xgbe_prv_data *);
1332 void xgbe_dump_tx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1334 void xgbe_dump_rx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1337 void xgbe_get_all_hw_features(struct xgbe_prv_data *);
1340 void xgbe_init_rx_coalesce(struct xgbe_prv_data *);
1341 void xgbe_init_tx_coalesce(struct xgbe_prv_data *);
1342 void xgbe_restart_dev(struct xgbe_prv_data *pdata);
1343 void xgbe_full_restart_dev(struct xgbe_prv_data *pdata);
1346 void xgbe_debugfs_init(struct xgbe_prv_data *);
1347 void xgbe_debugfs_exit(struct xgbe_prv_data *);
1348 void xgbe_debugfs_rename(struct xgbe_prv_data *pdata);
1350 static inline void xgbe_debugfs_init(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_init()
1351 static inline void xgbe_debugfs_exit(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_exit()
1352 static inline void xgbe_debugfs_rename(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_rename()