Home
last modified time | relevance | path

Searched refs:cfg_desc (Results 1 – 3 of 3) sorted by relevance

/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Dusbd_config.c273 struct usb_config_descriptor *cfg_desc) in fconfig_alloc_gadget_cfg() argument
288 cfg->cfg_desc = cfg_desc; in fconfig_alloc_gadget_cfg()
289 cfg->cfg_num = cfg_desc->bConfigurationValue; in fconfig_alloc_gadget_cfg()
296 struct usb_config_descriptor *cfg_desc = NULL; in fconfig_add_gadget_cfg() local
332 cfg_desc = (struct usb_config_descriptor *)usbm_malloc(&gi->obj, sizeof(*cfg_desc)); in fconfig_add_gadget_cfg()
333 if (cfg_desc == NULL) in fconfig_add_gadget_cfg()
339 ret = memcpy_s(cfg_desc, sizeof(*cfg_desc), &desc.cfg_desc, sizeof(*cfg_desc)); in fconfig_add_gadget_cfg()
345 cfg_desc->bLength = USB_CONFIG_DESC_SIZE; in fconfig_add_gadget_cfg()
346 cfg_desc->bDescriptorType = UDESC_CONFIG; in fconfig_add_gadget_cfg()
347 cfg = fconfig_alloc_gadget_cfg(gi, cfg_name, cfg_desc); in fconfig_add_gadget_cfg()
[all …]
Df_config.c313 (const void *)cfg->cfg_desc, (uint32_t)len); in fconfig_mkcfgdesc()
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/
Dusbd_config.h102 struct usb_config_descriptor cfg_desc; member
136 struct usb_config_descriptor *cfg_desc; member