Home
last modified time | relevance | path

Searched refs:eem_opts (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/usb/gadget/function/
H A Df_eem.c254 struct f_eem_opts *eem_opts; in eem_bind() local
257 eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); in eem_bind()
259 scoped_guard(mutex, &eem_opts->lock) in eem_bind()
260 if (eem_opts->bind_count == 0 && !eem_opts->bound) { in eem_bind()
261 if (!device_is_registered(&eem_opts->net->dev)) { in eem_bind()
262 gether_set_gadget(eem_opts->net, cdev->gadget); in eem_bind()
263 status = gether_register_netdev(eem_opts->net); in eem_bind()
265 status = gether_attach_gadget(eem_opts->net, cdev->gadget); in eem_bind()
269 net = eem_opts->net; in eem_bind()
311 eem_opts->bind_count++; in eem_bind()
/linux/drivers/usb/gadget/legacy/
H A Dether.c307 struct f_eem_opts *eem_opts = NULL; in eth_bind() local
320 eem_opts = container_of(fi_eem, struct f_eem_opts, func_inst); in eth_bind()
322 net = eem_opts->net; in eth_bind()
373 eem_opts->bound = true; in eth_bind()