Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 51) sorted by relevance

123

/bsp/avr32/software_framework/drivers/flashc/
A Dflashc.h849 extern volatile void *flashc_memset8(volatile void *dst, uint8_t src, size_t nbytes, bool erase);
875 extern volatile void *flashc_memset16(volatile void *dst, uint16_t src, size_t nbytes, bool erase);
901 extern volatile void *flashc_memset32(volatile void *dst, uint32_t src, size_t nbytes, bool erase);
927 extern volatile void *flashc_memset64(volatile void *dst, uint64_t src, size_t nbytes, bool erase);
954 #define flashc_memset(dst, src, src_width, nbytes, erase) \ argument
955 TPASTE2(flashc_memset, src_width)((dst), (src), (nbytes), (erase))
987 extern volatile void *flashc_memcpy(volatile void *dst, const void *src, size_t nbytes, bool erase);
A Dflashc.c698 volatile void *flashc_memset8(volatile void *dst, uint8_t src, size_t nbytes, bool erase) in flashc_memset8() argument
700 return flashc_memset16(dst, src | (uint16_t)src << 8, nbytes, erase); in flashc_memset8()
704 volatile void *flashc_memset16(volatile void *dst, uint16_t src, size_t nbytes, bool erase) in flashc_memset16() argument
706 return flashc_memset32(dst, src | (uint32_t)src << 16, nbytes, erase); in flashc_memset16()
710 volatile void *flashc_memset32(volatile void *dst, uint32_t src, size_t nbytes, bool erase) in flashc_memset32() argument
712 return flashc_memset64(dst, src | (uint64_t)src << 32, nbytes, erase); in flashc_memset32()
738 dest_end.u8ptr = dest.u8ptr + nbytes; in flashc_memset64()
888 && (((uint8_t *)dst + nbytes) <= (AVR32_FLASH + flashc_get_flash_size()))) in flashc_memcpy()
896 while (nbytes) { in flashc_memcpy()
908 if (nbytes && (flash_add == dest_add)) { in flashc_memcpy()
[all …]
/bsp/wch/arm/ch579m/board/
A Ddrv_usbh.c59 static int drv_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in drv_pipe_xfer() argument
79 rt_memcpy(usb_tx_buf, buffer, nbytes); in drv_pipe_xfer()
80 R8_UH_TX_LEN = nbytes; in drv_pipe_xfer()
87 if (nbytes == 0) *tog = USB_PID_DATA1; //状态反馈 in drv_pipe_xfer()
92 if (nbytes == 0) *tog = USB_PID_DATA1; //状态反馈 in drv_pipe_xfer()
132 return nbytes; in drv_pipe_xfer()
143 return nbytes; in drv_pipe_xfer()
/bsp/wch/risc-v/Libraries/ch32_drivers/
A Ddrv_usbh.c76 int usbh_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in usbh_pipe_xfer() argument
91 rt_memcpy(usb_tx_buf, buffer, nbytes); in usbh_pipe_xfer()
92 USBFSH->HOST_TX_LEN = nbytes; in usbh_pipe_xfer()
98 if (nbytes == 0) *tog = USB_PID_DATA1; in usbh_pipe_xfer()
102 if (nbytes == 0) *tog = USB_PID_DATA1; in usbh_pipe_xfer()
137 return nbytes; in usbh_pipe_xfer()
143 return nbytes; in usbh_pipe_xfer()
/bsp/nuvoton/libraries/ma35/rtt_port/
A Ddrv_usbhost.c511 if (buffer_nonch && nbytes) in nu_pipe_xfer()
516 rt_memcpy(buffer_nonch, buffer, nbytes); in nu_pipe_xfer()
517 rt_hw_cpu_dcache_clean_and_invalidate((void *)buffer_nonch, nbytes); in nu_pipe_xfer()
578 ret = nbytes; in nu_pipe_xfer()
586 LOG_D("%d == USBH_PID_DATA, nil buf-%d", token, nbytes); in nu_pipe_xfer()
590 i32XferLen = nbytes; in nu_pipe_xfer()
606 psUTR->data_len = nbytes; in nu_pipe_xfer()
633 i32XferLen = nbytes; in nu_pipe_xfer()
685 if ((nbytes) && in nu_pipe_xfer()
690 rt_hw_cpu_dcache_invalidate((void *)buffer_nonch, nbytes); in nu_pipe_xfer()
[all …]
/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/
A Ddrv_sram.h16 void *sram_malloc(unsigned long nbytes);
18 void *sram_realloc(void *ptr, unsigned long nbytes);
/bsp/nxp/imx/imxrt/libraries/drivers/
A Ddrv_usbh.c166 static int _ehci0_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in _ehci0_pipe_xfer() argument
186 transfer->transferLength = nbytes; in _ehci0_pipe_xfer()
219 rt_memcpy(buffer, _ehci0_pipe_buf + _ehci0_pipe_idx, nbytes); in _ehci0_pipe_xfer()
221 transfer->transferSofar = nbytes; in _ehci0_pipe_xfer()
222 _ehci0_pipe_idx += nbytes; in _ehci0_pipe_xfer()
265 return nbytes; in _ehci0_pipe_xfer()
463 transfer->transferLength = nbytes; in _ehci1_pipe_xfer()
496 rt_memcpy(buffer, _ehci1_pipe_buf + _ehci1_pipe_idx, nbytes); in _ehci1_pipe_xfer()
498 transfer->transferSofar = nbytes; in _ehci1_pipe_xfer()
499 _ehci1_pipe_idx += nbytes; in _ehci1_pipe_xfer()
[all …]
/bsp/nuvoton/libraries/n9h30/rtt_port/
A Ddrv_usbhost.c551 if (buffer_nonch && nbytes) in nu_pipe_xfer()
556 rt_memcpy(buffer_nonch, buffer, nbytes); in nu_pipe_xfer()
610 if (psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] < nbytes) in nu_pipe_xfer()
616 psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] -= nbytes; in nu_pipe_xfer()
617 ret = nbytes; in nu_pipe_xfer()
625 LOG_D("%d == USBH_PID_DATA, nil buf-%d", token, nbytes); in nu_pipe_xfer()
629 i32XferLen = nbytes; in nu_pipe_xfer()
645 psUTR->data_len = nbytes; in nu_pipe_xfer()
672 i32XferLen = nbytes; in nu_pipe_xfer()
725 if ((nbytes) && in nu_pipe_xfer()
[all …]
/bsp/nuvoton/libraries/nuc980/rtt_port/
A Ddrv_usbhost.c551 if (buffer_nonch && nbytes) in nu_pipe_xfer()
556 rt_memcpy(buffer_nonch, buffer, nbytes); in nu_pipe_xfer()
610 if (psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] < nbytes) in nu_pipe_xfer()
616 psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] -= nbytes; in nu_pipe_xfer()
617 ret = nbytes; in nu_pipe_xfer()
625 LOG_D("%d == USBH_PID_DATA, nil buf-%d", token, nbytes); in nu_pipe_xfer()
629 i32XferLen = nbytes; in nu_pipe_xfer()
645 psUTR->data_len = nbytes; in nu_pipe_xfer()
672 i32XferLen = nbytes; in nu_pipe_xfer()
725 if ((nbytes) && in nu_pipe_xfer()
[all …]
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/src/
A Dbflb_spi.c233 …b_spi_poll_exchange(struct bflb_device_s *dev, const void *txbuffer, void *rxbuffer, size_t nbytes) in bflb_spi_poll_exchange() argument
247 nbytes /= frame_size; in bflb_spi_poll_exchange()
248 tx_cnt = nbytes; in bflb_spi_poll_exchange()
292 fifo_cnt = fifo_cnt > nbytes ? nbytes : fifo_cnt; in bflb_spi_poll_exchange()
326 for (; nbytes > 0;) { in bflb_spi_poll_exchange()
336 fifo_cnt = fifo_cnt > nbytes ? nbytes : fifo_cnt; in bflb_spi_poll_exchange()
337 nbytes -= fifo_cnt; in bflb_spi_poll_exchange()
A Dbflb_dma.c226 actual_transfer_len = transfer[i].nbytes; in bflb_dma_channel_lli_reload()
229 if (transfer[i].nbytes % 2) { in bflb_dma_channel_lli_reload()
232 actual_transfer_len = transfer[i].nbytes >> 1; in bflb_dma_channel_lli_reload()
235 if (transfer[i].nbytes % 4) { in bflb_dma_channel_lli_reload()
238 actual_transfer_len = transfer[i].nbytes >> 2; in bflb_dma_channel_lli_reload()
/bsp/rv32m1_vega/rv32m1_sdk_riscv/devices/RV32M1/drivers/
A Dfsl_flexio_uart_edma.c205 handle->nbytes = sizeof(uint8_t); in FLEXIO_UART_TransferSendEDMA()
250 handle->nbytes = sizeof(uint8_t); in FLEXIO_UART_TransferReceiveEDMA()
305 (uint32_t)handle->nbytes * in FLEXIO_UART_TransferGetReceiveCountEDMA()
323 (uint32_t)handle->nbytes * in FLEXIO_UART_TransferGetSendCountEDMA()
A Dfsl_lpuart_edma.c200 handle->nbytes = sizeof(uint8_t); in LPUART_SendEDMA()
241 handle->nbytes = sizeof(uint8_t); in LPUART_ReceiveEDMA()
296 (uint32_t)handle->nbytes * in LPUART_TransferGetReceiveCountEDMA()
314 (uint32_t)handle->nbytes * in LPUART_TransferGetSendCountEDMA()
A Dfsl_lpspi_edma.h92 uint8_t nbytes; /*!< eDMA minor byte transfer count initially configured. */ member
118 uint8_t nbytes; /*!< eDMA minor byte transfer count initially configured. */ member
/bsp/samd21/sam_d2x_asflib/common/services/isp/flip/
A Disp.h134 void (*fnct_read) (void *dst, isp_addr_t src, uint16_t nbytes);
136 void (*fnct_write) (isp_addr_t dst, const void *src, uint16_t nbytes);
/bsp/frdm-k64f/device/MK64F12/
A Dfsl_uart_edma.c250 handle->nbytes = sizeof(uint8_t); in UART_SendEDMA()
291 handle->nbytes = sizeof(uint8_t); in UART_ReceiveEDMA()
346 (uint32_t)handle->nbytes * in UART_TransferGetReceiveCountEDMA()
364 (uint32_t)handle->nbytes * in UART_TransferGetSendCountEDMA()
A Dfsl_dspi_edma.h91 uint8_t nbytes; /*!< eDMA minor byte transfer count initially configured. */ member
128 uint8_t nbytes; /*!< eDMA minor byte transfer count initially configured. */ member
A Dfsl_sai_edma.c277 handle->nbytes = handle->count * handle->bytesPerFrame; in SAI_TransferSendEDMA()
325 handle->nbytes = handle->count * handle->bytesPerFrame; in SAI_TransferReceiveEDMA()
388 (uint32_t)handle->nbytes * in SAI_TransferGetSendCountEDMA()
408 (uint32_t)handle->nbytes * in SAI_TransferGetReceiveCountEDMA()
/bsp/xuantie/libraries/xuantie_libraries/csi/csi2/include/drv/
A Dspinand.h71 uint8_t nbytes; ///< bytes of addr member
76 uint8_t nbytes; ///< dummy bytes member
83 uint32_t nbytes; ///< data len member
/bsp/nuvoton/libraries/m460/rtt_port/
A Ddrv_usbhost.c488 static int nu_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in nu_pipe_xfer() argument
557 if (psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] < nbytes) in nu_pipe_xfer()
563 psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] -= nbytes; in nu_pipe_xfer()
564 ret = nbytes; in nu_pipe_xfer()
572 LOG_D("%d == USBH_PID_DATA, nil buf-%d", token, nbytes); in nu_pipe_xfer()
576 i32XferLen = nbytes; in nu_pipe_xfer()
592 psUTR->data_len = nbytes; in nu_pipe_xfer()
619 i32XferLen = nbytes; in nu_pipe_xfer()
/bsp/nuvoton/libraries/m480/rtt_port/
A Ddrv_usbhost.c474 static int nu_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in nu_pipe_xfer() argument
543 if (psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] < nbytes) in nu_pipe_xfer()
549 psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] -= nbytes; in nu_pipe_xfer()
550 ret = nbytes; in nu_pipe_xfer()
558 LOG_D("%d == USBH_PID_DATA, nil buf-%d", token, nbytes); in nu_pipe_xfer()
562 i32XferLen = nbytes; in nu_pipe_xfer()
578 psUTR->data_len = nbytes; in nu_pipe_xfer()
605 i32XferLen = nbytes; in nu_pipe_xfer()
/bsp/nuvoton/libraries/m2354/rtt_port/
A Ddrv_usbhost.c472 static int nu_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in nu_pipe_xfer() argument
541 if (psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] < nbytes) in nu_pipe_xfer()
547 psPortCtrl->asHubPortDev->u32SentLength[pipe->pipe_index] -= nbytes; in nu_pipe_xfer()
548 ret = nbytes; in nu_pipe_xfer()
556 LOG_D("%d == USBH_PID_DATA, nil buf-%d", token, nbytes); in nu_pipe_xfer()
560 i32XferLen = nbytes; in nu_pipe_xfer()
576 psUTR->data_len = nbytes; in nu_pipe_xfer()
603 i32XferLen = nbytes; in nu_pipe_xfer()
/bsp/at32/libraries/rt_drivers/
A Ddrv_usbotgh.c109 static int drv_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in drv_pipe_xfer() argument
138 if(nbytes == 0U) in drv_pipe_xfer()
161 if(nbytes == 0U) in drv_pipe_xfer()
238 p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].trans_len = nbytes; in drv_pipe_xfer()
296 return nbytes; in drv_pipe_xfer()
/bsp/stm32/libraries/HAL_Drivers/drivers/
A Ddrv_usbh.c64 static int drv_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbytes, int timeouts) in drv_pipe_xfer() argument
81 nbytes, in drv_pipe_xfer()
139 return nbytes; in drv_pipe_xfer()
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/class/hid/Source/
A Dusbh_hid_core.c219 uint16_t usbh_hid_fifo_read (data_fifo *fifo, void *buf, uint16_t nbytes) in usbh_hid_fifo_read() argument
227 for (i = 0U; i < nbytes; i++) { in usbh_hid_fifo_read()
245 return nbytes; in usbh_hid_fifo_read()
256 uint16_t usbh_hid_fifo_write (data_fifo *fifo, void *buf, uint16_t nbytes) in usbh_hid_fifo_write() argument
264 for (i = 0U; i < nbytes; i++) { in usbh_hid_fifo_write()
283 return nbytes; in usbh_hid_fifo_write()

Completed in 61 milliseconds

123