Lines Matching refs:ncm_opts
1184 struct f_ncm_opts *ncm_opts; in ncm_unwrap_ntb() local
1186 ncm_opts = container_of(port->func.fi, struct f_ncm_opts, func_inst); in ncm_unwrap_ntb()
1187 frame_max = ncm_opts->max_segment_size; in ncm_unwrap_ntb()
1437 struct f_ncm_opts *ncm_opts; in ncm_bind() local
1442 ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); in ncm_bind()
1450 f->os_desc_table[0].os_desc = &ncm_opts->ncm_os_desc; in ncm_bind()
1453 mutex_lock(&ncm_opts->lock); in ncm_bind()
1454 gether_set_gadget(ncm_opts->net, cdev->gadget); in ncm_bind()
1455 if (!ncm_opts->bound) { in ncm_bind()
1456 ncm_opts->net->mtu = (ncm_opts->max_segment_size - ETH_HLEN); in ncm_bind()
1457 status = gether_register_netdev(ncm_opts->net); in ncm_bind()
1459 mutex_unlock(&ncm_opts->lock); in ncm_bind()
1464 ncm_opts->bound = true; in ncm_bind()
1501 ecm_desc.wMaxSegmentSize = cpu_to_le16(ncm_opts->max_segment_size); in ncm_bind()