Home
last modified time | relevance | path

Searched refs:read_buf (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/drivers/sensor/honeywell/mpr/
Dmpr.c42 uint8_t read_buf[4] = { 0x0 }; in mpr_read_reg() local
55 rc = i2c_read_dt(&cfg->i2c, read_buf, sizeof(read_buf)); in mpr_read_reg()
60 if (!(*read_buf & MPR_STATUS_MASK_POWER_ON) in mpr_read_reg()
61 || (*read_buf & MPR_STATUS_MASK_INTEGRITY_TEST_FAILED) in mpr_read_reg()
62 || (*read_buf & MPR_STATUS_MASK_MATH_SATURATION)) { in mpr_read_reg()
66 if (!(*read_buf & MPR_STATUS_MASK_BUSY)) { in mpr_read_reg()
75 data->reg_val = (read_buf[1] << 16) in mpr_read_reg()
76 | (read_buf[2] << 8) in mpr_read_reg()
77 | read_buf[3]; in mpr_read_reg()
/Zephyr-latest/tests/subsys/ipc/pbuf/src/
Dmain.c37 uint8_t read_buf[MEM_AREA_SZ] = {0}; in ZTEST() local
75 ret = pbuf_read(&pb, read_buf, ret-1); in ZTEST()
78 ret = pbuf_read(&pb, read_buf, ret); in ZTEST()
81 zassert_mem_equal(read_buf, write_buf, ret); in ZTEST()
87 ret = pbuf_read(&pb, read_buf, ret); in ZTEST()
90 zassert_mem_equal(read_buf, write_buf+MSGA_SZ, ret); in ZTEST()
103 ret = pbuf_read(&pb, read_buf, ret); in ZTEST()
106 zassert_mem_equal(write_buf, read_buf, MPS); in ZTEST()
143 uint8_t read_buf[MEM_AREA_SZ]; in ZTEST() local
154 zassert_equal(pbuf_read(NULL, read_buf, 10), -EINVAL); in ZTEST()
[all …]
/Zephyr-latest/samples/drivers/spi_flash_at45/src/
Dmain.c24 static uint8_t read_buf[TEST_REGION_SIZE]; variable
90 read_buf, TEST_REGION_SIZE); in main()
97 if (read_buf[i] != 0xFF) { in main()
100 i, 0xFF, read_buf[i]); in main()
130 read_buf, TEST_REGION_SIZE); in main()
140 if (read_buf[i] != write_buf[i]) { in main()
143 i, write_buf[i], read_buf[i]); in main()
/Zephyr-latest/drivers/display/
Ddisplay_sdl.c40 uint8_t *read_buf; member
275 static void sdl_display_read_argb8888(const uint8_t *read_buf, in sdl_display_read_argb8888() argument
280 memcpy(buf, read_buf, desc->pitch * 4U * desc->height); in sdl_display_read_argb8888()
283 static void sdl_display_read_rgb888(const uint8_t *read_buf, in sdl_display_read_rgb888() argument
297 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_rgb888()
308 static void sdl_display_read_rgb565(const uint8_t *read_buf, in sdl_display_read_rgb565() argument
323 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_rgb565()
333 static void sdl_display_read_bgr565(const uint8_t *read_buf, in sdl_display_read_bgr565() argument
348 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_bgr565()
358 static void sdl_display_read_mono(const uint8_t *read_buf, in sdl_display_read_mono() argument
[all …]
/Zephyr-latest/drivers/serial/
Dserial_test.c40 uint8_t *read_buf; member
150 if (data->read_buf) { in irq_callback_set()
321 if (callback == NULL && data->read_buf) { in serial_vnd_callback_set()
370 if (!data->read_buf) { in async_rx_run()
378 read_len = ring_buf_get(data->read_queue, &data->read_buf[data->read_position], in async_rx_run()
384 .data.rx.buf = data->read_buf, in async_rx_run()
394 data->read_buf = NULL; in async_rx_run()
402 static int serial_vnd_rx_enable(const struct device *dev, uint8_t *read_buf, size_t read_size, in serial_vnd_rx_enable() argument
419 data->read_buf = read_buf; in serial_vnd_rx_enable()
/Zephyr-latest/drivers/modem/
Dmodem_receiver.c109 static uint8_t read_buf[MAX_READ_SIZE]; in mdm_receiver_isr() local
122 rx = uart_fifo_read(ctx->uart_dev, read_buf, sizeof(read_buf)); in mdm_receiver_isr()
124 ret = ring_buf_put(&ctx->rx_rb, read_buf, rx); in mdm_receiver_isr()
/Zephyr-latest/tests/drivers/flash/negative_tests/src/
Dmain.c180 uint8_t read_buf[EXPECTED_SIZE]; in ZTEST() local
194 rc = flash_read(flash_dev, (TEST_FLASH_START - page_info.size), read_buf, EXPECTED_SIZE); in ZTEST()
198 rc = flash_read(flash_dev, (TEST_FLASH_START + TEST_FLASH_SIZE), read_buf, EXPECTED_SIZE); in ZTEST()
202 rc = flash_read(flash_dev, TEST_AREA_OFFSET, read_buf, (TEST_FLASH_SIZE + page_info.size)); in ZTEST()
206 rc = flash_read(flash_dev, TEST_AREA_OFFSET, read_buf, 0); in ZTEST()
/Zephyr-latest/drivers/w1/
Dw1_net.c370 uint8_t *read_buf, size_t read_len) in write_read() argument
384 if (read_buf == NULL && read_len > 0) { in write_read()
387 return w1_read_block(dev, read_buf, read_len); in write_read()
392 uint8_t *read_buf, size_t read_len) in w1_write_read() argument
397 ret = write_read(dev, config, write_buf, write_len, read_buf, read_len); in w1_write_read()
/Zephyr-latest/include/zephyr/drivers/i3c/
Dhdr_ddr.h104 void *read_buf, size_t num_read, uint8_t write_cmd) in i3c_hdr_ddr_write_read() argument
114 msg[1].buf = (uint8_t *)read_buf; in i3c_hdr_ddr_write_read()
/Zephyr-latest/tests/drivers/flash/common/src/
Dmain.c259 uint8_t read_buf[EXPECTED_SIZE]; in ZTEST() local
270 rc = flash_read(flash_dev, page_info.start_offset, read_buf, EXPECTED_SIZE); in ZTEST()
275 if (read_buf[i] != expected[i]) { in ZTEST()
277 TC_PRINT("i=%d:\tread_buf[i]=%d\texpected[i]=%d\n", i, read_buf[i], in ZTEST()
283 zassert_not_equal(read_buf[0], expected[1], "These values shall be different"); in ZTEST()
292 rc = flash_read(flash_dev, page_info.start_offset, read_buf, EXPECTED_SIZE); in ZTEST()
297 if (read_buf[i] != erase_value) { in ZTEST()
299 TC_PRINT("i=%d:\tread_buf[i]=%d\texpected=%d\n", i, read_buf[i], in ZTEST()
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_scan_delegator.c55 NET_BUF_SIMPLE_DEFINE_STATIC(read_buf, BT_ATT_MAX_ATTRIBUTE_LEN);
168 ntf_size = MIN(max_ntf_size, read_buf.len); in bass_notify_receive_state()
169 if (ntf_size < read_buf.len) { in bass_notify_receive_state()
170 LOG_DBG("Sending truncated notification (%u/%u)", ntf_size, read_buf.len); in bass_notify_receive_state()
175 internal_state->attr, read_buf.data, in bass_notify_receive_state()
187 net_buf_simple_reset(&read_buf); in net_buf_put_recv_state()
197 (void)net_buf_simple_add_u8(&read_buf, state->src_id); in net_buf_put_recv_state()
198 (void)net_buf_simple_add_u8(&read_buf, state->addr.type); in net_buf_put_recv_state()
199 (void)net_buf_simple_add_mem(&read_buf, &state->addr.a, in net_buf_put_recv_state()
201 (void)net_buf_simple_add_u8(&read_buf, state->adv_sid); in net_buf_put_recv_state()
[all …]
Dtbs.c80 NET_BUF_SIMPLE_DEFINE_STATIC(read_buf, READ_BUF_SIZE);
489 net_buf_put_call_states(inst, &read_buf); in inst_notify_calls()
491 err = bt_gatt_notify_uuid(NULL, BT_UUID_TBS_CALL_STATE, inst->attrs, read_buf.data, in inst_notify_calls()
492 read_buf.len); in inst_notify_calls()
499 net_buf_put_current_calls(inst, &read_buf); in inst_notify_calls()
502 read_buf.data, read_buf.len); in inst_notify_calls()
591 net_buf_simple_reset(&read_buf); in read_uri_scheme_list()
593 net_buf_simple_add_mem(&read_buf, inst->uri_scheme_list, strlen(inst->uri_scheme_list)); in read_uri_scheme_list()
600 if (read_buf.len + uri_len >= read_buf.size) { in read_uri_scheme_list()
606 net_buf_simple_add_mem(&read_buf, svc_insts[i].uri_scheme_list, uri_len); in read_uri_scheme_list()
[all …]
Dpacs.c100 NET_BUF_SIMPLE_DEFINE_STATIC(read_buf, BT_ATT_MAX_ATTRIBUTE_LEN);
374 get_pac_records(&snk_pacs_list, &read_buf); in snk_read()
376 ret_val = bt_gatt_attr_read(conn, attr, buf, len, offset, read_buf.data, in snk_read()
377 read_buf.len); in snk_read()
479 get_pac_records(&src_pacs_list, &read_buf); in src_read()
481 ret_val = bt_gatt_attr_read(conn, attr, buf, len, offset, read_buf.data, in src_read()
482 read_buf.len); in src_read()
743 get_pac_records(pacs, &read_buf); in pac_notify()
746 read_buf.data, read_buf.len); in pac_notify()
Dtbs_internal.h391 uint8_t read_buf[BT_TBS_CLIENT_INST_READ_BUF_SIZE]; member
/Zephyr-latest/include/zephyr/drivers/
Di2c.h918 size_t num_write, void *read_buf, size_t num_read, in i2c_write_read_cb() argument
929 msgs[1].buf = (uint8_t *)read_buf; in i2c_write_read_cb()
959 void *read_buf, size_t num_read, i2c_callback_t cb, in i2c_write_read_cb_dt() argument
963 read_buf, num_read, cb, userdata); in i2c_write_read_cb_dt()
1368 void *read_buf, size_t num_read) in i2c_write_read() argument
1376 msg[1].buf = (uint8_t *)read_buf; in i2c_write_read()
1402 void *read_buf, size_t num_read) in i2c_write_read_dt() argument
1406 read_buf, num_read); in i2c_write_read_dt()
Dw1.h577 uint8_t *read_buf, size_t read_len);
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_rtio_stream.c135 uint8_t *read_buf = buf + sizeof(hdr); in icm42688_fifo_count_cb() local
157 rtio_sqe_prep_read(read_fifo_data, spi_iodev, RTIO_PRIO_NORM, read_buf, read_len, in icm42688_fifo_count_cb()
279 uint8_t *read_buf = (uint8_t *)&drv_data->fifo_count; in icm42688_int_status_cb() local
283 rtio_sqe_prep_read(read_fifo_count, spi_iodev, RTIO_PRIO_NORM, read_buf, 2, NULL); in icm42688_int_status_cb()
/Zephyr-latest/drivers/espi/
Despi_taf_npcx.c53 uint8_t read_buf[MAX_TX_PAYLOAD_SIZE]; member
365 rc = flash_read(spi_dev, addr, npcx_espi_taf_data.read_buf, len); in espi_taf_npcx_flash_read()
372 (uint32_t *)npcx_espi_taf_data.read_buf); in espi_taf_npcx_flash_read()
497 .rx_buf = npcx_espi_taf_data.read_buf, in espi_taf_npcx_rpmc_op2()
514 pckt->len, (uint32_t *)npcx_espi_taf_data.read_buf); in espi_taf_npcx_rpmc_op2()
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_rtio_stream.c303 uint8_t *buf, *read_buf; in lsm6dsv16x_read_fifo_cb() local
334 read_buf = buf + sizeof(hdr); in lsm6dsv16x_read_fifo_cb()
360 read_buf, buf_avail, lsm6dsv16x->streaming_sqe); in lsm6dsv16x_read_fifo_cb()
/Zephyr-latest/drivers/input/
Dinput_gt911.c95 void *read_buf, size_t num_read) in gt911_i2c_write_read() argument
100 return i2c_write_read(config->bus.bus, data->actual_address, write_buf, num_write, read_buf, in gt911_i2c_write_read()
/Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/
Dmain.c41 static uint8_t read_buf[TESTBUF_SIZE]; variable
50 rc = flash_read(fdev, FLASH_BASE + start, read_buf, size); \
52 zassert_mem_equal(read_buf, buf, size, "should equal %s", #buf);\
/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345_stream.c179 uint8_t *read_buf = buf + sizeof(*hdr); in adxl345_process_fifo_samples_cb() local
216 read_buf + data->fifo_total_bytes, in adxl345_process_fifo_samples_cb()
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362_stream.c208 uint8_t *read_buf = buf + sizeof(*hdr); in adxl362_process_fifo_samples_cb() local
241 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, read_buf, read_len, in adxl362_process_fifo_samples_cb()
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372_stream.c253 uint8_t *read_buf = buf + sizeof(*hdr); in adxl372_process_fifo_samples_cb() local
286 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, read_buf, read_len, in adxl372_process_fifo_samples_cb()
/Zephyr-latest/drivers/adc/
Dadc_ads131m02.c167 uint8_t *read_buf, size_t read_buf_len) in ads131m02_reg_read() argument
176 read_buf, read_buf_len); in ads131m02_reg_read()

12