Home
last modified time | relevance | path

Searched refs:ncm_opts (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/
H A Dncm.c130 struct f_ncm_opts *ncm_opts; in gncm_bind() local
137 ncm_opts = container_of(f_ncm_inst, struct f_ncm_opts, func_inst); in gncm_bind()
139 gether_set_qmult(ncm_opts->net, qmult); in gncm_bind()
140 if (!gether_set_host_addr(ncm_opts->net, host_addr)) in gncm_bind()
142 if (!gether_set_dev_addr(ncm_opts->net, dev_addr)) in gncm_bind()
/kernel/linux/linux-6.6/drivers/usb/gadget/legacy/
H A Dncm.c130 struct f_ncm_opts *ncm_opts; in gncm_bind() local
137 ncm_opts = container_of(f_ncm_inst, struct f_ncm_opts, func_inst); in gncm_bind()
139 gether_set_qmult(ncm_opts->net, qmult); in gncm_bind()
140 if (!gether_set_host_addr(ncm_opts->net, host_addr)) in gncm_bind()
142 if (!gether_set_dev_addr(ncm_opts->net, dev_addr)) in gncm_bind()
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Df_ncm.c1423 struct f_ncm_opts *ncm_opts; in ncm_bind() local
1428 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1436 f->os_desc_table[0].os_desc = &ncm_opts->ncm_os_desc; in ncm_bind()
1439 mutex_lock(&ncm_opts->lock); in ncm_bind()
1440 gether_set_gadget(ncm_opts->net, cdev->gadget); in ncm_bind()
1441 if (!ncm_opts->bound) in ncm_bind()
1442 status = gether_register_netdev(ncm_opts->net); in ncm_bind()
1443 mutex_unlock(&ncm_opts->lock); in ncm_bind()
1448 ncm_opts->bound = true; in ncm_bind()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
H A Df_ncm.c1440 struct f_ncm_opts *ncm_opts; in ncm_bind() local
1445 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1453 f->os_desc_table[0].os_desc = &ncm_opts->ncm_os_desc; in ncm_bind()
1456 mutex_lock(&ncm_opts->lock); in ncm_bind()
1457 gether_set_gadget(ncm_opts->net, cdev->gadget); in ncm_bind()
1458 if (!ncm_opts->bound) in ncm_bind()
1459 status = gether_register_netdev(ncm_opts->net); in ncm_bind()
1460 mutex_unlock(&ncm_opts->lock); in ncm_bind()
1465 ncm_opts->bound = true; in ncm_bind()

Completed in 5 milliseconds