Lines Matching full:handle
8 * ae handle (handle):
89 struct hnae3_handle *handle; member
90 int tqp_index; /* index in a handle */
215 int (*init_instance)(struct hnae3_handle *handle);
216 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
217 void (*link_status_change)(struct hnae3_handle *handle, bool state);
218 int (*setup_tc)(struct hnae3_handle *handle, u8 tc);
219 int (*reset_notify)(struct hnae3_handle *handle,
221 void (*process_hw_error)(struct hnae3_handle *handle,
244 /* This struct defines the operation on the handle.
263 * Get the carrier state of the back channel of the handle, 1 for ok, 0 for
340 * Get tc size of handle
379 int (*start)(struct hnae3_handle *handle);
380 void (*stop)(struct hnae3_handle *handle);
381 int (*client_start)(struct hnae3_handle *handle);
382 void (*client_stop)(struct hnae3_handle *handle);
383 int (*get_status)(struct hnae3_handle *handle);
384 void (*get_ksettings_an_result)(struct hnae3_handle *handle,
387 int (*cfg_mac_speed_dup_h)(struct hnae3_handle *handle, int speed,
390 void (*get_media_type)(struct hnae3_handle *handle, u8 *media_type,
392 int (*check_port_speed)(struct hnae3_handle *handle, u32 speed);
393 void (*get_fec)(struct hnae3_handle *handle, u8 *fec_ability,
395 int (*set_fec)(struct hnae3_handle *handle, u32 fec_mode);
396 void (*adjust_link)(struct hnae3_handle *handle, int speed, int duplex);
397 int (*set_loopback)(struct hnae3_handle *handle,
400 int (*set_promisc_mode)(struct hnae3_handle *handle, bool en_uc_pmc,
402 int (*set_mtu)(struct hnae3_handle *handle, int new_mtu);
404 void (*get_pauseparam)(struct hnae3_handle *handle,
406 int (*set_pauseparam)(struct hnae3_handle *handle,
409 int (*set_autoneg)(struct hnae3_handle *handle, bool enable);
410 int (*get_autoneg)(struct hnae3_handle *handle);
411 int (*restart_autoneg)(struct hnae3_handle *handle);
412 int (*halt_autoneg)(struct hnae3_handle *handle, bool halt);
414 void (*get_coalesce_usecs)(struct hnae3_handle *handle,
416 void (*get_rx_max_coalesced_frames)(struct hnae3_handle *handle,
418 int (*set_coalesce_usecs)(struct hnae3_handle *handle, u32 timeout);
419 int (*set_coalesce_frames)(struct hnae3_handle *handle,
421 void (*get_coalesce_range)(struct hnae3_handle *handle,
427 void (*get_mac_addr)(struct hnae3_handle *handle, u8 *p);
428 int (*set_mac_addr)(struct hnae3_handle *handle, void *p,
430 int (*do_ioctl)(struct hnae3_handle *handle,
432 int (*add_uc_addr)(struct hnae3_handle *handle,
434 int (*rm_uc_addr)(struct hnae3_handle *handle,
436 int (*set_mc_addr)(struct hnae3_handle *handle, void *addr);
437 int (*add_mc_addr)(struct hnae3_handle *handle,
439 int (*rm_mc_addr)(struct hnae3_handle *handle,
441 void (*set_tso_stats)(struct hnae3_handle *handle, int enable);
442 void (*update_stats)(struct hnae3_handle *handle,
444 void (*get_stats)(struct hnae3_handle *handle, u64 *data);
445 void (*get_mac_stats)(struct hnae3_handle *handle,
447 void (*get_strings)(struct hnae3_handle *handle,
449 int (*get_sset_count)(struct hnae3_handle *handle, int stringset);
451 void (*get_regs)(struct hnae3_handle *handle, u32 *version,
453 int (*get_regs_len)(struct hnae3_handle *handle);
455 u32 (*get_rss_key_size)(struct hnae3_handle *handle);
456 u32 (*get_rss_indir_size)(struct hnae3_handle *handle);
457 int (*get_rss)(struct hnae3_handle *handle, u32 *indir, u8 *key,
459 int (*set_rss)(struct hnae3_handle *handle, const u32 *indir,
461 int (*set_rss_tuple)(struct hnae3_handle *handle,
463 int (*get_rss_tuple)(struct hnae3_handle *handle,
466 int (*get_tc_size)(struct hnae3_handle *handle);
468 int (*get_vector)(struct hnae3_handle *handle, u16 vector_num,
470 int (*put_vector)(struct hnae3_handle *handle, int vector_num);
471 int (*map_ring_to_vector)(struct hnae3_handle *handle,
474 int (*unmap_ring_from_vector)(struct hnae3_handle *handle,
478 int (*reset_queue)(struct hnae3_handle *handle, u16 queue_id);
479 u32 (*get_fw_version)(struct hnae3_handle *handle);
480 void (*get_mdix_mode)(struct hnae3_handle *handle,
483 void (*enable_vlan_filter)(struct hnae3_handle *handle, bool enable);
484 int (*set_vlan_filter)(struct hnae3_handle *handle, __be16 proto,
486 int (*set_vf_vlan_filter)(struct hnae3_handle *handle, int vfid,
488 int (*enable_hw_strip_rxvtag)(struct hnae3_handle *handle, bool enable);
489 void (*reset_event)(struct pci_dev *pdev, struct hnae3_handle *handle);
494 void (*get_channels)(struct hnae3_handle *handle,
498 int (*set_channels)(struct hnae3_handle *handle, u32 new_tqps_num,
500 void (*get_flowctrl_adv)(struct hnae3_handle *handle,
502 int (*set_led_id)(struct hnae3_handle *handle,
504 void (*get_link_mode)(struct hnae3_handle *handle,
507 int (*add_fd_entry)(struct hnae3_handle *handle,
509 int (*del_fd_entry)(struct hnae3_handle *handle,
511 void (*del_all_fd_entries)(struct hnae3_handle *handle,
513 int (*get_fd_rule_cnt)(struct hnae3_handle *handle,
515 int (*get_fd_rule_info)(struct hnae3_handle *handle,
517 int (*get_fd_all_rules)(struct hnae3_handle *handle,
519 int (*restore_fd_rules)(struct hnae3_handle *handle);
520 void (*enable_fd)(struct hnae3_handle *handle, bool enable);
521 int (*add_arfs_entry)(struct hnae3_handle *handle, u16 queue_id,
523 int (*dbg_run_cmd)(struct hnae3_handle *handle, const char *cmd_buf);
525 bool (*get_hw_reset_stat)(struct hnae3_handle *handle);
526 bool (*ae_dev_resetting)(struct hnae3_handle *handle);
527 unsigned long (*ae_dev_reset_cnt)(struct hnae3_handle *handle);
528 int (*set_gro_en)(struct hnae3_handle *handle, bool enable);
529 u16 (*get_global_queue_id)(struct hnae3_handle *handle, u16 queue_id);
530 void (*set_timer_task)(struct hnae3_handle *handle, bool enable);
531 int (*mac_connect_phy)(struct hnae3_handle *handle);
532 void (*mac_disconnect_phy)(struct hnae3_handle *handle);
533 void (*restore_vlan_table)(struct hnae3_handle *handle);
580 u16 num_tqps; /* total number of TQPs in this handle */
609 u16 num_tqps; /* total number of tqps in this handle */
632 struct hnae3_ae_algo *ae_algo; /* the class who provides this handle */
633 u64 flags; /* Indicate the capabilities for this handle */