Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 15 of 15) sorted by relevance

/bsp/at32/libraries/usbotg_library/src/
A Dusbd_core.c441 udev->ept_in[i_index].total_len = 0; in usb_ept_default_init()
452 udev->ept_out[i_index].total_len = 0; in usb_ept_default_init()
475 ept_info->total_len = len; in usbd_ept_send()
479 if(ept_info->total_len == 0) in usbd_ept_send()
489 if(ept_info->total_len > ept_info->maxpacket) in usbd_ept_send()
491 ept_info->total_len = ept_info->maxpacket; in usbd_ept_send()
495 ept_in->dieptsiz_bit.xfersize = ept_info->total_len; in usbd_ept_send()
500 ept_info->last_len = ept_info->total_len; in usbd_ept_send()
563 if(ept_info->total_len > 0) in usbd_ept_send()
591 ept_info->total_len = len; in usbd_ept_recv()
[all …]
A Dusbd_int.c156 uint32_t length = ept_info->total_len - ept_info->trans_len; in usb_write_empty_txfifo()
166 (ept_info->trans_len < ept_info->total_len) && (ept_info->total_len != 0)) in usb_write_empty_txfifo()
168 length = ept_info->total_len - ept_info->trans_len; in usb_write_empty_txfifo()
220 if((ept_num == 0) && (udev->ept_in[ept_num].total_len == 0)) in usbd_inept_handler()
317 if(ept_info->total_len > ept_info->maxpacket) in usbd_outept_handler()
319 … ept_info->trans_len = ept_info->total_len - USB_OUTEPT(usbx, ept_num)->doeptsiz_bit.xfersize; in usbd_outept_handler()
326 if((ept_num == 0) && (udev->ept_out[ept_num].total_len == 0)) in usbd_outept_handler()
339 if((ept_num == 0) && (udev->ept_out[ept_num].total_len == 0)) in usbd_outept_handler()
/bsp/at32/libraries/usbd_library/src/
A Dusbd_core.c299 ept_info->total_len = len; in usbd_ept_send()
302 if(ept_info->total_len > ept_info->maxpacket) in usbd_ept_send()
305 ept_info->total_len -= trs_len; in usbd_ept_send()
310 ept_info->total_len = 0; in usbd_ept_send()
358 ept_info->total_len = len; in usbd_ept_recv()
361 if(ept_info->total_len > ept_info->maxpacket) in usbd_ept_recv()
364 ept_info->total_len -= trs_len; in usbd_ept_recv()
369 ept_info->total_len = 0; in usbd_ept_recv()
633 udev->ept_in[i_index].total_len = 0; in usbd_ept_defaut_init()
646 udev->ept_out[i_index].total_len = 0; in usbd_ept_defaut_init()
A Dusbd_int.c130 if(ept_info->total_len == 0 || ept_num == USB_EPT0) in usbd_eptn_handler()
138 usbd_ept_send(udev, ept_num, ept_info->trans_buf, ept_info->total_len); in usbd_eptn_handler()
203 if(ept_info->total_len == 0 || length < ept_info->maxpacket || ept_num == USB_EPT0) in usbd_eptn_handler()
211 usbd_ept_recv(udev, ept_num, ept_info->trans_buf, ept_info->total_len); in usbd_eptn_handler()
/bsp/ht32/libraries/usbd_library/src/
A Dusbd_code.c287 ept_info->total_len = 0; in usbd_ept_init()
308 ept_info->total_len = len; in usbd_ept_recv()
311 if (ept_info->total_len > ept_info->maxpacket) in usbd_ept_recv()
314 ept_info->total_len -= trs_len; in usbd_ept_recv()
319 ept_info->total_len = 0; in usbd_ept_recv()
/bsp/microchip/samd51-adafruit-metro-m4/bsp/usb/device/
A Dusbdc.c145 uint16_t total_len; in usbdc_get_cfg_desc() local
163 total_len = usb_cfg_desc_total_len(cfg_desc); in usbdc_get_cfg_desc()
164 if (length <= total_len) { in usbdc_get_cfg_desc()
167 length = total_len; in usbdc_get_cfg_desc()
247 uint16_t total_len; in usbdc_get_othspdcfg_desc() local
263 total_len = usb_cfg_desc_total_len(cfg_desc); in usbdc_get_othspdcfg_desc()
264 if (length <= total_len) { in usbdc_get_othspdcfg_desc()
267 length = total_len; in usbdc_get_othspdcfg_desc()
467 uint16_t total_len; in usbdc_set_config() local
489 total_len = usb_cfg_desc_total_len(cfg_desc); in usbdc_set_config()
[all …]
/bsp/microchip/samd51-seeed-wio-terminal/bsp/usb/device/
A Dusbdc.c145 uint16_t total_len; in usbdc_get_cfg_desc() local
163 total_len = usb_cfg_desc_total_len(cfg_desc); in usbdc_get_cfg_desc()
164 if (length <= total_len) { in usbdc_get_cfg_desc()
167 length = total_len; in usbdc_get_cfg_desc()
247 uint16_t total_len; in usbdc_get_othspdcfg_desc() local
263 total_len = usb_cfg_desc_total_len(cfg_desc); in usbdc_get_othspdcfg_desc()
264 if (length <= total_len) { in usbdc_get_othspdcfg_desc()
267 length = total_len; in usbdc_get_othspdcfg_desc()
467 uint16_t total_len; in usbdc_set_config() local
489 total_len = usb_cfg_desc_total_len(cfg_desc); in usbdc_set_config()
[all …]
/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/
A DSWM341_usbd.c48 uint32_t total_len = pCfg[2] + (pCfg[3] << 8); in USBD_Init() local
67 while(pCfg < (USBD_Info.DescConfig + total_len)) in USBD_Init()
277 uint16_t total_len = USBD_Info.DescConfig[2] + (USBD_Info.DescConfig[3] << 8); in USBD_GetDescriptor() local
278 USBD_PrepareCtrlIn(USBD_Info.DescConfig, min(pSetup->wLength, total_len)); in USBD_GetDescriptor()
303 uint16_t total_len = USBD_Info.DescBOS[2] + (USBD_Info.DescBOS[3] << 8); in USBD_GetDescriptor() local
304 USBD_PrepareCtrlIn(USBD_Info.DescBOS, min(pSetup->wLength, total_len)); in USBD_GetDescriptor()
/bsp/microchip/same70/bsp/hpl/gmac/
A Dhpl_gmac.c246 uint32_t total_len = 0; /* Total length of received package */ in _mac_async_read() local
289 total_len += n; in _mac_async_read()
301 return total_len; in _mac_async_read()
312 uint32_t total_len = 0; /* Total length of received package */ in _mac_async_read_len() local
331 total_len += _rxbuf_descrs[pos].status.bm.len; in _mac_async_read_len()
340 return total_len; in _mac_async_read_len()
/bsp/microchip/same54/bsp/hpl/gmac/
A Dhpl_gmac.c328 uint32_t total_len = 0; /* Total length of received package */ in _mac_async_read() local
371 total_len += n; in _mac_async_read()
383 return total_len; in _mac_async_read()
391 uint32_t total_len = 0; /* Total length of received package */ in _mac_async_read_len() local
411 total_len += _rxbuf_descrs[pos].status.bm.len; in _mac_async_read_len()
420 return total_len; in _mac_async_read_len()
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/storage/Misc/
A Dusbh_buff_manager.c596 unsigned int total_len = 0; //本次所要读写的数据长度 in usbh_msc_special_read() local
615 total_len = (n * secter_size); in usbh_msc_special_read()
617 if (total_len < usbh_temp_buff_max_len()) in usbh_msc_special_read()
661 memcpy(pBuffer, usbh_temp_buff, total_len); in usbh_msc_special_read()
/bsp/ht32/libraries/usbd_library/inc/
A Dusbd_code.h188 …uint16_t total_len; /*!< endpoint transmission tot… member
/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/
A Dhal_sdhost.c1644 uint32_t total_len = 0; in rom_HAL_SDC_Request() local
1649 HAL_Memcpy((char *)(host->align_dma_buf + total_len), (char *)addr, len); in rom_HAL_SDC_Request()
1650 total_len += len; in rom_HAL_SDC_Request()
1671 uint32_t total_len = 0; in rom_HAL_SDC_Request() local
1675 HAL_Memcpy((char *)addr, (char *)(host->align_dma_buf + total_len), len); in rom_HAL_SDC_Request()
1676 total_len += len; in rom_HAL_SDC_Request()
/bsp/w60x/drivers/
A Ddrv_wifi.c49 extern uint8_t* tls_wifi_buffer_acquire(int total_len);
/bsp/amebaz/drivers/wlan/
A Ddrv_wifi.c42 extern struct sk_buff * rltk_wlan_alloc_skb(unsigned int total_len);

Completed in 67 milliseconds