Home
last modified time | relevance | path

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

/linux/drivers/usb/gadget/legacy/
H A Dncm.c130 struct f_ncm_opts *ncm_opts; in gncm_bind() local
137 ncm_opts = container_of(f_ncm_inst, struct f_ncm_opts, func_inst); in gncm_bind()
139 gether_set_qmult(ncm_opts->net, qmult); in gncm_bind()
140 if (!gether_set_host_addr(ncm_opts->net, host_addr)) in gncm_bind()
142 if (!gether_set_dev_addr(ncm_opts->net, dev_addr)) in gncm_bind()
/linux/drivers/usb/gadget/function/
H A Df_ncm.c1186 struct f_ncm_opts *ncm_opts; in ncm_unwrap_ntb() local
1188 ncm_opts = container_of(port->func.fi, struct f_ncm_opts, func_inst); in ncm_unwrap_ntb()
1189 frame_max = ncm_opts->max_segment_size; in ncm_unwrap_ntb()
1448 struct f_ncm_opts *ncm_opts; in ncm_bind() local
1457 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1465 scoped_guard(mutex, &ncm_opts->lock) in ncm_bind()
1466 if (ncm_opts->bind_count == 0) { in ncm_bind()
1467 if (!device_is_registered(&ncm_opts->net->dev)) { in ncm_bind()
1468 ncm_opts->net->mtu = (ncm_opts->max_segment_size - ETH_HLEN); in ncm_bind()
1469 gether_set_gadget(ncm_opts->net, cdev->gadget); in ncm_bind()
[all …]