Home
last modified time | relevance | path

Searched refs:data_buf (Results 1 – 25 of 39) sorted by relevance

12

/Zephyr-latest/tests/subsys/canbus/isotp/implementation/src/
Dmain.c48 uint8_t data_buf[128]; variable
84 uint8_t *data_buf_ptr = data_buf; in get_sf()
86 memset(data_buf, 0, sizeof(data_buf)); in get_sf()
89 ret = isotp_recv(recv_ctx, data_buf_ptr++, sizeof(data_buf) - 1, in get_sf()
93 ret = memcmp(random_data, data_buf, DATA_SIZE_SF); in get_sf()
183 memset(data_buf, 0, sizeof(data_buf)); in receive_test_data()
184 ret = isotp_recv(recv_ctx, data_buf, sizeof(data_buf), in receive_test_data()
189 check_data(data_buf, data_ptr, ret); in receive_test_data()
198 ret = isotp_recv(recv_ctx, data_buf, sizeof(data_buf), K_MSEC(50)); in receive_test_data()
253 const size_t data_size = sizeof(data_buf) * 2 + 10; in ZTEST()
[all …]
/Zephyr-latest/samples/drivers/mspi/mspi_async/src/
Dmain.c49 .data_buf = memc_write_buffer,
57 .data_buf = memc_write_buffer + 256,
65 .data_buf = memc_write_buffer + 512,
73 .data_buf = memc_write_buffer + 512 + 256,
84 .data_buf = memc_read_buffer,
92 .data_buf = memc_read_buffer + 256,
100 .data_buf = memc_read_buffer + 512,
108 .data_buf = memc_read_buffer + 512 + 256,
/Zephyr-latest/subsys/usb/device/
Dusb_device.c108 uint8_t *data_buf; member
248 usb_write(USB_CONTROL_EP_IN, usb_dev.data_buf, in usb_data_to_host()
250 usb_dev.data_buf += chunk; in usb_data_to_host()
310 usb_dev.data_buf = usb_dev.req_data; in usb_handle_control_transfer()
339 &usb_dev.data_buf)) { in usb_handle_control_transfer()
355 usb_dev.data_buf, 0, &chunk) < 0) { in usb_handle_control_transfer()
363 usb_dev.data_buf, in usb_handle_control_transfer()
371 usb_dev.data_buf += chunk; in usb_handle_control_transfer()
375 usb_dev.data_buf = usb_dev.req_data; in usb_handle_control_transfer()
378 &usb_dev.data_buf)) { in usb_handle_control_transfer()
[all …]
Dos_desc.h27 int32_t *len, uint8_t **data_buf);
29 int32_t *len, uint8_t **data_buf);
/Zephyr-latest/include/zephyr/storage/
Ddisk_access.h82 int disk_access_read(const char *pdrv, uint8_t *data_buf,
100 int disk_access_write(const char *pdrv, const uint8_t *data_buf,
/Zephyr-latest/tests/net/lib/coap/src/
Dmain.c71 static uint8_t data_buf[2][COAP_BUF_SIZE]; variable
83 uint8_t *data = data_buf[0]; in ZTEST()
108 uint8_t *data = data_buf[0]; in ZTEST()
150 uint8_t *data = data_buf[0]; in ZTEST()
186 uint8_t *data = data_buf[0]; in ZTEST()
226 uint8_t *data = data_buf[0]; in ZTEST()
293 uint8_t *data = data_buf[0]; in ZTEST()
312 uint8_t *data = data_buf[0]; in ZTEST()
325 uint8_t *data = data_buf[0]; in ZTEST()
339 uint8_t *data = data_buf[0]; in ZTEST()
[all …]
/Zephyr-latest/drivers/disk/nvme/
Dnvme_disk.c20 uint8_t *data_buf, in nvme_disk_read() argument
32 if (!NVME_IS_BUFFER_DWORD_ALIGNED(data_buf)) { in nvme_disk_read()
41 request = nvme_allocate_request_vaddr((void *)data_buf, payload_size, in nvme_disk_read()
69 const uint8_t *data_buf, in nvme_disk_write() argument
81 if (!NVME_IS_BUFFER_DWORD_ALIGNED(data_buf)) { in nvme_disk_write()
90 request = nvme_allocate_request_vaddr((void *)data_buf, payload_size, in nvme_disk_write()
/Zephyr-latest/drivers/mipi_dbi/
Dmipi_dbi_spi.c69 const uint8_t *data_buf, size_t len) in mipi_dbi_spi_write_helper_3wire() argument
102 data->spi_byte = MIPI_DBI_DC_BIT | data_buf[i]; in mipi_dbi_spi_write_helper_3wire()
118 const uint8_t *data_buf, size_t len) in mipi_dbi_spi_write_helper_4wire_8bit() argument
147 buffer.buf = (void *)data_buf; in mipi_dbi_spi_write_helper_4wire_8bit()
169 const uint8_t *data_buf, size_t len) in mipi_dbi_spi_write_helper_4wire_16bit() argument
206 data16 = sys_cpu_to_be16(data_buf[i]); in mipi_dbi_spi_write_helper_4wire_16bit()
224 buffer.buf = (void *)data_buf; in mipi_dbi_spi_write_helper_4wire_16bit()
236 data16 = sys_cpu_to_be16(data_buf[i]); in mipi_dbi_spi_write_helper_4wire_16bit()
256 const uint8_t *data_buf, size_t len) in mipi_dbi_spi_write_helper() argument
271 data_buf, len); in mipi_dbi_spi_write_helper()
[all …]
Dmipi_dbi_bitbang.c87 uint8_t cmd, const uint8_t *data_buf, size_t len) in mipi_dbi_bitbang_write_helper() argument
113 value = *(data_buf++); in mipi_dbi_bitbang_write_helper()
138 value = *(data_buf++); in mipi_dbi_bitbang_write_helper()
159 const uint8_t *data_buf, size_t len) in mipi_dbi_bitbang_command_write() argument
161 return mipi_dbi_bitbang_write_helper(dev, dbi_config, true, cmd, data_buf, len); in mipi_dbi_bitbang_command_write()
Dmipi_dbi_stm32_fmc.c74 const uint8_t *data_buf, size_t len) in mipi_dbi_stm32_fmc_command_write() argument
91 sys_write16((uint16_t)data_buf[i], config->data_addr); in mipi_dbi_stm32_fmc_command_write()
Dmipi_dbi_nxp_flexio_lcdif.c307 uint8_t cmd, const uint8_t *data_buf, in mipi_dbi_flexio_lcdif_command_write() argument
327 if ((data_buf != NULL) && (len != 0)) { in mipi_dbi_flexio_lcdif_command_write()
328 flexio_lcdif_write_data_array(flexio_lcd, data_buf, len); in mipi_dbi_flexio_lcdif_command_write()
/Zephyr-latest/include/zephyr/drivers/
Ddisk.h108 int (*read)(struct disk_info *disk, uint8_t *data_buf,
110 int (*write)(struct disk_info *disk, const uint8_t *data_buf,
/Zephyr-latest/drivers/disk/
Dsdmmc_stm32.c373 static int stm32_sdmmc_read_blocks(HandleTypeDef *hsd, uint8_t *data_buf, in stm32_sdmmc_read_blocks() argument
379 return HAL_MMC_ReadBlocks_DMA(hsd, data_buf, start_sector, num_sector); in stm32_sdmmc_read_blocks()
381 return HAL_SD_ReadBlocks_DMA(hsd, data_buf, start_sector, num_sector); in stm32_sdmmc_read_blocks()
387 return HAL_MMC_ReadBlocks_IT(hsd, data_buf, start_sector, num_sector); in stm32_sdmmc_read_blocks()
389 return HAL_SD_ReadBlocks_IT(hsd, data_buf, start_sector, num_sector); in stm32_sdmmc_read_blocks()
395 static int stm32_sdmmc_access_read(struct disk_info *disk, uint8_t *data_buf, in stm32_sdmmc_access_read() argument
404 err = stm32_sdmmc_read_blocks(&priv->hsd, data_buf, start_sector, num_sector); in stm32_sdmmc_access_read()
428 uint8_t *data_buf, in stm32_sdmmc_write_blocks() argument
434 return HAL_MMC_WriteBlocks_DMA(hsd, data_buf, start_sector, num_sector); in stm32_sdmmc_write_blocks()
436 return HAL_SD_WriteBlocks_DMA(hsd, data_buf, start_sector, num_sector); in stm32_sdmmc_write_blocks()
[all …]
Dloopback_disk.c29 static int loopback_disk_access_read(struct disk_info *disk, uint8_t *data_buf, in loopback_disk_access_read() argument
45 ret = fs_read(&ctx->file, data_buf, len_left); in loopback_disk_access_read()
62 static int loopback_disk_access_write(struct disk_info *disk, const uint8_t *data_buf, in loopback_disk_access_write() argument
83 ret = fs_write(&ctx->file, &data_buf[buf_offset], total_len - buf_offset); in loopback_disk_access_write()
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmain.c153 static uint8_t data_buf[128]; variable
205 memset(data_buf, 0, sizeof(data_buf)); in get_sf()
206 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), K_MSEC(1000)); in get_sf()
209 ret = check_data(data_buf, random_data, data_size); in get_sf()
217 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), K_MSEC(200)); in get_sf_ignore()
237 memset(data_buf, 0, sizeof(data_buf)); in receive_test_data()
238 recv_len = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), in receive_test_data()
244 ret = check_data(data_buf, data_ptr, recv_len); in receive_test_data()
254 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), K_MSEC(50)); in receive_test_data()
827 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), K_FOREVER); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/mem_protect/protection/src/
Dtargets.c14 uint8_t data_buf[BUF_SIZE] __aligned(sizeof(int));
Dtargets.h14 extern uint8_t data_buf[BUF_SIZE];
Dmain.c157 execute_from_buffer(data_buf); in ZTEST()
/Zephyr-latest/subsys/disk/
Ddisk_access.c93 int disk_access_read(const char *pdrv, uint8_t *data_buf, in disk_access_read() argument
101 rc = disk->ops->read(disk, data_buf, start_sector, num_sector); in disk_access_read()
107 int disk_access_write(const char *pdrv, const uint8_t *data_buf, in disk_access_write() argument
115 rc = disk->ops->write(disk, data_buf, start_sector, num_sector); in disk_access_write()
/Zephyr-latest/drivers/eeprom/
Deeprom_mchp_xec.c230 uint8_t *data_buf = (uint8_t *)buf; in eeprom_xec_read() local
251 eeprom_xec_data_read_32_bytes(regs, &data_buf[chunk_idx], in eeprom_xec_read()
266 uint8_t *data_buf = (uint8_t *)buf; in eeprom_xec_write() local
287 eeprom_xec_data_write_32_bytes(regs, &data_buf[chunk_idx], in eeprom_xec_write()
/Zephyr-latest/drivers/serial/
Duart_b91.c46 uint8_t data_buf[UART_DATA_SIZE]; member
346 uart->data_buf[data->tx_byte_index] = c; in uart_b91_poll_out()
347 data->tx_byte_index = (data->tx_byte_index + 1) % ARRAY_SIZE(uart->data_buf); in uart_b91_poll_out()
360 *c = uart->data_buf[data->rx_byte_index]; in uart_b91_poll_in()
361 data->rx_byte_index = (data->rx_byte_index + 1) % ARRAY_SIZE(uart->data_buf); in uart_b91_poll_in()
/Zephyr-latest/drivers/flash/
Dflash_mspi_emul_device.c127 memcpy(packet->data_buf, data->mem + packet->address, in emul_mspi_device_transceive()
130 memcpy(data->mem + packet->address, packet->data_buf, in emul_mspi_device_transceive()
233 data->packet.data_buf = src; in flash_mspi_emul_write()
282 data->packet.data_buf = rdata; in flash_mspi_emul_read()
Dflash_mspi_atxp032.c121 data->packet.data_buf = wdata; in flash_mspi_atxp032_command_write()
153 data->packet.data_buf = rdata; in flash_mspi_atxp032_command_read()
323 data->packet.data_buf = wdata; in flash_mspi_atxp032_page_program()
405 data->packet.data_buf = rdata; in flash_mspi_atxp032_read()
718 data->packet.data_buf = rdata; in flash_mspi_atxp032_read_sfdp()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_mcr20a.h50 uint8_t *data_buf, uint8_t len);
52 uint8_t *data_buf, uint8_t len);
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_uac2.c309 void *data_buf; in schedule_iso_out_read() local
331 data_buf = ctx->ops->get_recv_buf(dev, terminal, mps, ctx->user_data); in schedule_iso_out_read()
332 if (!data_buf) { in schedule_iso_out_read()
338 buf = uac2_buf_alloc(ep, data_buf, mps); in schedule_iso_out_read()
346 data_buf, 0, ctx->user_data); in schedule_iso_out_read()

12