/third_party/NuttX/drivers/usbdev/gadget/ |
D | f_acm_desc.c | 304 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_cdcacm_device_desc, sizeof(g_cdcacm_device_desc)); in cdcacm_mkdevdesc() 336 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, (const void *)&g_cdcacm_hs_config_desc, (uint32_t)len); in cdcacm_mkcfgdesc() 348 …ret = memcpy_s(buf, (USB_COMP_EP0_BUFSIZ - total_len), (const void *)&g_cdcacm_hs_func_desc, (uint… in cdcacm_mkcfgdesc() 378 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, (const void *)str, (uint32_t)str[0]); in cdcacm_mkstrdesc()
|
D | f_ether.c | 320 …errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fether_device_desc, sizeof(g_fether_device_des… in rndis_mkdevdesc() 338 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, g_rndis_hs_desc.rndis_config, (uint16_t)len); in rndis_mkcfgdesc() 350 …ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ - (uint16_t)total_len, g_rndis_hs_desc.rndis_func, (uint1… in rndis_mkcfgdesc() 372 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, str, str[0]); in rndis_mkstrdesc()
|
D | f_camera.c | 160 …errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fcamera_device_desc, sizeof(g_fcamera_device_d… in camera_mkdevdesc() 179 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, str, str[0]); in camera_mkstrdesc()
|
D | composite_desc.c | 85 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, (void *)g_os_string, g_os_string[0]); in composite_mkstrdesc() 153 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, buf_tmp, new_config_len); in composite_mkcfgdesc_sub()
|
D | f_multi.c | 190 …errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fmulti_device_desc, sizeof(g_fmulti_device_des… in multi_mkdevdesc() 209 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, str, str[0]); in multi_mkstrdesc()
|
D | composite.c | 224 cdev->ctrlreq = composite_allocreq(USB_COMP_EP0_BUFSIZ); in usb_composite_bind() 309 ret = memset_s(req->buf, USB_COMP_EP0_BUFSIZ, 0, config_len); in modify_config_descriptor_byspeed() 316 ret = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, config_tmp_buf, new_config_len); in modify_config_descriptor_byspeed() 526 …ret = memcpy_s(usb_req->buf, USB_COMP_EP0_BUFSIZ, (void *)g_bos_desc_buf, SKB_DATA_ALIGN(usb_req->… in usb_composite_setup()
|
D | dfu.c | 207 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_dfu_config_desc, (uint16_t)len); in usbclass_mkcfgdesc() 219 ret = memcpy_s(buf, (size_t)(USB_COMP_EP0_BUFSIZ - total_len), &g_dfu_cfgdesc, (uint16_t)len); in usbclass_mkcfgdesc()
|
D | f_hid.c | 621 ret = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, in usbclass_hid_get_report() 830 errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fhid_device_desc, sizeof(g_fhid_device_desc)); in hid_mkdevdesc() 851 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, des, total_len); in hid_mkcfgdesc() 875 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, (const void *)str, (uint32_t)str[0]); in hid_mkstrdesc()
|
D | composite.h | 54 #define USB_COMP_EP0_BUFSIZ 4096U macro
|
D | f_uvc.c | 2000 err = memset_s(req->buf, USB_COMP_EP0_BUFSIZ, 0, 64); in fuvc_handle_class_setup_control() 2080 errnum = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, in fuvc_handle_streaming_probe() 2085 errnum = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, in fuvc_handle_streaming_probe() 2109 errnum = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, in fuvc_handle_streaming_probe() 2149 errnum = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, &fuvc->probe, SKB_DATA_ALIGN(n_len)); in fuvc_handle_class_setup_streaming() 2723 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fuvc_device_desc, sizeof(g_fuvc_device_desc)); in uvc_mkdevdesc() 2743 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, des, total_len); in uvc_mkcfgdesc() 2767 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, str, str[0]); in uvc_mkstrdesc()
|
D | f_uac.c | 855 errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fuac_device_desc, sizeof(g_fuac_device_desc)); in uac_mkdevdesc() 878 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, des, total_len); in uac_mkcfgdesc() 902 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, str, str[0]); in uac_mkstrdesc()
|
D | f_mass_storage.c | 1761 ret = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, &nlun_info, sizeof(nlun_info)); in usbclass_mass_setup() 1836 …errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fmass_device_desc, sizeof(g_fmass_device_desc)… in mass_mkdevdesc() 1849 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fmass_confd, total); in mass_mkcfgdesc() 1870 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, str, str[0]); in mass_mkstrdesc()
|
D | f_dfu.c | 1182 errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_dfu_device_desc, sizeof(g_dfu_device_desc)); in usbdev_dfu_mkdevdesc() 1201 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, str, str[0]); in usbdev_dfu_mkstrdesc()
|
D | rndis.c | 1322 … ret = memcpy_s(resp->buffer, USB_COMP_EP0_BUFSIZ - sizeof(struct rndis_query_cmplt), in rndis_handle_control_message() 1332 … ret = memcpy_s(resp->buffer, USB_COMP_EP0_BUFSIZ - sizeof(struct rndis_query_cmplt), in rndis_handle_control_message() 1342 … ret = memcpy_s(resp->buffer, USB_COMP_EP0_BUFSIZ - sizeof(struct rndis_query_cmplt), in rndis_handle_control_message()
|
D | cdcacm.c | 1456 ret = memcpy_s(req->buf, USB_COMP_EP0_BUFSIZ, &priv->linecoding, (uint32_t)val); in cdcacm_setup()
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
D | f_config.c | 145 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, (void *)lang_string, lang_string[0]); in fconfig_mkstrdesc() 216 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, gi->dev_desc, sizeof(*gi->dev_desc)); in fconfig_mkdevdesc() 312 ret = memcpy_s(buf_tmp, USB_COMP_EP0_BUFSIZ, in fconfig_mkcfgdesc() 345 ret = memcpy_s(buf_tmp, (USB_COMP_EP0_BUFSIZ - total_len), in fconfig_mkcfgdesc()
|
D | f_generic.c | 799 ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, in generic_mkcfgdesc() 812 ret = memcpy_s(buf, (USB_COMP_EP0_BUFSIZ - total_len), in generic_mkcfgdesc()
|
D | usbd_generic_ep0.c | 508 (void)memcpy_s((void *)req->buf, USB_COMP_EP0_BUFSIZ, (void *)ioData->buf, in generic_ep0_submit_sync() 591 (void)memcpy_s((void *)req->buf, USB_COMP_EP0_BUFSIZ, (void *)ep0req->io_data.buf, in generic_ep0_submit_wait()
|