Lines Matching refs:xgbe_prv_data

265 struct xgbe_prv_data;
416 struct xgbe_prv_data *pdata;
678 int (*set_mac_address)(struct xgbe_prv_data *, const u8 *addr);
679 int (*config_rx_mode)(struct xgbe_prv_data *);
681 int (*enable_rx_csum)(struct xgbe_prv_data *);
682 int (*disable_rx_csum)(struct xgbe_prv_data *);
684 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *);
685 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *);
686 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *);
687 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *);
688 int (*update_vlan_hash_table)(struct xgbe_prv_data *);
690 int (*read_mmd_regs)(struct xgbe_prv_data *, int, int);
691 void (*write_mmd_regs)(struct xgbe_prv_data *, int, int, int);
692 int (*set_speed)(struct xgbe_prv_data *, int);
694 int (*set_ext_mii_mode)(struct xgbe_prv_data *, unsigned int,
696 int (*read_ext_mii_regs_c22)(struct xgbe_prv_data *, int, int);
697 int (*write_ext_mii_regs_c22)(struct xgbe_prv_data *, int, int, u16);
698 int (*read_ext_mii_regs_c45)(struct xgbe_prv_data *, int, int, int);
699 int (*write_ext_mii_regs_c45)(struct xgbe_prv_data *, int, int, int,
702 int (*set_gpio)(struct xgbe_prv_data *, unsigned int);
703 int (*clr_gpio)(struct xgbe_prv_data *, unsigned int);
705 void (*enable_tx)(struct xgbe_prv_data *);
706 void (*disable_tx)(struct xgbe_prv_data *);
707 void (*enable_rx)(struct xgbe_prv_data *);
708 void (*disable_rx)(struct xgbe_prv_data *);
710 void (*powerup_tx)(struct xgbe_prv_data *);
711 void (*powerdown_tx)(struct xgbe_prv_data *);
712 void (*powerup_rx)(struct xgbe_prv_data *);
713 void (*powerdown_rx)(struct xgbe_prv_data *);
715 int (*init)(struct xgbe_prv_data *);
716 int (*exit)(struct xgbe_prv_data *);
725 void (*rx_desc_reset)(struct xgbe_prv_data *, struct xgbe_ring_data *,
732 int (*config_tx_flow_control)(struct xgbe_prv_data *);
733 int (*config_rx_flow_control)(struct xgbe_prv_data *);
736 int (*config_rx_coalesce)(struct xgbe_prv_data *);
737 int (*config_tx_coalesce)(struct xgbe_prv_data *);
738 unsigned int (*usec_to_riwt)(struct xgbe_prv_data *, unsigned int);
739 unsigned int (*riwt_to_usec)(struct xgbe_prv_data *, unsigned int);
742 int (*config_rx_threshold)(struct xgbe_prv_data *, unsigned int);
743 int (*config_tx_threshold)(struct xgbe_prv_data *, unsigned int);
746 int (*config_rsf_mode)(struct xgbe_prv_data *, unsigned int);
747 int (*config_tsf_mode)(struct xgbe_prv_data *, unsigned int);
750 int (*config_osp_mode)(struct xgbe_prv_data *);
753 void (*rx_mmc_int)(struct xgbe_prv_data *);
754 void (*tx_mmc_int)(struct xgbe_prv_data *);
755 void (*read_mmc_stats)(struct xgbe_prv_data *);
758 void (*config_tc)(struct xgbe_prv_data *);
759 void (*config_dcb_tc)(struct xgbe_prv_data *);
760 void (*config_dcb_pfc)(struct xgbe_prv_data *);
763 int (*enable_rss)(struct xgbe_prv_data *);
764 int (*disable_rss)(struct xgbe_prv_data *);
765 int (*set_rss_hash_key)(struct xgbe_prv_data *, const u8 *);
766 int (*set_rss_lookup_table)(struct xgbe_prv_data *, const u32 *);
769 void (*disable_ecc_ded)(struct xgbe_prv_data *);
770 void (*disable_ecc_sec)(struct xgbe_prv_data *, enum xgbe_ecc_sec);
773 void (*enable_vxlan)(struct xgbe_prv_data *);
774 void (*disable_vxlan)(struct xgbe_prv_data *);
775 void (*set_vxlan_id)(struct xgbe_prv_data *);
778 void (*enable_sph)(struct xgbe_prv_data *pdata);
779 void (*disable_sph)(struct xgbe_prv_data *pdata);
791 int (*init)(struct xgbe_prv_data *);
792 void (*exit)(struct xgbe_prv_data *);
795 int (*reset)(struct xgbe_prv_data *);
796 int (*start)(struct xgbe_prv_data *);
797 void (*stop)(struct xgbe_prv_data *);
800 int (*link_status)(struct xgbe_prv_data *, int *);
803 bool (*valid_speed)(struct xgbe_prv_data *, int);
806 bool (*use_mode)(struct xgbe_prv_data *, enum xgbe_mode);
808 void (*set_mode)(struct xgbe_prv_data *, enum xgbe_mode);
810 enum xgbe_mode (*get_mode)(struct xgbe_prv_data *, int);
812 enum xgbe_mode (*switch_mode)(struct xgbe_prv_data *);
814 enum xgbe_mode (*cur_mode)(struct xgbe_prv_data *);
817 enum xgbe_an_mode (*an_mode)(struct xgbe_prv_data *);
820 int (*an_config)(struct xgbe_prv_data *);
823 void (*an_advertising)(struct xgbe_prv_data *,
827 enum xgbe_mode (*an_outcome)(struct xgbe_prv_data *);
830 void (*an_pre)(struct xgbe_prv_data *);
831 void (*an_post)(struct xgbe_prv_data *);
834 void (*kr_training_pre)(struct xgbe_prv_data *);
835 void (*kr_training_post)(struct xgbe_prv_data *);
838 int (*module_info)(struct xgbe_prv_data *pdata,
840 int (*module_eeprom)(struct xgbe_prv_data *pdata,
846 int (*phy_init)(struct xgbe_prv_data *);
847 void (*phy_exit)(struct xgbe_prv_data *);
850 int (*phy_reset)(struct xgbe_prv_data *);
851 int (*phy_start)(struct xgbe_prv_data *);
852 void (*phy_stop)(struct xgbe_prv_data *);
855 void (*phy_status)(struct xgbe_prv_data *);
856 int (*phy_config_aneg)(struct xgbe_prv_data *);
859 bool (*phy_valid_speed)(struct xgbe_prv_data *, int);
862 irqreturn_t (*an_isr)(struct xgbe_prv_data *);
865 int (*module_info)(struct xgbe_prv_data *pdata,
867 int (*module_eeprom)(struct xgbe_prv_data *pdata,
876 int (*i2c_init)(struct xgbe_prv_data *);
879 int (*i2c_start)(struct xgbe_prv_data *);
880 void (*i2c_stop)(struct xgbe_prv_data *);
883 int (*i2c_xfer)(struct xgbe_prv_data *, struct xgbe_i2c_op *);
886 irqreturn_t (*i2c_isr)(struct xgbe_prv_data *);
890 int (*alloc_ring_resources)(struct xgbe_prv_data *);
891 void (*free_ring_resources)(struct xgbe_prv_data *);
893 int (*map_rx_buffer)(struct xgbe_prv_data *, struct xgbe_ring *,
895 void (*unmap_rdata)(struct xgbe_prv_data *, struct xgbe_ring_data *);
896 void (*wrapper_tx_desc_init)(struct xgbe_prv_data *);
897 void (*wrapper_rx_desc_init)(struct xgbe_prv_data *);
964 struct xgbe_prv_data { struct
1239 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument
1240 void xgbe_free_pdata(struct xgbe_prv_data *);
1241 void xgbe_set_counts(struct xgbe_prv_data *);
1242 int xgbe_config_netdev(struct xgbe_prv_data *);
1243 void xgbe_deconfig_netdev(struct xgbe_prv_data *);
1269 void xgbe_ptp_register(struct xgbe_prv_data *);
1270 void xgbe_ptp_unregister(struct xgbe_prv_data *);
1271 void xgbe_dump_tx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1273 void xgbe_dump_rx_desc(struct xgbe_prv_data *, struct xgbe_ring *,
1276 void xgbe_get_all_hw_features(struct xgbe_prv_data *);
1279 void xgbe_init_rx_coalesce(struct xgbe_prv_data *);
1280 void xgbe_init_tx_coalesce(struct xgbe_prv_data *);
1281 void xgbe_restart_dev(struct xgbe_prv_data *pdata);
1282 void xgbe_full_restart_dev(struct xgbe_prv_data *pdata);
1285 void xgbe_config_tstamp(struct xgbe_prv_data *pdata, unsigned int mac_tscr);
1286 u64 xgbe_get_tstamp_time(struct xgbe_prv_data *pdata);
1287 u64 xgbe_get_tx_tstamp(struct xgbe_prv_data *pdata);
1292 void xgbe_update_tstamp_addend(struct xgbe_prv_data *pdata,
1294 void xgbe_set_tstamp_time(struct xgbe_prv_data *pdata, unsigned int sec,
1297 int xgbe_get_hwtstamp_settings(struct xgbe_prv_data *pdata,
1299 int xgbe_set_hwtstamp_settings(struct xgbe_prv_data *pdata,
1301 void xgbe_prep_tx_tstamp(struct xgbe_prv_data *pdata,
1304 int xgbe_init_ptp(struct xgbe_prv_data *pdata);
1305 void xgbe_update_tstamp_time(struct xgbe_prv_data *pdata, unsigned int sec,
1308 void xgbe_debugfs_init(struct xgbe_prv_data *);
1309 void xgbe_debugfs_exit(struct xgbe_prv_data *);
1310 void xgbe_debugfs_rename(struct xgbe_prv_data *pdata);
1312 static inline void xgbe_debugfs_init(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_init()
1313 static inline void xgbe_debugfs_exit(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_exit()
1314 static inline void xgbe_debugfs_rename(struct xgbe_prv_data *pdata) {} in xgbe_debugfs_rename()