Home
last modified time | relevance | path

Searched refs:ecm_opts (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/
H A Dmulti.c298 struct f_ecm_opts *ecm_opts; in multi_bind() local
318 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in multi_bind()
320 gether_set_qmult(ecm_opts->net, qmult); in multi_bind()
321 if (!gether_set_host_addr(ecm_opts->net, host_addr)) in multi_bind()
323 if (!gether_set_dev_addr(ecm_opts->net, dev_addr)) in multi_bind()
350 gether_set_gadget(ecm_opts->net, cdev->gadget); in multi_bind()
351 status = gether_register_netdev(ecm_opts->net); in multi_bind()
355 rndis_borrow_net(fi_rndis, ecm_opts->net); in multi_bind()
356 ecm_opts->bound = true; in multi_bind()
H A Dcdc2.c141 struct f_ecm_opts *ecm_opts; in cdc_bind() local
154 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in cdc_bind()
156 gether_set_qmult(ecm_opts->net, qmult); in cdc_bind()
157 if (!gether_set_host_addr(ecm_opts->net, host_addr)) in cdc_bind()
159 if (!gether_set_dev_addr(ecm_opts->net, dev_addr)) in cdc_bind()
H A Dg_ffs.c325 struct f_ecm_opts *ecm_opts; in gfs_bind() local
330 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
331 net = ecm_opts->net; in gfs_bind()
373 struct f_ecm_opts *ecm_opts; in gfs_bind() local
375 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
376 ecm_opts->bound = true; in gfs_bind()
H A Dether.c308 struct f_ecm_opts *ecm_opts = NULL; in eth_bind() local
334 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in eth_bind()
336 net = ecm_opts->net; in eth_bind()
375 ecm_opts->bound = true; in eth_bind()
/kernel/linux/linux-6.6/drivers/usb/gadget/legacy/
H A Dmulti.c298 struct f_ecm_opts *ecm_opts; in multi_bind() local
318 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in multi_bind()
320 gether_set_qmult(ecm_opts->net, qmult); in multi_bind()
321 if (!gether_set_host_addr(ecm_opts->net, host_addr)) in multi_bind()
323 if (!gether_set_dev_addr(ecm_opts->net, dev_addr)) in multi_bind()
350 gether_set_gadget(ecm_opts->net, cdev->gadget); in multi_bind()
351 status = gether_register_netdev(ecm_opts->net); in multi_bind()
355 rndis_borrow_net(fi_rndis, ecm_opts->net); in multi_bind()
356 ecm_opts->bound = true; in multi_bind()
H A Dcdc2.c141 struct f_ecm_opts *ecm_opts; in cdc_bind() local
154 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in cdc_bind()
156 gether_set_qmult(ecm_opts->net, qmult); in cdc_bind()
157 if (!gether_set_host_addr(ecm_opts->net, host_addr)) in cdc_bind()
159 if (!gether_set_dev_addr(ecm_opts->net, dev_addr)) in cdc_bind()
H A Dg_ffs.c319 struct f_ecm_opts *ecm_opts; in gfs_bind() local
324 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
325 net = ecm_opts->net; in gfs_bind()
367 struct f_ecm_opts *ecm_opts; in gfs_bind() local
369 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in gfs_bind()
370 ecm_opts->bound = true; in gfs_bind()
H A Dether.c308 struct f_ecm_opts *ecm_opts = NULL; in eth_bind() local
334 ecm_opts = container_of(fi_ecm, struct f_ecm_opts, func_inst); in eth_bind()
336 net = ecm_opts->net; in eth_bind()
375 ecm_opts->bound = true; in eth_bind()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
H A Df_ecm.c691 struct f_ecm_opts *ecm_opts; in ecm_bind() local
696 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
703 * with regard to ecm_opts->bound access in ecm_bind()
705 if (!ecm_opts->bound) { in ecm_bind()
706 mutex_lock(&ecm_opts->lock); in ecm_bind()
707 gether_set_gadget(ecm_opts->net, cdev->gadget); in ecm_bind()
708 status = gether_register_netdev(ecm_opts->net); in ecm_bind()
709 mutex_unlock(&ecm_opts->lock); in ecm_bind()
712 ecm_opts->bound = true; in ecm_bind()
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Df_ecm.c680 struct f_ecm_opts *ecm_opts; in ecm_bind() local
685 ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); in ecm_bind()
687 mutex_lock(&ecm_opts->lock); in ecm_bind()
689 gether_set_gadget(ecm_opts->net, cdev->gadget); in ecm_bind()
691 if (!ecm_opts->bound) { in ecm_bind()
692 status = gether_register_netdev(ecm_opts->net); in ecm_bind()
693 ecm_opts->bound = true; in ecm_bind()
696 mutex_unlock(&ecm_opts->lock); in ecm_bind()

Completed in 7 milliseconds