Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/gadget/legacy/
Dmulti.c302 struct f_ecm_opts *ecm_opts; in multi_bind() local
322 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in multi_bind()
324 gether_set_qmult(ecm_opts->net, qmult); in multi_bind()
325 if (!gether_set_host_addr(ecm_opts->net, host_addr)) in multi_bind()
327 if (!gether_set_dev_addr(ecm_opts->net, dev_addr)) in multi_bind()
354 gether_set_gadget(ecm_opts->net, cdev->gadget); in multi_bind()
355 status = gether_register_netdev(ecm_opts->net); in multi_bind()
359 rndis_borrow_net(fi_rndis, ecm_opts->net); in multi_bind()
360 ecm_opts->bound = true; in multi_bind()
Dcdc2.c145 struct f_ecm_opts *ecm_opts; in cdc_bind() local
158 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in cdc_bind()
160 gether_set_qmult(ecm_opts->net, qmult); in cdc_bind()
161 if (!gether_set_host_addr(ecm_opts->net, host_addr)) in cdc_bind()
163 if (!gether_set_dev_addr(ecm_opts->net, dev_addr)) in cdc_bind()
Dg_ffs.c329 struct f_ecm_opts *ecm_opts; in gfs_bind() local
334 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
335 net = ecm_opts->net; in gfs_bind()
380 struct f_ecm_opts *ecm_opts; in gfs_bind() local
382 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
383 ecm_opts->bound = true; in gfs_bind()
Dether.c312 struct f_ecm_opts *ecm_opts = NULL; in eth_bind() local
338 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in eth_bind()
340 net = ecm_opts->net; in eth_bind()
379 ecm_opts->bound = true; in eth_bind()
/linux-4.4.14/drivers/usb/gadget/function/
Df_ecm.c688 struct f_ecm_opts *ecm_opts; in ecm_bind() local
693 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
702 if (!ecm_opts->bound) { in ecm_bind()
703 mutex_lock(&ecm_opts->lock); in ecm_bind()
704 gether_set_gadget(ecm_opts->net, cdev->gadget); in ecm_bind()
705 status = gether_register_netdev(ecm_opts->net); in ecm_bind()
706 mutex_unlock(&ecm_opts->lock); in ecm_bind()
709 ecm_opts->bound = true; in ecm_bind()