Lines Matching refs:hnae3_handle
196 struct hnae3_handle;
202 struct hnae3_handle *handle;
408 int (*init_instance)(struct hnae3_handle *handle);
409 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
410 void (*link_status_change)(struct hnae3_handle *handle, bool state);
411 int (*reset_notify)(struct hnae3_handle *handle,
413 void (*process_hw_error)(struct hnae3_handle *handle,
608 int (*start)(struct hnae3_handle *handle);
609 void (*stop)(struct hnae3_handle *handle);
610 int (*client_start)(struct hnae3_handle *handle);
611 void (*client_stop)(struct hnae3_handle *handle);
612 int (*get_status)(struct hnae3_handle *handle);
613 void (*get_ksettings_an_result)(struct hnae3_handle *handle,
617 int (*cfg_mac_speed_dup_h)(struct hnae3_handle *handle, int speed,
620 void (*get_media_type)(struct hnae3_handle *handle, u8 *media_type,
622 int (*check_port_speed)(struct hnae3_handle *handle, u32 speed);
623 void (*get_fec_stats)(struct hnae3_handle *handle,
625 void (*get_fec)(struct hnae3_handle *handle, u8 *fec_ability,
627 int (*set_fec)(struct hnae3_handle *handle, u32 fec_mode);
628 void (*adjust_link)(struct hnae3_handle *handle, int speed, int duplex);
629 int (*set_loopback)(struct hnae3_handle *handle,
632 int (*set_promisc_mode)(struct hnae3_handle *handle, bool en_uc_pmc,
634 void (*request_update_promisc_mode)(struct hnae3_handle *handle);
635 int (*set_mtu)(struct hnae3_handle *handle, int new_mtu);
637 void (*get_pauseparam)(struct hnae3_handle *handle,
639 int (*set_pauseparam)(struct hnae3_handle *handle,
642 int (*set_autoneg)(struct hnae3_handle *handle, bool enable);
643 int (*get_autoneg)(struct hnae3_handle *handle);
644 int (*restart_autoneg)(struct hnae3_handle *handle);
645 int (*halt_autoneg)(struct hnae3_handle *handle, bool halt);
647 void (*get_coalesce_usecs)(struct hnae3_handle *handle,
649 void (*get_rx_max_coalesced_frames)(struct hnae3_handle *handle,
651 int (*set_coalesce_usecs)(struct hnae3_handle *handle, u32 timeout);
652 int (*set_coalesce_frames)(struct hnae3_handle *handle,
654 void (*get_coalesce_range)(struct hnae3_handle *handle,
660 void (*get_mac_addr)(struct hnae3_handle *handle, u8 *p);
661 int (*set_mac_addr)(struct hnae3_handle *handle, const void *p,
663 int (*do_ioctl)(struct hnae3_handle *handle,
665 int (*add_uc_addr)(struct hnae3_handle *handle,
667 int (*rm_uc_addr)(struct hnae3_handle *handle,
669 int (*set_mc_addr)(struct hnae3_handle *handle, void *addr);
670 int (*add_mc_addr)(struct hnae3_handle *handle,
672 int (*rm_mc_addr)(struct hnae3_handle *handle,
674 void (*set_tso_stats)(struct hnae3_handle *handle, int enable);
675 void (*update_stats)(struct hnae3_handle *handle);
676 void (*get_stats)(struct hnae3_handle *handle, u64 *data);
677 void (*get_mac_stats)(struct hnae3_handle *handle,
679 void (*get_strings)(struct hnae3_handle *handle,
681 int (*get_sset_count)(struct hnae3_handle *handle, int stringset);
683 void (*get_regs)(struct hnae3_handle *handle, u32 *version,
685 int (*get_regs_len)(struct hnae3_handle *handle);
687 u32 (*get_rss_key_size)(struct hnae3_handle *handle);
688 int (*get_rss)(struct hnae3_handle *handle, u32 *indir, u8 *key,
690 int (*set_rss)(struct hnae3_handle *handle, const u32 *indir,
692 int (*set_rss_tuple)(struct hnae3_handle *handle,
694 int (*get_rss_tuple)(struct hnae3_handle *handle,
697 int (*get_tc_size)(struct hnae3_handle *handle);
699 int (*get_vector)(struct hnae3_handle *handle, u16 vector_num,
701 int (*put_vector)(struct hnae3_handle *handle, int vector_num);
702 int (*map_ring_to_vector)(struct hnae3_handle *handle,
705 int (*unmap_ring_from_vector)(struct hnae3_handle *handle,
709 int (*reset_queue)(struct hnae3_handle *handle);
710 u32 (*get_fw_version)(struct hnae3_handle *handle);
711 void (*get_mdix_mode)(struct hnae3_handle *handle,
714 int (*enable_vlan_filter)(struct hnae3_handle *handle, bool enable);
715 int (*set_vlan_filter)(struct hnae3_handle *handle, __be16 proto,
717 int (*set_vf_vlan_filter)(struct hnae3_handle *handle, int vfid,
719 int (*enable_hw_strip_rxvtag)(struct hnae3_handle *handle, bool enable);
720 void (*reset_event)(struct pci_dev *pdev, struct hnae3_handle *handle);
725 void (*get_channels)(struct hnae3_handle *handle,
727 void (*get_tqps_and_rss_info)(struct hnae3_handle *h,
729 int (*set_channels)(struct hnae3_handle *handle, u32 new_tqps_num,
731 void (*get_flowctrl_adv)(struct hnae3_handle *handle,
733 int (*set_led_id)(struct hnae3_handle *handle,
735 void (*get_link_mode)(struct hnae3_handle *handle,
738 int (*add_fd_entry)(struct hnae3_handle *handle,
740 int (*del_fd_entry)(struct hnae3_handle *handle,
742 int (*get_fd_rule_cnt)(struct hnae3_handle *handle,
744 int (*get_fd_rule_info)(struct hnae3_handle *handle,
746 int (*get_fd_all_rules)(struct hnae3_handle *handle,
748 void (*enable_fd)(struct hnae3_handle *handle, bool enable);
749 int (*add_arfs_entry)(struct hnae3_handle *handle, u16 queue_id,
751 int (*dbg_read_cmd)(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd,
754 bool (*get_hw_reset_stat)(struct hnae3_handle *handle);
755 bool (*ae_dev_resetting)(struct hnae3_handle *handle);
756 unsigned long (*ae_dev_reset_cnt)(struct hnae3_handle *handle);
757 int (*set_gro_en)(struct hnae3_handle *handle, bool enable);
758 u16 (*get_global_queue_id)(struct hnae3_handle *handle, u16 queue_id);
759 void (*set_timer_task)(struct hnae3_handle *handle, bool enable);
760 int (*mac_connect_phy)(struct hnae3_handle *handle);
761 void (*mac_disconnect_phy)(struct hnae3_handle *handle);
762 int (*get_vf_config)(struct hnae3_handle *handle, int vf,
764 int (*set_vf_link_state)(struct hnae3_handle *handle, int vf,
766 int (*set_vf_spoofchk)(struct hnae3_handle *handle, int vf,
768 int (*set_vf_trust)(struct hnae3_handle *handle, int vf, bool enable);
769 int (*set_vf_rate)(struct hnae3_handle *handle, int vf,
771 int (*set_vf_mac)(struct hnae3_handle *handle, int vf, u8 *p);
772 int (*get_module_eeprom)(struct hnae3_handle *handle, u32 offset,
774 bool (*get_cmdq_stat)(struct hnae3_handle *handle);
775 int (*add_cls_flower)(struct hnae3_handle *handle,
777 int (*del_cls_flower)(struct hnae3_handle *handle,
779 bool (*cls_flower_active)(struct hnae3_handle *handle);
780 int (*get_phy_link_ksettings)(struct hnae3_handle *handle,
782 int (*set_phy_link_ksettings)(struct hnae3_handle *handle,
784 bool (*set_tx_hwts_info)(struct hnae3_handle *handle,
786 void (*get_rx_hwts)(struct hnae3_handle *handle, struct sk_buff *skb,
788 int (*get_ts_info)(struct hnae3_handle *handle,
790 int (*get_link_diagnosis_info)(struct hnae3_handle *handle,
793 int (*get_dscp_prio)(struct hnae3_handle *handle, u8 dscp,
795 void (*get_wol)(struct hnae3_handle *handle,
797 int (*set_wol)(struct hnae3_handle *handle,
803 int (*ieee_getets)(struct hnae3_handle *, struct ieee_ets *);
804 int (*ieee_setets)(struct hnae3_handle *, struct ieee_ets *);
805 int (*ieee_getpfc)(struct hnae3_handle *, struct ieee_pfc *);
806 int (*ieee_setpfc)(struct hnae3_handle *, struct ieee_pfc *);
807 int (*ieee_setapp)(struct hnae3_handle *h, struct dcb_app *app);
808 int (*ieee_delapp)(struct hnae3_handle *h, struct dcb_app *app);
811 u8 (*getdcbx)(struct hnae3_handle *);
812 u8 (*setdcbx)(struct hnae3_handle *, u8);
814 int (*setup_tc)(struct hnae3_handle *handle,
900 struct hnae3_handle { struct