| /bsp/nuvoton/libraries/nu_packages/Demo/ |
| A D | wormhole_demo.c | 61 } msg; member 86 resp->msg.u32Size = req->msg.u32Size; in proc_msg() 92 resp->msg.u32Addr0 = (uint32_t)req->msg.u32Addr0; in proc_msg() 98 rt_memcpy((void *)req->msg.u32Addr0, (void *)req->msg.u32Addr1, req->msg.u32Size); in proc_msg() 100 resp->msg.u32Addr0 = (uint32_t)req->msg.u32Addr0; in proc_msg() 101 resp->msg.u32Addr1 = (uint32_t)req->msg.u32Addr1; in proc_msg() 102 resp->msg.u32Size = req->msg.u32Size; in proc_msg() 106 rt_memset((void *)req->msg.u32Addr0, (req->msg.u32Addr1 & 0xff), req->msg.u32Size); in proc_msg() 108 resp->msg.u32Addr0 = (uint32_t)req->msg.u32Addr0; in proc_msg() 110 resp->msg.u32Size = req->msg.u32Size; in proc_msg() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/include/hal/sdmmc/sys/ |
| A D | sys_debug.h | 92 #define R_DEBUG_PRINT(msg, arg...) printf(msg, ##arg) argument 117 R_DEBUG_PRINT(msg, ##arg); \ 136 R_DEBUG_PRINT(msg, ##arg); \ 263 #define R_DEBUG_PRINT(msg, arg...) argument 277 #define R_ERROR(module, expand, msg, arg...) argument 279 #define R_ALERT(module, expand, msg, arg...) argument 281 #define R_CRIT(module, expand, msg, arg...) argument 283 #define R_EMERG(module, expand, msg, arg...) argument 285 #define R_WARN(module, expand, msg, arg...) argument 289 #define R_INFO(module, expand, msg, arg...) argument [all …]
|
| /bsp/hc32/tests/ |
| A D | test_i2c.c | 71 struct rt_i2c_msg msg[1]; in eeprom_page_write() local 94 msg[0].flags = RT_I2C_WR; in eeprom_page_write() 96 msg[0].buf = TxBuf; in eeprom_page_write() 102 …master_send(hc32_i2c, EE_DEV_ADDR, RT_I2C_NO_START, TxBuf + msg[0].len / 2, msg[0].len - msg[0].le… in eeprom_page_write() 113 struct rt_i2c_msg msg[2]; in eeprom_page_read() local 136 msg[0].buf = readAddr; in eeprom_page_read() 141 msg[1].buf = pBuf; in eeprom_page_read() 226 msg[0].len = 2; in tca9539_test() 234 msg[1].len = 2; in tca9539_test() 242 msg[0].len = 1; in tca9539_test() [all …]
|
| A D | test_uart_v1.c | 76 struct rx_msg msg; in uart_input_dma() local 79 msg.dev = dev; in uart_input_dma() 80 msg.size = size; in uart_input_dma() 82 result = rt_mq_send(&rx_mq, &msg, sizeof(msg)); in uart_input_dma() 108 struct rx_msg msg; in serial_thread_entry_dma() local 117 rt_memset(&msg, 0, sizeof(msg)); in serial_thread_entry_dma() 119 result = rt_mq_recv(&rx_mq, &msg, sizeof(msg), RT_WAITING_FOREVER); in serial_thread_entry_dma() 123 while (msg.size) in serial_thread_entry_dma() 128 msg.size -= rx_length; in serial_thread_entry_dma() 132 rx_length = rt_device_read(msg.dev, 0, rx_buffer + put_index, msg.size); in serial_thread_entry_dma() [all …]
|
| /bsp/microchip/samc21/bsp/hal/src/ |
| A D | hal_i2c_m_sync.c | 52 msg.len = n; in i2c_m_sync_read() 54 msg.buffer = buf; in i2c_m_sync_read() 75 msg.len = n; in i2c_m_sync_write() 168 msg.len = 1; in i2c_m_sync_cmd_write() 169 msg.flags = 0; in i2c_m_sync_cmd_write() 170 msg.buffer = ® in i2c_m_sync_cmd_write() 180 msg.buffer = buffer; in i2c_m_sync_cmd_write() 181 msg.len = length; in i2c_m_sync_cmd_write() 202 msg.len = 1; in i2c_m_sync_cmd_read() 203 msg.flags = 0; in i2c_m_sync_cmd_read() [all …]
|
| /bsp/microchip/saml10/bsp/hal/src/ |
| A D | hal_i2c_m_sync.c | 52 msg.len = n; in i2c_m_sync_read() 54 msg.buffer = buf; in i2c_m_sync_read() 75 msg.len = n; in i2c_m_sync_write() 168 msg.len = 1; in i2c_m_sync_cmd_write() 169 msg.flags = 0; in i2c_m_sync_cmd_write() 170 msg.buffer = ® in i2c_m_sync_cmd_write() 180 msg.buffer = buffer; in i2c_m_sync_cmd_write() 181 msg.len = length; in i2c_m_sync_cmd_write() 202 msg.len = 1; in i2c_m_sync_cmd_read() 203 msg.flags = 0; in i2c_m_sync_cmd_read() [all …]
|
| /bsp/microchip/same70/bsp/hal/src/ |
| A D | hal_i2c_m_sync.c | 52 msg.len = n; in i2c_m_sync_read() 54 msg.buffer = buf; in i2c_m_sync_read() 75 msg.len = n; in i2c_m_sync_write() 168 msg.len = 1; in i2c_m_sync_cmd_write() 169 msg.flags = 0; in i2c_m_sync_cmd_write() 170 msg.buffer = ® in i2c_m_sync_cmd_write() 180 msg.buffer = buffer; in i2c_m_sync_cmd_write() 181 msg.len = length; in i2c_m_sync_cmd_write() 202 msg.len = 1; in i2c_m_sync_cmd_read() 203 msg.flags = 0; in i2c_m_sync_cmd_read() [all …]
|
| /bsp/microchip/same54/bsp/hal/src/ |
| A D | hal_i2c_m_sync.c | 52 msg.len = n; in i2c_m_sync_read() 54 msg.buffer = buf; in i2c_m_sync_read() 75 msg.len = n; in i2c_m_sync_write() 168 msg.len = 1; in i2c_m_sync_cmd_write() 169 msg.flags = 0; in i2c_m_sync_cmd_write() 170 msg.buffer = ® in i2c_m_sync_cmd_write() 180 msg.buffer = buffer; in i2c_m_sync_cmd_write() 181 msg.len = length; in i2c_m_sync_cmd_write() 202 msg.len = 1; in i2c_m_sync_cmd_read() 203 msg.flags = 0; in i2c_m_sync_cmd_read() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/usb/manager/ |
| A D | usb_msg_center.c | 70 if (center_info->msg.hw_insmod_host) in do_usb_role_null() 92 if (center_info->msg.hw_rmmod_host) in do_usb_role_host() 105 if (center_info->msg.hw_rmmod_device) in do_usb_role_device() 117 if (msg->hw_insmod_host && msg->hw_rmmod_host) in modify_msg() 119 msg->hw_insmod_host = 0; in modify_msg() 120 msg->hw_rmmod_host = 0; in modify_msg() 123 if (msg->hw_insmod_device && msg->hw_rmmod_device) in modify_msg() 125 msg->hw_insmod_device = 0; in modify_msg() 126 msg->hw_rmmod_device = 0; in modify_msg() 137 modify_msg(¢er_info->msg); in usb_msg_center() [all …]
|
| /bsp/phytium/libraries/drivers_example/ |
| A D | can_loopback_sample.c | 154 msg.data[0] = 0x0; in can_loopback_sample() 155 msg.data[1] = 0x1; in can_loopback_sample() 156 msg.data[2] = 0x2; in can_loopback_sample() 157 msg.data[3] = 0x3; in can_loopback_sample() 158 msg.data[4] = 0x4; in can_loopback_sample() 159 msg.data[5] = 0x5; in can_loopback_sample() 160 msg.data[6] = 0x6; in can_loopback_sample() 161 msg.data[7] = 0x7; in can_loopback_sample() 162 rt_device_write(can0_dev, 0, &msg, sizeof(msg)); in can_loopback_sample() 178 msg.data[0] = 0x0; in can_loopback_sample() [all …]
|
| A D | can_sample.c | 50 struct rt_can_msg msg = {0}; in can_sample() local 108 msg.id = 0x78; /* ID = 0x78 */ in can_sample() 116 msg.data[0] = 0x00 + i; in can_sample() 117 msg.data[1] = 0x11 + i; in can_sample() 118 msg.data[2] = 0x22 + i; in can_sample() 119 msg.data[3] = 0x33 + i; in can_sample() 120 msg.data[4] = 0x44 + i; in can_sample() 121 msg.data[5] = 0x55 + i; in can_sample() 122 msg.data[6] = 0x66 + i; in can_sample() 123 msg.data[7] = 0x77 + i; in can_sample() [all …]
|
| /bsp/microchip/same70/bsp/hpl/twihs/ |
| A D | hpl_twihs.c | 186 ASSERT(dev && msg); in _i2c_m_sync_transfer() 192 if (msg->flags & I2C_M_RD) { in _i2c_m_sync_transfer() 193 return _i2c_m_sync_read(dev, msg); in _i2c_m_sync_transfer() 205 msg->flags |= I2C_M_BUSY; in _i2c_m_sync_write() 207 if (msg->addr & I2C_M_TEN) { in _i2c_m_sync_write() 214 for (i = 0; i < msg->len; i++) { in _i2c_m_sync_write() 229 if (msg->flags & I2C_M_STOP) { in _i2c_m_sync_write() 244 msg->flags |= I2C_M_BUSY; in _i2c_m_sync_read() 246 if (msg->addr & I2C_M_TEN) { in _i2c_m_sync_read() 256 for (i = 0; i < msg->len; i++) { in _i2c_m_sync_read() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/de/lowlevel_v2x/ |
| A D | disp_waveform.h | 50 #define WF_DBG(msg, fmt...) pr_warn(msg, ##fmt) 51 #define WF_INFO(msg, fmt...) pr_warn(msg, ##fmt) 52 #define WF_WRN(msg, fmt...) pr_warn(msg, ##fmt) 53 #define WF_ERR(msg, fmt...) pr_err(msg, ##fmt) 55 #define WF_DBG(msg, fmt...) 56 #define WF_INFO(msg, fmt...) 57 #define WF_WRN(msg, fmt...) pr_warn(msg, ##fmt) 58 #define WF_ERR(msg, fmt...) pr_err(msg, ##fmt)
|
| /bsp/w60x/drivers/ |
| A D | drv_i2c.c | 25 struct rt_i2c_msg *msg; member 55 if (msg->flags & RT_I2C_ADDR_10BIT) in wm_i2c_send_address() 58 addr_lsb = msg->addr & 0xff; in wm_i2c_send_address() 60 if (msg->flags & RT_I2C_RD) in wm_i2c_send_address() 71 tls_i2c_write_byte((msg->addr << 1) | msg->flags, 1); in wm_i2c_send_address() 87 wm_i2c->msg = msgs; in wm_i2c_mst_xfer() 100 while (wm_i2c->msg[i].len > 1) in wm_i2c_mst_xfer() 103 wm_i2c->msg[i].len--; in wm_i2c_mst_xfer() 113 wm_i2c->msg[i].len--; in wm_i2c_mst_xfer() 114 wm_i2c->msg[i].buf++; in wm_i2c_mst_xfer() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/drivers/src/ |
| A D | hpm_mipi_dsi_drv.c | 86 if (!packet || !msg) in mipi_dsi_create_packet() 94 if (msg->channel > 3) in mipi_dsi_create_packet() 98 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f); in mipi_dsi_create_packet() 191 const struct mipi_dsi_msg *msg) in dw_mipi_dsi_read_from_fifo() argument 409 if (msg->rx_len) { in mipi_dsi_lp_cmd_transfer() 414 return msg->rx_len ? msg->rx_len : msg->tx_len; in mipi_dsi_lp_cmd_transfer() 420 struct mipi_dsi_msg msg = { in mipi_dsi_set_maximum_return_packet_size() local 435 struct mipi_dsi_msg msg = { in mipi_dsi_generic_write() local 463 struct mipi_dsi_msg msg = { in mipi_dsi_generic_read() local 492 struct mipi_dsi_msg msg = { in mipi_dsi_dcs_write_buffer() local [all …]
|
| /bsp/renesas/ra6m3-hmi-board/board/ports/ |
| A D | can_test.c | 80 struct rt_can_msg msg = {0}; in can_sample() local 121 msg.rtr = RT_CAN_DTR; /* 数据帧 */ in can_sample() 124 msg.data[0] = 0x00; in can_sample() 125 msg.data[1] = 0x11; in can_sample() 126 msg.data[2] = 0x22; in can_sample() 127 msg.data[3] = 0x33; in can_sample() 128 msg.data[4] = 0x44; in can_sample() 129 msg.data[5] = 0x55; in can_sample() 130 msg.data[6] = 0x66; in can_sample() 131 msg.data[7] = 0x77; in can_sample() [all …]
|
| /bsp/maxim/libraries/HAL_Drivers/ |
| A D | drv_i2c.c | 77 struct rt_i2c_msg *msg; in mxc_i2c_mst_xfer() local 82 msg = &msgs[i]; in mxc_i2c_mst_xfer() 84 …if (msg->flags & RT_I2C_ADDR_10BIT || msg->flags & RT_I2C_NO_START || msg->flags & RT_I2C_IGNORE_N… in mxc_i2c_mst_xfer() 90 if (msg->flags & RT_I2C_NO_STOP) in mxc_i2c_mst_xfer() 95 if (msg->flags & RT_I2C_RD) in mxc_i2c_mst_xfer() 97 addr = msg->addr << 1; in mxc_i2c_mst_xfer() 98 … = I2C_MasterRead(obj->config->i2c_periph, (uint8_t)addr, msg->buf, msg->len, restart)) != msg->le… in mxc_i2c_mst_xfer() 106 addr = msg->addr << 1; in mxc_i2c_mst_xfer() 107 …= I2C_MasterWrite(obj->config->i2c_periph, (uint8_t)addr, msg->buf, msg->len, restart)) != msg->le… in mxc_i2c_mst_xfer()
|
| /bsp/microchip/same70/bsp/examples/ |
| A D | driver_examples.c | 78 struct can_message msg; in CAN_0_rx_callback() local 80 msg.data = data; in CAN_0_rx_callback() 81 can_async_read(descr, &msg); in CAN_0_rx_callback() 90 struct can_message msg; in CAN_0_example() local 98 msg.id = 0x45A; in CAN_0_example() 99 msg.type = CAN_TYPE_DATA; in CAN_0_example() 100 msg.data = send_data; in CAN_0_example() 101 msg.len = 4; in CAN_0_example() 102 msg.fmt = CAN_FMT_STDID; in CAN_0_example() 111 msg.id = 0x100000A5; in CAN_0_example() [all …]
|
| /bsp/phytium/libraries/drivers/ |
| A D | drv_i2c_msg.c | 39 struct rt_i2c_msg *msg; member 56 input_cfg.msg.shmem = (uintptr)rt_ioremap((void *)input_cfg.msg.shmem, 0x1000); in i2c_msg_config() 57 input_cfg.msg.regfile= (uintptr)rt_ioremap((void *)input_cfg.msg.regfile, 0x1000); in i2c_msg_config() 148 struct FI2cMsg msg[2]; in i2c_msg_master_xfer() local 152 msg[0].buf = pmsg->buf; in i2c_msg_master_xfer() 156 msg[1].len = pmsg->len; in i2c_msg_master_xfer() 157 msg[1].buf = pmsg->buf; in i2c_msg_master_xfer() 166 struct FI2cMsg msg; in i2c_msg_master_xfer() local 167 msg.addr = pmsg->addr; in i2c_msg_master_xfer() 168 msg.buf = pmsg->buf; in i2c_msg_master_xfer() [all …]
|
| /bsp/microchip/same54/bsp/examples/ |
| A D | driver_examples.c | 94 struct can_message msg; in CAN_0_rx_callback() local 96 msg.data = data; in CAN_0_rx_callback() 97 can_async_read(descr, &msg); in CAN_0_rx_callback() 106 struct can_message msg; in CAN_0_example() local 114 msg.id = 0x45A; in CAN_0_example() 115 msg.type = CAN_TYPE_DATA; in CAN_0_example() 116 msg.data = send_data; in CAN_0_example() 117 msg.len = 4; in CAN_0_example() 118 msg.fmt = CAN_FMT_STDID; in CAN_0_example() 128 msg.id = 0x100000A5; in CAN_0_example() [all …]
|
| /bsp/stm32/stm32mp157a-st-ev1/board/ports/ |
| A D | dma_sample.c | 29 struct rx_msg msg; in uart_input() local 31 msg.dev = dev; in uart_input() 32 msg.size = size; in uart_input() 34 result = rt_mq_send(&rx_mq, &msg, sizeof(msg)); in uart_input() 44 struct rx_msg msg; in serial_thread_entry() local 51 rt_memset(&msg, 0, sizeof(msg)); in serial_thread_entry() 52 result = rt_mq_recv(&rx_mq, &msg, sizeof(msg), RT_WAITING_FOREVER); in serial_thread_entry() 55 rx_length = rt_device_read(msg.dev, 0, rx_buffer, msg.size); in serial_thread_entry()
|
| /bsp/hpmicro/libraries/drivers/ |
| A D | drv_i2c.c | 215 struct rt_i2c_msg *msg; in hpm_i2c_master_transfer() local 229 msg = &msgs[i]; in hpm_i2c_master_transfer() 230 remaining_size = msg->len; in hpm_i2c_master_transfer() 249 rt_memcpy(aligned_buf, msg->buf, msg->len); in hpm_i2c_master_transfer() 271 if (msg->len == 0) in hpm_i2c_master_transfer() 283 if ((msg->flags & RT_I2C_NO_START) || (msg->flags & RT_I2C_NO_STOP) || in hpm_i2c_master_transfer() 297 i2c_stat = i2c_master_start_dma_read(i2c_info->base, msg->addr, msg->len); in hpm_i2c_master_transfer() 314 rt_memcpy(msg->buf, aligned_buf, msg->len); in hpm_i2c_master_transfer() 324 if (msg->len == 0) in hpm_i2c_master_transfer() 336 if ((msg->flags & RT_I2C_NO_START) || (msg->flags & RT_I2C_NO_STOP) || in hpm_i2c_master_transfer() [all …]
|
| /bsp/tm4c123bsp/libraries/Drivers/ |
| A D | drv_i2c.c | 74 struct rt_i2c_msg *msg; in tm4c123_i2c_xfer() local 81 msg = &msgs[i]; in tm4c123_i2c_xfer() 83 if (msg->flags & RT_I2C_ADDR_10BIT) { in tm4c123_i2c_xfer() 87 if (msg->flags & RT_I2C_RD) { in tm4c123_i2c_xfer() 88 rt_uint8_t *data = msg->buf; in tm4c123_i2c_xfer() 92 if (msg->flags & RT_I2C_NO_START) { in tm4c123_i2c_xfer() 102 if (msg->len > 1) { in tm4c123_i2c_xfer() 113 if (msg->flags & RT_I2C_NO_STOP) { in tm4c123_i2c_xfer() 124 rt_uint8_t *data = msg->buf; in tm4c123_i2c_xfer() 129 if (msg->len == 1) { in tm4c123_i2c_xfer() [all …]
|
| /bsp/hc32/libraries/hc32_drivers/ |
| A D | drv_i2c.c | 318 if (msg->len > 1U) in I2C_Master_Transmit_DMA() 326 if (msg->len > 1U) in I2C_Master_Transmit_DMA() 360 if (1UL == msg->len) in I2C_Master_Receive_DMA() 364 else if (msg->len > 2U) in I2C_Master_Receive_DMA() 371 if (msg->len > 2U) in I2C_Master_Receive_DMA() 386 if (msg->len > 1U) in I2C_Master_Receive_DMA() 400 msg->buf[msg->len - 2U] = I2C_ReadData(i2c_obj->config->Instance); in I2C_Master_Receive_DMA() 417 msg->buf[msg->len - 1U] = I2C_ReadData(i2c_obj->config->Instance); in I2C_Master_Receive_DMA() 435 return I2C_TransData(i2c_obj->config->Instance, msg->buf, msg->len, i2c_obj->config->timeout); in I2C_Master_Transmit() 441 if (msg->len == 1UL) in I2C_Master_Receive() [all …]
|
| /bsp/microchip/samc21/bsp/examples/ |
| A D | driver_examples.c | 132 struct can_message msg; in CAN_0_rx_callback() local 134 msg.data = data; in CAN_0_rx_callback() 135 can_async_read(descr, &msg); in CAN_0_rx_callback() 144 struct can_message msg; in CAN_0_example() local 152 msg.id = 0x45A; in CAN_0_example() 153 msg.type = CAN_TYPE_DATA; in CAN_0_example() 154 msg.data = send_data; in CAN_0_example() 155 msg.len = 4; in CAN_0_example() 156 msg.fmt = CAN_FMT_STDID; in CAN_0_example() 166 msg.id = 0x100000A5; in CAN_0_example() [all …]
|