fun_ethdev
static inline struct fun_ethdev *to_fun_ethdev(struct fun_dev *p)
return container_of(p, struct fun_ethdev, fdev);
return devlink_alloc(&fun_dl_ops, sizeof(struct fun_ethdev), dev);
static int fun_init_vports(struct fun_ethdev *ed, unsigned int n)
static void fun_free_vports(struct fun_ethdev *ed)
static struct fun_vport_info *fun_get_vport(struct fun_ethdev *ed,
struct fun_ethdev *ed = to_fun_ethdev(fdev);
struct fun_ethdev *ed = to_fun_ethdev(fdev);
struct fun_ethdev *ed = to_fun_ethdev(fdev);
struct fun_ethdev *ed = to_fun_ethdev(fp->fdev);
static int fun_max_qs(struct fun_ethdev *ed, unsigned int *ntx,
static int fun_create_netdev(struct fun_ethdev *ed, unsigned int portid)
static int fun_create_ports(struct fun_ethdev *ed, unsigned int nports)
static void fun_destroy_ports(struct fun_ethdev *ed)
static void fun_update_link_state(const struct fun_ethdev *ed,
struct fun_ethdev *ed = to_fun_ethdev(fdev);
struct fun_ethdev *ed = to_fun_ethdev(fdev);
struct fun_ethdev *ed;
struct fun_ethdev *ed;