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
465 void (*put_handle)(struct hnae_handle *handle);
468 int (*start)(struct hnae_handle *handle);
469 void (*stop)(struct hnae_handle *handle);
470 void (*reset)(struct hnae_handle *handle);
471 int (*set_opts)(struct hnae_handle *handle, int type, void *opts);
472 int (*get_opts)(struct hnae_handle *handle, int type, void **opts);
473 int (*get_status)(struct hnae_handle *handle);
474 int (*get_info)(struct hnae_handle *handle,
477 void (*adjust_link)(struct hnae_handle *handle, int speed, int duplex);
478 bool (*need_adjust_link)(struct hnae_handle *handle,
480 int (*set_loopback)(struct hnae_handle *handle,
484 void (*get_pauseparam)(struct hnae_handle *handle,
486 int (*set_pauseparam)(struct hnae_handle *handle,
488 void (*get_coalesce_usecs)(struct hnae_handle *handle,
490 void (*get_max_coalesced_frames)(struct hnae_handle *handle,
492 int (*set_coalesce_usecs)(struct hnae_handle *handle, u32 timeout);
493 int (*set_coalesce_frames)(struct hnae_handle *handle,
495 void (*get_coalesce_range)(struct hnae_handle *handle,
500 void (*set_promisc_mode)(struct hnae_handle *handle, u32 en);
501 int (*get_mac_addr)(struct hnae_handle *handle, void **p);
502 int (*set_mac_addr)(struct hnae_handle *handle, const void *p);
503 int (*add_uc_addr)(struct hnae_handle *handle,
505 int (*rm_uc_addr)(struct hnae_handle *handle,
507 int (*clr_mc_addr)(struct hnae_handle *handle);
508 int (*set_mc_addr)(struct hnae_handle *handle, void *addr);
509 int (*set_mtu)(struct hnae_handle *handle, int new_mtu);
510 void (*set_tso_stats)(struct hnae_handle *handle, int enable);
511 void (*update_stats)(struct hnae_handle *handle,
513 void (*get_stats)(struct hnae_handle *handle, u64 *data);
514 void (*get_strings)(struct hnae_handle *handle,
516 int (*get_sset_count)(struct hnae_handle *handle, int stringset);
517 void (*update_led_status)(struct hnae_handle *handle);
518 int (*set_led_id)(struct hnae_handle *handle,
520 void (*get_regs)(struct hnae_handle *handle, void *data);
521 int (*get_regs_len)(struct hnae_handle *handle);
522 u32 (*get_rss_key_size)(struct hnae_handle *handle);
523 u32 (*get_rss_indir_size)(struct hnae_handle *handle);
524 int (*get_rss)(struct hnae_handle *handle, u32 *indir, u8 *key,
526 int (*set_rss)(struct hnae_handle *handle, const u32 *indir,
543 struct device *owner_dev; /* the device which make use of this handle */
544 struct hnae_ae_dev *dev; /* the device who provides this handle */
571 void hnae_put_handle(struct hnae_handle *handle);
577 int hnae_reinit_handle(struct hnae_handle *handle);
589 struct hnae_buf_ops *bops = ring->q->handle->bops;
622 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]);
628 struct hnae_buf_ops *bops = ring->q->handle->bops;
642 struct hnae_buf_ops *bops = ring->q->handle->bops;