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

/linux-4.4.14/drivers/usb/gadget/legacy/
H A Dncm.c136 struct f_ncm_opts *ncm_opts; gncm_bind() local
143 ncm_opts = container_of(f_ncm_inst, struct f_ncm_opts, func_inst); gncm_bind()
145 gether_set_qmult(ncm_opts->net, qmult); gncm_bind()
146 if (!gether_set_host_addr(ncm_opts->net, host_addr)) gncm_bind()
148 if (!gether_set_dev_addr(ncm_opts->net, dev_addr)) gncm_bind()
/linux-4.4.14/drivers/usb/gadget/function/
H A Df_ncm.c1343 struct f_ncm_opts *ncm_opts; ncm_bind() local
1348 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); ncm_bind()
1354 * with regard to ncm_opts->bound access ncm_bind()
1356 if (!ncm_opts->bound) { ncm_bind()
1357 mutex_lock(&ncm_opts->lock); ncm_bind()
1358 gether_set_gadget(ncm_opts->net, cdev->gadget); ncm_bind()
1359 status = gether_register_netdev(ncm_opts->net); ncm_bind()
1360 mutex_unlock(&ncm_opts->lock); ncm_bind()
1363 ncm_opts->bound = true; ncm_bind()

Completed in 100 milliseconds