Lines Matching refs:handle
194 struct hnae3_handle *handle; member
389 int (*init_instance)(struct hnae3_handle *handle);
390 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
391 void (*link_status_change)(struct hnae3_handle *handle, bool state);
392 int (*reset_notify)(struct hnae3_handle *handle,
394 void (*process_hw_error)(struct hnae3_handle *handle,
589 int (*start)(struct hnae3_handle *handle);
590 void (*stop)(struct hnae3_handle *handle);
591 int (*client_start)(struct hnae3_handle *handle);
592 void (*client_stop)(struct hnae3_handle *handle);
593 int (*get_status)(struct hnae3_handle *handle);
594 void (*get_ksettings_an_result)(struct hnae3_handle *handle,
598 int (*cfg_mac_speed_dup_h)(struct hnae3_handle *handle, int speed,
601 void (*get_media_type)(struct hnae3_handle *handle, u8 *media_type,
603 int (*check_port_speed)(struct hnae3_handle *handle, u32 speed);
604 void (*get_fec_stats)(struct hnae3_handle *handle,
606 void (*get_fec)(struct hnae3_handle *handle, u8 *fec_ability,
608 int (*set_fec)(struct hnae3_handle *handle, u32 fec_mode);
609 void (*adjust_link)(struct hnae3_handle *handle, int speed, int duplex);
610 int (*set_loopback)(struct hnae3_handle *handle,
613 int (*set_promisc_mode)(struct hnae3_handle *handle, bool en_uc_pmc,
615 void (*request_update_promisc_mode)(struct hnae3_handle *handle);
616 int (*set_mtu)(struct hnae3_handle *handle, int new_mtu);
618 void (*get_pauseparam)(struct hnae3_handle *handle,
620 int (*set_pauseparam)(struct hnae3_handle *handle,
623 int (*set_autoneg)(struct hnae3_handle *handle, bool enable);
624 int (*get_autoneg)(struct hnae3_handle *handle);
625 int (*restart_autoneg)(struct hnae3_handle *handle);
626 int (*halt_autoneg)(struct hnae3_handle *handle, bool halt);
628 void (*get_coalesce_usecs)(struct hnae3_handle *handle,
630 void (*get_rx_max_coalesced_frames)(struct hnae3_handle *handle,
632 int (*set_coalesce_usecs)(struct hnae3_handle *handle, u32 timeout);
633 int (*set_coalesce_frames)(struct hnae3_handle *handle,
635 void (*get_coalesce_range)(struct hnae3_handle *handle,
641 void (*get_mac_addr)(struct hnae3_handle *handle, u8 *p);
642 int (*set_mac_addr)(struct hnae3_handle *handle, const void *p,
644 int (*do_ioctl)(struct hnae3_handle *handle,
646 int (*add_uc_addr)(struct hnae3_handle *handle,
648 int (*rm_uc_addr)(struct hnae3_handle *handle,
650 int (*set_mc_addr)(struct hnae3_handle *handle, void *addr);
651 int (*add_mc_addr)(struct hnae3_handle *handle,
653 int (*rm_mc_addr)(struct hnae3_handle *handle,
655 void (*set_tso_stats)(struct hnae3_handle *handle, int enable);
656 void (*update_stats)(struct hnae3_handle *handle);
657 void (*get_stats)(struct hnae3_handle *handle, u64 *data);
658 void (*get_mac_stats)(struct hnae3_handle *handle,
660 void (*get_strings)(struct hnae3_handle *handle,
662 int (*get_sset_count)(struct hnae3_handle *handle, int stringset);
664 void (*get_regs)(struct hnae3_handle *handle, u32 *version,
666 int (*get_regs_len)(struct hnae3_handle *handle);
668 u32 (*get_rss_key_size)(struct hnae3_handle *handle);
669 int (*get_rss)(struct hnae3_handle *handle, u32 *indir, u8 *key,
671 int (*set_rss)(struct hnae3_handle *handle, const u32 *indir,
673 int (*set_rss_tuple)(struct hnae3_handle *handle,
675 int (*get_rss_tuple)(struct hnae3_handle *handle,
678 int (*get_tc_size)(struct hnae3_handle *handle);
680 int (*get_vector)(struct hnae3_handle *handle, u16 vector_num,
682 int (*put_vector)(struct hnae3_handle *handle, int vector_num);
683 int (*map_ring_to_vector)(struct hnae3_handle *handle,
686 int (*unmap_ring_from_vector)(struct hnae3_handle *handle,
690 int (*reset_queue)(struct hnae3_handle *handle);
691 u32 (*get_fw_version)(struct hnae3_handle *handle);
692 void (*get_mdix_mode)(struct hnae3_handle *handle,
695 int (*enable_vlan_filter)(struct hnae3_handle *handle, bool enable);
696 int (*set_vlan_filter)(struct hnae3_handle *handle, __be16 proto,
698 int (*set_vf_vlan_filter)(struct hnae3_handle *handle, int vfid,
700 int (*enable_hw_strip_rxvtag)(struct hnae3_handle *handle, bool enable);
701 void (*reset_event)(struct pci_dev *pdev, struct hnae3_handle *handle);
706 void (*get_channels)(struct hnae3_handle *handle,
710 int (*set_channels)(struct hnae3_handle *handle, u32 new_tqps_num,
712 void (*get_flowctrl_adv)(struct hnae3_handle *handle,
714 int (*set_led_id)(struct hnae3_handle *handle,
716 void (*get_link_mode)(struct hnae3_handle *handle,
719 int (*add_fd_entry)(struct hnae3_handle *handle,
721 int (*del_fd_entry)(struct hnae3_handle *handle,
723 int (*get_fd_rule_cnt)(struct hnae3_handle *handle,
725 int (*get_fd_rule_info)(struct hnae3_handle *handle,
727 int (*get_fd_all_rules)(struct hnae3_handle *handle,
729 void (*enable_fd)(struct hnae3_handle *handle, bool enable);
730 int (*add_arfs_entry)(struct hnae3_handle *handle, u16 queue_id,
732 int (*dbg_read_cmd)(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd,
735 bool (*get_hw_reset_stat)(struct hnae3_handle *handle);
736 bool (*ae_dev_resetting)(struct hnae3_handle *handle);
737 unsigned long (*ae_dev_reset_cnt)(struct hnae3_handle *handle);
738 int (*set_gro_en)(struct hnae3_handle *handle, bool enable);
739 u16 (*get_global_queue_id)(struct hnae3_handle *handle, u16 queue_id);
740 void (*set_timer_task)(struct hnae3_handle *handle, bool enable);
741 int (*mac_connect_phy)(struct hnae3_handle *handle);
742 void (*mac_disconnect_phy)(struct hnae3_handle *handle);
743 int (*get_vf_config)(struct hnae3_handle *handle, int vf,
745 int (*set_vf_link_state)(struct hnae3_handle *handle, int vf,
747 int (*set_vf_spoofchk)(struct hnae3_handle *handle, int vf,
749 int (*set_vf_trust)(struct hnae3_handle *handle, int vf, bool enable);
750 int (*set_vf_rate)(struct hnae3_handle *handle, int vf,
752 int (*set_vf_mac)(struct hnae3_handle *handle, int vf, u8 *p);
753 int (*get_module_eeprom)(struct hnae3_handle *handle, u32 offset,
755 bool (*get_cmdq_stat)(struct hnae3_handle *handle);
756 int (*add_cls_flower)(struct hnae3_handle *handle,
758 int (*del_cls_flower)(struct hnae3_handle *handle,
760 bool (*cls_flower_active)(struct hnae3_handle *handle);
761 int (*get_phy_link_ksettings)(struct hnae3_handle *handle,
763 int (*set_phy_link_ksettings)(struct hnae3_handle *handle,
765 bool (*set_tx_hwts_info)(struct hnae3_handle *handle,
767 void (*get_rx_hwts)(struct hnae3_handle *handle, struct sk_buff *skb,
769 int (*get_ts_info)(struct hnae3_handle *handle,
771 int (*get_link_diagnosis_info)(struct hnae3_handle *handle,
774 int (*get_dscp_prio)(struct hnae3_handle *handle, u8 dscp,
776 void (*get_wol)(struct hnae3_handle *handle,
778 int (*set_wol)(struct hnae3_handle *handle,
795 int (*setup_tc)(struct hnae3_handle *handle,