Lines Matching full:handle
8 * ae handle (handle):
153 struct hnae3_handle *handle; member
154 int tqp_index; /* index in a handle */
285 int (*init_instance)(struct hnae3_handle *handle);
286 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
287 void (*link_status_change)(struct hnae3_handle *handle, bool state);
288 int (*setup_tc)(struct hnae3_handle *handle, u8 tc);
289 int (*reset_notify)(struct hnae3_handle *handle,
291 void (*process_hw_error)(struct hnae3_handle *handle,
317 /* This struct defines the operation on the handle.
336 * Get the carrier state of the back channel of the handle, 1 for ok, 0 for
415 * Get tc size of handle
467 int (*start)(struct hnae3_handle *handle);
468 void (*stop)(struct hnae3_handle *handle);
469 int (*client_start)(struct hnae3_handle *handle);
470 void (*client_stop)(struct hnae3_handle *handle);
471 int (*get_status)(struct hnae3_handle *handle);
472 void (*get_ksettings_an_result)(struct hnae3_handle *handle,
475 int (*cfg_mac_speed_dup_h)(struct hnae3_handle *handle, int speed,
478 void (*get_media_type)(struct hnae3_handle *handle, u8 *media_type,
480 int (*check_port_speed)(struct hnae3_handle *handle, u32 speed);
481 void (*get_fec)(struct hnae3_handle *handle, u8 *fec_ability,
483 int (*set_fec)(struct hnae3_handle *handle, u32 fec_mode);
484 void (*adjust_link)(struct hnae3_handle *handle, int speed, int duplex);
485 int (*set_loopback)(struct hnae3_handle *handle,
488 int (*set_promisc_mode)(struct hnae3_handle *handle, bool en_uc_pmc,
490 void (*request_update_promisc_mode)(struct hnae3_handle *handle);
491 int (*set_mtu)(struct hnae3_handle *handle, int new_mtu);
493 void (*get_pauseparam)(struct hnae3_handle *handle,
495 int (*set_pauseparam)(struct hnae3_handle *handle,
498 int (*set_autoneg)(struct hnae3_handle *handle, bool enable);
499 int (*get_autoneg)(struct hnae3_handle *handle);
500 int (*restart_autoneg)(struct hnae3_handle *handle);
501 int (*halt_autoneg)(struct hnae3_handle *handle, bool halt);
503 void (*get_coalesce_usecs)(struct hnae3_handle *handle,
505 void (*get_rx_max_coalesced_frames)(struct hnae3_handle *handle,
507 int (*set_coalesce_usecs)(struct hnae3_handle *handle, u32 timeout);
508 int (*set_coalesce_frames)(struct hnae3_handle *handle,
510 void (*get_coalesce_range)(struct hnae3_handle *handle,
516 void (*get_mac_addr)(struct hnae3_handle *handle, u8 *p);
517 int (*set_mac_addr)(struct hnae3_handle *handle, void *p,
519 int (*do_ioctl)(struct hnae3_handle *handle,
521 int (*add_uc_addr)(struct hnae3_handle *handle,
523 int (*rm_uc_addr)(struct hnae3_handle *handle,
525 int (*set_mc_addr)(struct hnae3_handle *handle, void *addr);
526 int (*add_mc_addr)(struct hnae3_handle *handle,
528 int (*rm_mc_addr)(struct hnae3_handle *handle,
530 void (*set_tso_stats)(struct hnae3_handle *handle, int enable);
531 void (*update_stats)(struct hnae3_handle *handle,
533 void (*get_stats)(struct hnae3_handle *handle, u64 *data);
534 void (*get_mac_stats)(struct hnae3_handle *handle,
536 void (*get_strings)(struct hnae3_handle *handle,
538 int (*get_sset_count)(struct hnae3_handle *handle, int stringset);
540 void (*get_regs)(struct hnae3_handle *handle, u32 *version,
542 int (*get_regs_len)(struct hnae3_handle *handle);
544 u32 (*get_rss_key_size)(struct hnae3_handle *handle);
545 u32 (*get_rss_indir_size)(struct hnae3_handle *handle);
546 int (*get_rss)(struct hnae3_handle *handle, u32 *indir, u8 *key,
548 int (*set_rss)(struct hnae3_handle *handle, const u32 *indir,
550 int (*set_rss_tuple)(struct hnae3_handle *handle,
552 int (*get_rss_tuple)(struct hnae3_handle *handle,
555 int (*get_tc_size)(struct hnae3_handle *handle);
557 int (*get_vector)(struct hnae3_handle *handle, u16 vector_num,
559 int (*put_vector)(struct hnae3_handle *handle, int vector_num);
560 int (*map_ring_to_vector)(struct hnae3_handle *handle,
563 int (*unmap_ring_from_vector)(struct hnae3_handle *handle,
567 int (*reset_queue)(struct hnae3_handle *handle, u16 queue_id);
568 u32 (*get_fw_version)(struct hnae3_handle *handle);
569 void (*get_mdix_mode)(struct hnae3_handle *handle,
572 void (*enable_vlan_filter)(struct hnae3_handle *handle, bool enable);
573 int (*set_vlan_filter)(struct hnae3_handle *handle, __be16 proto,
575 int (*set_vf_vlan_filter)(struct hnae3_handle *handle, int vfid,
577 int (*enable_hw_strip_rxvtag)(struct hnae3_handle *handle, bool enable);
578 void (*reset_event)(struct pci_dev *pdev, struct hnae3_handle *handle);
583 void (*get_channels)(struct hnae3_handle *handle,
587 int (*set_channels)(struct hnae3_handle *handle, u32 new_tqps_num,
589 void (*get_flowctrl_adv)(struct hnae3_handle *handle,
591 int (*set_led_id)(struct hnae3_handle *handle,
593 void (*get_link_mode)(struct hnae3_handle *handle,
596 int (*add_fd_entry)(struct hnae3_handle *handle,
598 int (*del_fd_entry)(struct hnae3_handle *handle,
600 void (*del_all_fd_entries)(struct hnae3_handle *handle,
602 int (*get_fd_rule_cnt)(struct hnae3_handle *handle,
604 int (*get_fd_rule_info)(struct hnae3_handle *handle,
606 int (*get_fd_all_rules)(struct hnae3_handle *handle,
608 void (*enable_fd)(struct hnae3_handle *handle, bool enable);
609 int (*add_arfs_entry)(struct hnae3_handle *handle, u16 queue_id,
611 int (*dbg_run_cmd)(struct hnae3_handle *handle, const char *cmd_buf);
613 bool (*get_hw_reset_stat)(struct hnae3_handle *handle);
614 bool (*ae_dev_resetting)(struct hnae3_handle *handle);
615 unsigned long (*ae_dev_reset_cnt)(struct hnae3_handle *handle);
616 int (*set_gro_en)(struct hnae3_handle *handle, bool enable);
617 u16 (*get_global_queue_id)(struct hnae3_handle *handle, u16 queue_id);
618 void (*set_timer_task)(struct hnae3_handle *handle, bool enable);
619 int (*mac_connect_phy)(struct hnae3_handle *handle);
620 void (*mac_disconnect_phy)(struct hnae3_handle *handle);
621 int (*get_vf_config)(struct hnae3_handle *handle, int vf,
623 int (*set_vf_link_state)(struct hnae3_handle *handle, int vf,
625 int (*set_vf_spoofchk)(struct hnae3_handle *handle, int vf,
627 int (*set_vf_trust)(struct hnae3_handle *handle, int vf, bool enable);
628 int (*set_vf_rate)(struct hnae3_handle *handle, int vf,
630 int (*set_vf_mac)(struct hnae3_handle *handle, int vf, u8 *p);
631 int (*get_module_eeprom)(struct hnae3_handle *handle, u32 offset,
633 bool (*get_cmdq_stat)(struct hnae3_handle *handle);
680 u16 num_tqps; /* total number of TQPs in this handle */
722 struct hnae3_ae_algo *ae_algo; /* the class who provides this handle */
723 u64 flags; /* Indicate the capabilities for this handle */