Lines Matching refs:handle
171 struct hnae3_handle *handle; member
356 int (*init_instance)(struct hnae3_handle *handle);
357 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
358 void (*link_status_change)(struct hnae3_handle *handle, bool state);
359 int (*reset_notify)(struct hnae3_handle *handle,
361 void (*process_hw_error)(struct hnae3_handle *handle,
550 int (*start)(struct hnae3_handle *handle);
551 void (*stop)(struct hnae3_handle *handle);
552 int (*client_start)(struct hnae3_handle *handle);
553 void (*client_stop)(struct hnae3_handle *handle);
554 int (*get_status)(struct hnae3_handle *handle);
555 void (*get_ksettings_an_result)(struct hnae3_handle *handle,
558 int (*cfg_mac_speed_dup_h)(struct hnae3_handle *handle, int speed,
561 void (*get_media_type)(struct hnae3_handle *handle, u8 *media_type,
563 int (*check_port_speed)(struct hnae3_handle *handle, u32 speed);
564 void (*get_fec)(struct hnae3_handle *handle, u8 *fec_ability,
566 int (*set_fec)(struct hnae3_handle *handle, u32 fec_mode);
567 void (*adjust_link)(struct hnae3_handle *handle, int speed, int duplex);
568 int (*set_loopback)(struct hnae3_handle *handle,
571 int (*set_promisc_mode)(struct hnae3_handle *handle, bool en_uc_pmc,
573 void (*request_update_promisc_mode)(struct hnae3_handle *handle);
574 int (*set_mtu)(struct hnae3_handle *handle, int new_mtu);
576 void (*get_pauseparam)(struct hnae3_handle *handle,
578 int (*set_pauseparam)(struct hnae3_handle *handle,
581 int (*set_autoneg)(struct hnae3_handle *handle, bool enable);
582 int (*get_autoneg)(struct hnae3_handle *handle);
583 int (*restart_autoneg)(struct hnae3_handle *handle);
584 int (*halt_autoneg)(struct hnae3_handle *handle, bool halt);
586 void (*get_coalesce_usecs)(struct hnae3_handle *handle,
588 void (*get_rx_max_coalesced_frames)(struct hnae3_handle *handle,
590 int (*set_coalesce_usecs)(struct hnae3_handle *handle, u32 timeout);
591 int (*set_coalesce_frames)(struct hnae3_handle *handle,
593 void (*get_coalesce_range)(struct hnae3_handle *handle,
599 void (*get_mac_addr)(struct hnae3_handle *handle, u8 *p);
600 int (*set_mac_addr)(struct hnae3_handle *handle, const void *p,
602 int (*do_ioctl)(struct hnae3_handle *handle,
604 int (*add_uc_addr)(struct hnae3_handle *handle,
606 int (*rm_uc_addr)(struct hnae3_handle *handle,
608 int (*set_mc_addr)(struct hnae3_handle *handle, void *addr);
609 int (*add_mc_addr)(struct hnae3_handle *handle,
611 int (*rm_mc_addr)(struct hnae3_handle *handle,
613 void (*set_tso_stats)(struct hnae3_handle *handle, int enable);
614 void (*update_stats)(struct hnae3_handle *handle,
616 void (*get_stats)(struct hnae3_handle *handle, u64 *data);
617 void (*get_mac_stats)(struct hnae3_handle *handle,
619 void (*get_strings)(struct hnae3_handle *handle,
621 int (*get_sset_count)(struct hnae3_handle *handle, int stringset);
623 void (*get_regs)(struct hnae3_handle *handle, u32 *version,
625 int (*get_regs_len)(struct hnae3_handle *handle);
627 u32 (*get_rss_key_size)(struct hnae3_handle *handle);
628 int (*get_rss)(struct hnae3_handle *handle, u32 *indir, u8 *key,
630 int (*set_rss)(struct hnae3_handle *handle, const u32 *indir,
632 int (*set_rss_tuple)(struct hnae3_handle *handle,
634 int (*get_rss_tuple)(struct hnae3_handle *handle,
637 int (*get_tc_size)(struct hnae3_handle *handle);
639 int (*get_vector)(struct hnae3_handle *handle, u16 vector_num,
641 int (*put_vector)(struct hnae3_handle *handle, int vector_num);
642 int (*map_ring_to_vector)(struct hnae3_handle *handle,
645 int (*unmap_ring_from_vector)(struct hnae3_handle *handle,
649 int (*reset_queue)(struct hnae3_handle *handle);
650 u32 (*get_fw_version)(struct hnae3_handle *handle);
651 void (*get_mdix_mode)(struct hnae3_handle *handle,
654 int (*enable_vlan_filter)(struct hnae3_handle *handle, bool enable);
655 int (*set_vlan_filter)(struct hnae3_handle *handle, __be16 proto,
657 int (*set_vf_vlan_filter)(struct hnae3_handle *handle, int vfid,
659 int (*enable_hw_strip_rxvtag)(struct hnae3_handle *handle, bool enable);
660 void (*reset_event)(struct pci_dev *pdev, struct hnae3_handle *handle);
665 void (*get_channels)(struct hnae3_handle *handle,
669 int (*set_channels)(struct hnae3_handle *handle, u32 new_tqps_num,
671 void (*get_flowctrl_adv)(struct hnae3_handle *handle,
673 int (*set_led_id)(struct hnae3_handle *handle,
675 void (*get_link_mode)(struct hnae3_handle *handle,
678 int (*add_fd_entry)(struct hnae3_handle *handle,
680 int (*del_fd_entry)(struct hnae3_handle *handle,
682 int (*get_fd_rule_cnt)(struct hnae3_handle *handle,
684 int (*get_fd_rule_info)(struct hnae3_handle *handle,
686 int (*get_fd_all_rules)(struct hnae3_handle *handle,
688 void (*enable_fd)(struct hnae3_handle *handle, bool enable);
689 int (*add_arfs_entry)(struct hnae3_handle *handle, u16 queue_id,
691 int (*dbg_read_cmd)(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd,
694 bool (*get_hw_reset_stat)(struct hnae3_handle *handle);
695 bool (*ae_dev_resetting)(struct hnae3_handle *handle);
696 unsigned long (*ae_dev_reset_cnt)(struct hnae3_handle *handle);
697 int (*set_gro_en)(struct hnae3_handle *handle, bool enable);
698 u16 (*get_global_queue_id)(struct hnae3_handle *handle, u16 queue_id);
699 void (*set_timer_task)(struct hnae3_handle *handle, bool enable);
700 int (*mac_connect_phy)(struct hnae3_handle *handle);
701 void (*mac_disconnect_phy)(struct hnae3_handle *handle);
702 int (*get_vf_config)(struct hnae3_handle *handle, int vf,
704 int (*set_vf_link_state)(struct hnae3_handle *handle, int vf,
706 int (*set_vf_spoofchk)(struct hnae3_handle *handle, int vf,
708 int (*set_vf_trust)(struct hnae3_handle *handle, int vf, bool enable);
709 int (*set_vf_rate)(struct hnae3_handle *handle, int vf,
711 int (*set_vf_mac)(struct hnae3_handle *handle, int vf, u8 *p);
712 int (*get_module_eeprom)(struct hnae3_handle *handle, u32 offset,
714 bool (*get_cmdq_stat)(struct hnae3_handle *handle);
715 int (*add_cls_flower)(struct hnae3_handle *handle,
717 int (*del_cls_flower)(struct hnae3_handle *handle,
719 bool (*cls_flower_active)(struct hnae3_handle *handle);
720 int (*get_phy_link_ksettings)(struct hnae3_handle *handle,
722 int (*set_phy_link_ksettings)(struct hnae3_handle *handle,
724 bool (*set_tx_hwts_info)(struct hnae3_handle *handle,
726 void (*get_rx_hwts)(struct hnae3_handle *handle, struct sk_buff *skb,
728 int (*get_ts_info)(struct hnae3_handle *handle,
730 int (*get_link_diagnosis_info)(struct hnae3_handle *handle,
745 int (*setup_tc)(struct hnae3_handle *handle,