Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/gadget/legacy/
H A Dmulti.c301 struct f_rndis_opts *rndis_opts; in multi_bind() local
334 rndis_opts = container_of(fi_rndis, struct f_rndis_opts, func_inst); in multi_bind()
336 gether_set_qmult(rndis_opts->net, qmult); in multi_bind()
337 if (!gether_set_host_addr(rndis_opts->net, host_addr)) in multi_bind()
339 if (!gether_set_dev_addr(rndis_opts->net, dev_addr)) in multi_bind()
/openbmc/linux/drivers/usb/gadget/function/
H A Df_rndis.c664 struct f_rndis_opts *rndis_opts; in rndis_bind() local
669 rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); in rndis_bind()
677 f->os_desc_table[0].os_desc = &rndis_opts->rndis_os_desc; in rndis_bind()
680 rndis_iad_descriptor.bFunctionClass = rndis_opts->class; in rndis_bind()
681 rndis_iad_descriptor.bFunctionSubClass = rndis_opts->subclass; in rndis_bind()
682 rndis_iad_descriptor.bFunctionProtocol = rndis_opts->protocol; in rndis_bind()
691 if (!rndis_opts->bound) { in rndis_bind()
692 gether_set_gadget(rndis_opts->net, cdev->gadget); in rndis_bind()
693 status = gether_register_netdev(rndis_opts->net); in rndis_bind()
696 rndis_opts->bound = true; in rndis_bind()