Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/gadget/legacy/
Dncm.c149 struct f_ncm_opts *ncm_opts; in gncm_bind() local
156 ncm_opts = container_of(f_ncm_inst, struct f_ncm_opts, func_inst); in gncm_bind()
158 gether_set_qmult(ncm_opts->net, qmult); in gncm_bind()
159 if (!gether_set_host_addr(ncm_opts->net, host_addr)) in gncm_bind()
161 if (!gether_set_dev_addr(ncm_opts->net, dev_addr)) in gncm_bind()
/linux-4.1.27/drivers/usb/gadget/function/
Df_ncm.c1348 struct f_ncm_opts *ncm_opts; in ncm_bind() local
1353 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1361 if (!ncm_opts->bound) { in ncm_bind()
1362 mutex_lock(&ncm_opts->lock); in ncm_bind()
1363 gether_set_gadget(ncm_opts->net, cdev->gadget); in ncm_bind()
1364 status = gether_register_netdev(ncm_opts->net); in ncm_bind()
1365 mutex_unlock(&ncm_opts->lock); in ncm_bind()
1368 ncm_opts->bound = true; in ncm_bind()