Lines Matching defs:handle

10  *      ae handle (handle):
358 struct hnae_handle *handle;
384 /* This struct defines the operation on the handle.
387 * Get a handle from AE according to its name and options.
388 * the AE driver should manage the space used by handle and its queues while
392 * Release the handle.
402 * Get the carrier state of the back channel of the handle, 1 for ok, 0 for
469 void (*put_handle)(struct hnae_handle *handle);
472 int (*start)(struct hnae_handle *handle);
473 void (*stop)(struct hnae_handle *handle);
474 void (*reset)(struct hnae_handle *handle);
475 int (*set_opts)(struct hnae_handle *handle, int type, void *opts);
476 int (*get_opts)(struct hnae_handle *handle, int type, void **opts);
477 int (*get_status)(struct hnae_handle *handle);
478 int (*get_info)(struct hnae_handle *handle,
481 void (*adjust_link)(struct hnae_handle *handle, int speed, int duplex);
482 bool (*need_adjust_link)(struct hnae_handle *handle,
484 int (*set_loopback)(struct hnae_handle *handle,
488 void (*get_pauseparam)(struct hnae_handle *handle,
490 int (*set_autoneg)(struct hnae_handle *handle, u8 enable);
491 int (*get_autoneg)(struct hnae_handle *handle);
492 int (*set_pauseparam)(struct hnae_handle *handle,
494 void (*get_coalesce_usecs)(struct hnae_handle *handle,
496 void (*get_max_coalesced_frames)(struct hnae_handle *handle,
498 int (*set_coalesce_usecs)(struct hnae_handle *handle, u32 timeout);
499 int (*set_coalesce_frames)(struct hnae_handle *handle,
501 void (*get_coalesce_range)(struct hnae_handle *handle,
506 void (*set_promisc_mode)(struct hnae_handle *handle, u32 en);
507 int (*get_mac_addr)(struct hnae_handle *handle, void **p);
508 int (*set_mac_addr)(struct hnae_handle *handle, void *p);
509 int (*add_uc_addr)(struct hnae_handle *handle,
511 int (*rm_uc_addr)(struct hnae_handle *handle,
513 int (*clr_mc_addr)(struct hnae_handle *handle);
514 int (*set_mc_addr)(struct hnae_handle *handle, void *addr);
515 int (*set_mtu)(struct hnae_handle *handle, int new_mtu);
516 void (*set_tso_stats)(struct hnae_handle *handle, int enable);
517 void (*update_stats)(struct hnae_handle *handle,
519 void (*get_stats)(struct hnae_handle *handle, u64 *data);
520 void (*get_strings)(struct hnae_handle *handle,
522 int (*get_sset_count)(struct hnae_handle *handle, int stringset);
523 void (*update_led_status)(struct hnae_handle *handle);
524 int (*set_led_id)(struct hnae_handle *handle,
526 void (*get_regs)(struct hnae_handle *handle, void *data);
527 int (*get_regs_len)(struct hnae_handle *handle);
528 u32 (*get_rss_key_size)(struct hnae_handle *handle);
529 u32 (*get_rss_indir_size)(struct hnae_handle *handle);
530 int (*get_rss)(struct hnae_handle *handle, u32 *indir, u8 *key,
532 int (*set_rss)(struct hnae_handle *handle, const u32 *indir,
549 struct device *owner_dev; /* the device which make use of this handle */
550 struct hnae_ae_dev *dev; /* the device who provides this handle */
577 void hnae_put_handle(struct hnae_handle *handle);
583 int hnae_reinit_handle(struct hnae_handle *handle);
595 struct hnae_buf_ops *bops = ring->q->handle->bops;
628 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]);
634 struct hnae_buf_ops *bops = ring->q->handle->bops;
648 struct hnae_buf_ops *bops = ring->q->handle->bops;