Home
last modified time | relevance | path

Searched refs:cdev (Results 1 – 22 of 22) sorted by relevance

/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Dusbd_config.c122 static struct gadget_info *gadget_find_by_name(struct fconfig_softc *cdev, in gadget_find_by_name() argument
129 gadget_name = fconfig_get_string(&cdev->obj, name); in gadget_find_by_name()
136 obj = usbobj_find(&cdev->obj, gadget_match, (void *)gadget_name); in gadget_find_by_name()
142 usbm_free(&cdev->obj, gadget_name); in gadget_find_by_name()
146 static int gadget_make(struct fconfig_softc *cdev, char *name) in gadget_make() argument
151 spin_lock_irqsave(&cdev->obj.lock, flags); in gadget_make()
152 if (!list_empty(&cdev->obj.children)) in gadget_make()
155 spin_unlock_irqrestore(&cdev->obj.lock, flags); in gadget_make()
158 spin_unlock_irqrestore(&cdev->obj.lock, flags); in gadget_make()
160 gi = usbm_malloc(&cdev->obj, sizeof(*gi)); in gadget_make()
[all …]
Df_config.c88 struct fconfig_softc *cdev = &g_fconfig_softc; in fconfig_find_gadget() local
91 obj = usbobj_find(&cdev->obj, gadget_match, com_s); in fconfig_find_gadget()
239 struct fconfig_softc *cdev = &g_fconfig_softc; in fconfig_find_cfg() local
245 obj = usbobj_find(&cdev->obj, gadget_match, com_s); in fconfig_find_cfg()
446 struct fconfig_softc *cdev = &g_fconfig_softc; in usbdev_fconfig_initialize() local
451 (void)memset_s(cdev, sizeof(*cdev), 0, sizeof(*cdev)); in usbdev_fconfig_initialize()
452 usbobj_init(&cdev->obj, "fconfig", NULL); in usbdev_fconfig_initialize()
459 cdev->com_s = com_s; in usbdev_fconfig_initialize()
462 ret = fconfig_fops_init(cdev); in usbdev_fconfig_initialize()
Df_generic.c503 struct composite_dev_s *cdev = NULL; in usbclass_generic_bind() local
514 cdev = dev->ep0->priv; in usbclass_generic_bind()
527 devobj = usbclass_devobj_get(cdev, priv->minor); in usbclass_generic_bind()
536 priv->ctrlreq = cdev->ctrlreq; in usbclass_generic_bind()
/third_party/NuttX/drivers/usbdev/gadget/
Dcomposite.c65 int composite_device_init(struct composite_softc *cdev);
160 struct composite_dev_s *cdev; in usb_composite_unbind() local
169 cdev = ((struct composite_driver_s *)driver)->dev; in usb_composite_unbind()
173 if (cdev != NULL) in usb_composite_unbind()
179 for (i = 0; i < cdev->ndevices; i++) in usb_composite_unbind()
181 ret = CLASS_UNBIND(cdev->device[i].dev, dev); in usb_composite_unbind()
191 cdev->config = COMPOSITE_CONFIGIDNONE; in usb_composite_unbind()
192 composite_freereq(cdev->ctrlreq); in usb_composite_unbind()
193 cdev->ctrlreq = NULL; in usb_composite_unbind()
194 cdev->usbdev = NULL; in usb_composite_unbind()
[all …]
Dusbd_audio.c51 struct composite_softc *cdev; in get_uac() local
68 cdev = (struct composite_softc *)device_get_softc(dev); in get_uac()
69 if (cdev == NULL) in get_uac()
75 devobj = usbclass_devobj_get(&cdev->dev, DEV_UAC); in get_uac()
Df_uac.c635 struct composite_dev_s *cdev; in usbclass_uac_bind() local
645 cdev = dev->ep0->priv; in usbclass_uac_bind()
660 devobj = usbclass_devobj_get(cdev, DEV_UAC); in usbclass_uac_bind()
709 struct composite_dev_s *cdev; in usbclass_uac_unbind() local
720 cdev = dev->ep0->priv; in usbclass_uac_unbind()
721 if (cdev == NULL) in usbclass_uac_unbind()
726 devobj = usbclass_devobj_get(cdev, DEV_UAC); in usbclass_uac_unbind()
Df_hid.c423 struct composite_dev_s *cdev; in usbclass_hid_bind() local
434 cdev = dev->ep0->priv; in usbclass_hid_bind()
447 devobj = usbclass_devobj_get(cdev, DEV_HID); in usbclass_hid_bind()
514 struct composite_dev_s *cdev; in usbclass_hid_unbind() local
549 cdev = dev->ep0->priv; in usbclass_hid_unbind()
550 devobj = usbclass_devobj_get(cdev, DEV_HID); in usbclass_hid_unbind()
Ddfu.c302 struct composite_dev_s *cdev = dev->ep0->priv; in usbclass_bind() local
304 priv->ctrlreq = cdev->ctrlreq; in usbclass_bind()
Dcomposite.h174 extern struct composite_devobj_s *usbclass_devobj_get(struct composite_dev_s *cdev, device_type typ…
Df_uvc.c2238 struct composite_dev_s *cdev; in usbclass_uvc_bind() local
2247 cdev = dev->ep0->priv; in usbclass_uvc_bind()
2248 if (cdev == NULL) in usbclass_uvc_bind()
2259 devobj = usbclass_devobj_get(cdev, DEV_UVC); in usbclass_uvc_bind()
2353 struct composite_dev_s *cdev; in usbclass_uvc_unbind() local
2389 cdev = dev->ep0->priv; in usbclass_uvc_unbind()
2390 if (cdev == NULL) in usbclass_uvc_unbind()
2394 devobj = usbclass_devobj_get(cdev, DEV_UVC); in usbclass_uvc_unbind()
Drndis.c1673 struct composite_dev_s *cdev; in usbclass_bind() local
1681 cdev = dev->ep0->priv; in usbclass_bind()
1682 if (cdev == NULL) in usbclass_bind()
1688 devobj = usbclass_devobj_get(cdev, DEV_ETHERNET); in usbclass_bind()
1697 priv->ctrlreq = cdev->ctrlreq; in usbclass_bind()
Dcdcacm.c1045 FAR struct composite_dev_s *cdev; in cdcacm_bind() local
1069 cdev = dev->ep0->priv; in cdcacm_bind()
1084 priv->ctrlreq = cdev->ctrlreq; in cdcacm_bind()
1091 devobj = usbclass_devobj_get(cdev, DEV_SERIAL); in cdcacm_bind()
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/
Dgstcudacontext.c142 CUdevice cdev = 0, cuda_dev = -1; in gst_cuda_context_constructed() local
167 if (gst_cuda_result (CuDeviceGet (&cdev, i)) && in gst_cuda_context_constructed()
168 gst_cuda_result (CuDeviceGetName (name, sizeof (name), cdev)) && in gst_cuda_context_constructed()
170 CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, cdev)) && in gst_cuda_context_constructed()
172 CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, cdev)) && in gst_cuda_context_constructed()
174 CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT, cdev))) { in gst_cuda_context_constructed()
177 if (priv->device_id == -1 || priv->device_id == cdev) { in gst_cuda_context_constructed()
178 priv->device_id = cuda_dev = cdev; in gst_cuda_context_constructed()
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/
Dusbd_config.h150 struct fconfig_softc *cdev; member
181 extern int fconfig_fops_init(struct fconfig_softc *cdev);
182 extern int fconfig_fops_deinit(const struct fconfig_softc *cdev);
/third_party/alsa-lib/src/ucm/
Dmain.c67 char *cdev);
677 char *cdev = NULL; in execute_sequence() local
687 cdev = strdup(s->data.cdev); in execute_sequence()
688 if (cdev == NULL) in execute_sequence()
690 if (rewrite_device_value(uc_mgr, "PlaybackCTL", &cdev)) in execute_sequence()
698 if (cdev == NULL && uc_mgr->in_component_domain) { in execute_sequence()
702 if (uc_mgr->cdev == NULL) { in execute_sequence()
707 cdev = strndup(uc_mgr->cdev, PATH_MAX); in execute_sequence()
708 if (!cdev) in execute_sequence()
710 } else if (cdev == NULL) { in execute_sequence()
[all …]
Ducm_local.h78 char *cdev; member
274 char *cdev; member
Dutils.c499 free(seq->data.cdev); in uc_mgr_free_sequence_element()
Dparser.c814 err = parse_string_substitute3(uc_mgr, n, &curr->data.cdev); in parse_sequence()
/third_party/eudev/src/udev/
Dudev-builtin-net_id.c369 struct udev_device *cdev; in names_ccw() local
375 cdev = udev_device_get_parent(dev); in names_ccw()
376 if (!cdev) in names_ccw()
380 if (!streq_ptr("ccwgroup", udev_device_get_subsystem(cdev))) in names_ccw()
387 bus_id = udev_device_get_sysname(cdev); in names_ccw()
/third_party/alsa-lib/test/ucm/TestHDA/
DTestHDA.conf11 cdev "hw:0"
/third_party/curl/lib/vtls/
Dgskit.c997 const gsk_cert_data_elem *cdev; in gskit_connect_step3() local
1009 &cdev, &cdec), in gskit_connect_step3()
1015 p = cdev; in gskit_connect_step3()
1020 certend = cert + cdev->cert_data_l; in gskit_connect_step3()
/third_party/gstreamer/gstplugins_bad/
DChangeLog48266 && cuDeviceComputeCapability (&maj, &min, cdev) == CUDA_SUCCESS) {