| /bsp/allwinner/libraries/sunxi-hal/hal/source/spinor/ |
| A D | factory_winbond.c | 65 tbuf[1] = sr3; in nor_winbond_set_wps() 101 tbuf[1] = sr3; in nor_winbond_set_rcv() 130 tbuf[1] = addr >> 16; in nor_winbond_blk_islock() 131 tbuf[2] = addr >> 8; in nor_winbond_blk_islock() 132 tbuf[3] = addr & 0xFF; in nor_winbond_blk_islock() 142 unsigned char tbuf[4]; in nor_winbond_blk_unlock() local 149 tbuf[1] = addr >> 16; in nor_winbond_blk_unlock() 150 tbuf[2] = addr >> 8; in nor_winbond_blk_unlock() 151 tbuf[3] = addr & 0xFF; in nor_winbond_blk_unlock() 170 tbuf[1] = addr >> 16; in nor_winbond_blk_lock() [all …]
|
| A D | factory_mxic.c | 158 tbuf[1] = addr >> 24; in nor_mxic_blk_islock() 159 tbuf[2] = addr >> 16; in nor_mxic_blk_islock() 160 tbuf[3] = addr >> 8; in nor_mxic_blk_islock() 161 tbuf[4] = addr & 0xFF; in nor_mxic_blk_islock() 172 unsigned char tbuf[6]; in nor_mxic_blk_unlock() local 179 tbuf[1] = addr >> 24; in nor_mxic_blk_unlock() 180 tbuf[2] = addr >> 16; in nor_mxic_blk_unlock() 181 tbuf[3] = addr >> 8; in nor_mxic_blk_unlock() 204 tbuf[1] = addr >> 24; in nor_mxic_blk_lock() 205 tbuf[2] = addr >> 16; in nor_mxic_blk_lock() [all …]
|
| A D | factory_fm.c | 138 tbuf[1] = addr >> 16; in nor_fm_blk_islock() 139 tbuf[2] = addr >> 8; in nor_fm_blk_islock() 140 tbuf[3] = addr & 0xFF; in nor_fm_blk_islock() 150 unsigned char tbuf[4]; in nor_fm_blk_unlock() local 157 tbuf[1] = addr >> 16; in nor_fm_blk_unlock() 158 tbuf[2] = addr >> 8; in nor_fm_blk_unlock() 159 tbuf[3] = addr & 0xFF; in nor_fm_blk_unlock() 171 unsigned char tbuf[4]; in nor_fm_blk_lock() local 178 tbuf[1] = addr >> 16; in nor_fm_blk_lock() 179 tbuf[2] = addr >> 8; in nor_fm_blk_lock() [all …]
|
| A D | factory_xtx.c | 131 tbuf[1] = addr >> 16; in nor_xtx_blk_islock() 132 tbuf[2] = addr >> 8; in nor_xtx_blk_islock() 133 tbuf[3] = addr & 0xFF; in nor_xtx_blk_islock() 143 unsigned char tbuf[4]; in nor_xtx_blk_unlock() local 150 tbuf[1] = addr >> 16; in nor_xtx_blk_unlock() 151 tbuf[2] = addr >> 8; in nor_xtx_blk_unlock() 152 tbuf[3] = addr & 0xFF; in nor_xtx_blk_unlock() 164 unsigned char tbuf[4]; in nor_xtx_blk_lock() local 171 tbuf[1] = addr >> 16; in nor_xtx_blk_lock() 172 tbuf[2] = addr >> 8; in nor_xtx_blk_lock() [all …]
|
| A D | core.c | 127 tr.tx_buf = tbuf; in nor_transfer() 280 char tbuf[5] = {0}; in nor_write_status() local 609 char tbuf[5] = {0}; in nor_erase_do() local 616 tbuf[0] = cmd; in nor_erase_do() 618 tbuf[1] = addr >> 24; in nor_erase_do() 619 tbuf[2] = addr >> 16; in nor_erase_do() 620 tbuf[3] = addr >> 8; in nor_erase_do() 624 tbuf[1] = addr >> 16; in nor_erase_do() 625 tbuf[2] = addr >> 8; in nor_erase_do() 901 tbuf[3] = addr >> 8; in nor_write_do() [all …]
|
| A D | factory_xmc.c | 46 char tbuf[5] = {0}; in nor_xmc_write_status2() local 55 tbuf[0] = NOR_XMC_CMD_WRITE_SR2; in nor_xmc_write_status2() 57 tbuf[i + 1] = *(sr + i); in nor_xmc_write_status2() 59 ret = nor_transfer(i, tbuf, i, NULL, 0); in nor_xmc_write_status2()
|
| A D | inter.h | 164 int nor_transfer(int single_len, void *tbuf, int tlen, void *rbuf, int rlen);
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/usb/core/ |
| A D | usb_msg.c | 287 unsigned char *tbuf = NULL; in usb_string() local 304 tbuf = malloc(256); in usb_string() 306 if (!tbuf) in usb_string() 312 memset(tbuf, 0, 256); in usb_string() 333 dev->string_langid = tbuf[2] | (tbuf[3] << 8); in usb_string() 354 if (tbuf[u + 1]) //high byte in usb_string() 360 buf[idx++] = tbuf[u]; in usb_string() 367 if (tbuf[1] != USB_DT_STRING) in usb_string() 374 if (tbuf) in usb_string() 376 free(tbuf); in usb_string() [all …]
|
| A D | usb_gen_hcd_rh.c | 424 u8 tbuf[sizeof(struct usb_hub_descriptor)] __attribute__((aligned(4))); in rh_call_control() local 425 const u8 *bufp = tbuf; in rh_call_control() 448 … tbuf [0] = (hcd->remote_wakeup << USB_DEVICE_REMOTE_WAKEUP) | (1 << USB_DEVICE_SELF_POWERED); in rh_call_control() 449 tbuf [1] = 0; in rh_call_control() 478 tbuf [0] = 1; in rh_call_control() 539 tbuf [0] = 0; in rh_call_control() 555 tbuf [0] = 0; in rh_call_control() 556 tbuf [1] = 0; in rh_call_control() 594 (u8 *)tbuf, in rh_call_control()
|
| /bsp/allwinner/libraries/sunxi-hal/hal/test/uart/ |
| A D | test_uart.c | 51 char tbuf[6] = {"hello"}; in cmd_test_uart() local 99 hal_uart_send(port, tbuf, 5); in cmd_test_uart() 106 printf("%c", tbuf[i]); in cmd_test_uart() 116 if (tbuf[i] != rbuf[i]) in cmd_test_uart()
|
| /bsp/stm32/stm32f407-rt-spark/board/ports/rs485/ |
| A D | drv_rs485.c | 40 int rs485_send_data(char *tbuf, rt_uint16_t t_len) in rs485_send_data() argument 46 rt_device_write(rs485_serial, 0, tbuf, t_len); in rs485_send_data() 54 rt_kprintf("%d:%x ",i,tbuf[i]); in rs485_send_data()
|
| A D | drv_rs485.h | 23 extern int rs485_send_data(char *tbuf, rt_uint16_t t_len);
|
| /bsp/microchip/common/board/ |
| A D | sam_gmac.c | 162 void * tbuf; in rt_sam_eth_tx() local 175 tbuf = mem_malloc(LWIP_MEM_ALIGN_SIZE(p->tot_len)); in rt_sam_eth_tx() 176 pos = tbuf; in rt_sam_eth_tx() 177 if (tbuf == NULL) in rt_sam_eth_tx() 186 mac_async_write(gmac_dev->macif, tbuf, p->tot_len); in rt_sam_eth_tx() 187 mem_free(tbuf); in rt_sam_eth_tx()
|
| /bsp/allwinner/libraries/sunxi-hal/hal/test/spi/ |
| A D | test_spi.c | 51 char tbuf[10]={0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x20}; in cmd_test_spi() local 93 status = hal_spi_write(port, tbuf, 10); in cmd_test_spi()
|
| /bsp/stm32/stm32mp157a-st-discovery/board/ports/ |
| A D | drv_rs485.c | 37 int rs485_send_data(char *tbuf, rt_uint16_t t_len) in rs485_send_data() argument 43 rt_device_write(serial, 0, tbuf, t_len); in rs485_send_data()
|
| /bsp/stm32/stm32mp157a-st-ev1/board/ports/ |
| A D | drv_rs485.c | 37 int rs485_send_data(char *tbuf, rt_uint16_t t_len) in rs485_send_data() argument 43 rt_device_write(serial, 0, tbuf, t_len); in rs485_send_data()
|
| /bsp/stm32/stm32mp157a-st-discovery/board/ports/OpenAMP/ |
| A D | drv_openamp.h | 22 rt_uint8_t *tbuf; member
|
| A D | drv_openamp.c | 108 device->serial.tbuf = tx_buffer; in _init()
|
| /bsp/stm32/stm32mp157a-st-ev1/board/ports/OpenAMP/ |
| A D | drv_openamp.h | 22 rt_uint8_t *tbuf; member
|
| A D | drv_openamp.c | 108 device->serial.tbuf = tx_buffer; in _init()
|
| /bsp/raspberry-pi/raspi4-64/drivers/ |
| A D | drv_spi.c | 119 static rt_err_t spi_transfernb(struct raspi_spi_hw_config *hwcfg, rt_uint8_t* tbuf, rt_uint8_t* rbu… in spi_transfernb() argument 136 SPI_REG_FIFO(hwcfg->hw_base) = correct_order(tbuf[TXCnt],flag); in spi_transfernb()
|
| /bsp/raspberry-pi/raspi3-32/driver/ |
| A D | drv_spi.c | 97 static rt_err_t spi_transfernb(rt_uint8_t* tbuf, rt_uint8_t* rbuf, rt_uint32_t len, rt_uint8_t flag) in spi_transfernb() argument 115 BCM283X_SPI0_FIFO(BCM283X_SPI0_BASE) = correct_order(tbuf[TXCnt],flag); in spi_transfernb()
|
| /bsp/raspberry-pi/raspi3-64/driver/ |
| A D | drv_spi.c | 98 static rt_err_t spi_transfernb(rt_uint8_t* tbuf, rt_uint8_t* rbuf, rt_uint32_t len, rt_uint8_t flag) in spi_transfernb() argument 116 BCM283X_SPI0_FIFO(BCM283X_SPI0_BASE) = correct_order(tbuf[TXCnt],flag); in spi_transfernb()
|
| /bsp/raspberry-pi/raspi4-32/driver/ |
| A D | drv_spi.c | 118 static rt_err_t spi_transfernb(struct raspi_spi_hw_config *hwcfg, rt_uint8_t* tbuf, rt_uint8_t* rbu… in spi_transfernb() argument 128 SPI_REG_FIFO(hwcfg->hw_base) = correct_order(tbuf[TXCnt],flag); in spi_transfernb()
|