Home
last modified time | relevance | path

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

/linux/drivers/usb/gadget/function/
H A Df_subset.c301 struct f_gether_opts *gether_opts; in geth_bind() local
304 gether_opts = container_of(f->fi, struct f_gether_opts, func_inst); in geth_bind()
306 scoped_guard(mutex, &gether_opts->lock) in geth_bind()
307 if (gether_opts->bind_count == 0 && !gether_opts->bound) { in geth_bind()
308 if (!device_is_registered(&gether_opts->net->dev)) { in geth_bind()
309 gether_set_gadget(gether_opts->net, cdev->gadget); in geth_bind()
310 status = gether_register_netdev(gether_opts->net); in geth_bind()
312 status = gether_attach_gadget(gether_opts->net, cdev->gadget); in geth_bind()
316 net = gether_opts->net; in geth_bind()
366 gether_opts->bind_count++; in geth_bind()