Home
last modified time | relevance | path

Searched refs:rx_buf (Results 26 – 50 of 266) sorted by relevance

1234567891011

/Zephyr-latest/drivers/sensor/renesas/hs300x/
Dhs300x.c33 uint8_t rx_buf[4]; in hs300x_read_sample() local
36 rc = i2c_read_dt(&cfg->bus, rx_buf, sizeof(rx_buf)); in hs300x_read_sample()
42 if ((rx_buf[3] & HS300X_STATUS_MASK) != 0) { in hs300x_read_sample()
47 *rh_sample = sys_get_be16(rx_buf); in hs300x_read_sample()
48 *t_sample = sys_get_be16(&rx_buf[2]); in hs300x_read_sample()
/Zephyr-latest/drivers/serial/
Duart_emul.c77 uint8_t *rx_buf; member
402 data->rx_buf = data->rx_buf_next; in uart_emul_async_switch_buf_nolock()
416 uint8_t *rx_buf; in uart_emul_async_rx_timeout_handler() local
426 rx_buf = data->rx_buf; in uart_emul_async_rx_timeout_handler()
438 if (data->rx_buf == NULL) { in uart_emul_async_rx_timeout_handler()
446 if (!rx_en || rx_buf == NULL || rx_buf_data_len == 0) { in uart_emul_async_rx_timeout_handler()
453 .buf = rx_buf, in uart_emul_async_rx_timeout_handler()
464 .data.rx_buf.buf = rx_buf, in uart_emul_async_rx_timeout_handler()
486 uint8_t *rx_buf = NULL; in uart_emul_async_rx_handler() local
493 rx_buf = data->rx_buf; in uart_emul_async_rx_handler()
[all …]
Duart_async_rx.c46 struct uart_async_rx_buf *rx_buf = in uart_async_rx_on_rdy() local
49 rx_buf->wr_idx += length; in uart_async_rx_on_rdy()
50 __ASSERT_NO_MSG(rx_buf->wr_idx <= rx_data->buf_len); in uart_async_rx_on_rdy()
75 struct uart_async_rx_buf *rx_buf = in uart_async_rx_on_buf_rel() local
78 rx_buf->completed = 1; in uart_async_rx_on_buf_rel()
/Zephyr-latest/drivers/sensor/sensirion/sht4x/
Dsht4x.c45 uint8_t rx_buf[6]; in sht4x_read_sample() local
48 rc = i2c_read_dt(&cfg->bus, rx_buf, sizeof(rx_buf)); in sht4x_read_sample()
54 *t_sample = sys_get_be16(rx_buf); in sht4x_read_sample()
55 if (sht4x_compute_crc(*t_sample) != rx_buf[2]) { in sht4x_read_sample()
60 *rh_sample = sys_get_be16(&rx_buf[3]); in sht4x_read_sample()
61 if (sht4x_compute_crc(*rh_sample) != rx_buf[5]) { in sht4x_read_sample()
/Zephyr-latest/drivers/adc/
Dadc_ads131m02.c149 struct spi_buf rx_buf = { in ads131m02_transceive() local
154 .buffers = &rx_buf, in ads131m02_transceive()
184 uint8_t rx_buf[3] = {0}; in ads131m02_reg_write() local
191 rx_buf, sizeof(rx_buf)); in ads131m02_reg_write()
439 uint8_t rx_buf[12] = {0}; in ads131m02_read_sample() local
442 rx_buf, sizeof(rx_buf)); in ads131m02_read_sample()
447 int_status = sys_get_be16(&rx_buf[0]); in ads131m02_read_sample()
449 *buffer = sys_get_be24(&rx_buf[3]); in ads131m02_read_sample()
452 *buffer = sys_get_be24(&rx_buf[6]); in ads131m02_read_sample()
546 uint8_t rx_buf[3] = {0}; in ads131m02_device_reset() local
[all …]
/Zephyr-latest/include/zephyr/drivers/console/
Duart_mcumgr.h41 typedef void uart_mcumgr_recv_fn(struct uart_mcumgr_rx_buf *rx_buf);
58 void uart_mcumgr_free_rx_buf(struct uart_mcumgr_rx_buf *rx_buf);
/Zephyr-latest/drivers/sensor/sensirion/sts4x/
Dsts4x.c69 uint8_t rx_buf[3]; in sts4x_read_sample() local
72 ret = i2c_read_dt(&cfg->bus, rx_buf, sizeof(rx_buf)); in sts4x_read_sample()
78 *temp_sample = sys_get_be16(rx_buf); in sts4x_read_sample()
79 ret = sts4x_crc_check(*temp_sample, rx_buf[2]); in sts4x_read_sample()
/Zephyr-latest/tests/net/socket/tcp/src/
Dmain.c106 char rx_buf[30] = {0}; in test_recv() local
108 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), flags); in test_recv()
112 zassert_equal(strncmp(rx_buf, TEST_STR_SMALL, strlen(TEST_STR_SMALL)), in test_recv()
123 char rx_buf[30] = {0}; in test_recvfrom() local
125 recved = zsock_recvfrom(sock, rx_buf, sizeof(rx_buf), flags, addr, addrlen); in test_recvfrom()
129 zassert_equal(strncmp(rx_buf, TEST_STR_SMALL, strlen(TEST_STR_SMALL)), in test_recvfrom()
168 char rx_buf[1]; in test_eof() local
172 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof()
176 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof()
181 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof()
[all …]
/Zephyr-latest/drivers/ethernet/
Doa_tc6.c25 struct spi_buf rx_buf = { .buf = buf, .len = sizeof(buf) }; in oa_tc6_reg_read() local
26 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in oa_tc6_reg_read()
36 rx_buf.len -= sizeof(rvn); in oa_tc6_reg_read()
83 struct spi_buf rx_buf = { .buf = buf_rx, .len = sizeof(buf_rx) }; in oa_tc6_reg_write() local
84 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in oa_tc6_reg_write()
94 rx_buf.len -= sizeof(rvn); in oa_tc6_reg_write()
284 struct spi_buf rx_buf[2]; in oa_tc6_chunk_spi_transfer() local
299 rx_buf[0].buf = buf_rx; in oa_tc6_chunk_spi_transfer()
300 rx_buf[0].len = tc6->cps; in oa_tc6_chunk_spi_transfer()
302 rx_buf[1].buf = ftr; in oa_tc6_chunk_spi_transfer()
[all …]
Deth_lan9250.c52 struct spi_buf rx_buf[3]; in lan9250_read_sys_reg() local
54 const struct spi_buf_set rx = {.buffers = rx_buf, .count = 3}; in lan9250_read_sys_reg()
65 rx_buf[0].buf = NULL; in lan9250_read_sys_reg()
66 rx_buf[0].len = 1; in lan9250_read_sys_reg()
67 rx_buf[1].buf = NULL; in lan9250_read_sys_reg()
68 rx_buf[1].len = 2; in lan9250_read_sys_reg()
69 rx_buf[2].buf = value; in lan9250_read_sys_reg()
70 rx_buf[2].len = sizeof(uint32_t); in lan9250_read_sys_reg()
430 struct spi_buf rx_buf[3]; in lan9250_read_buf() local
432 const struct spi_buf_set rx = {.buffers = rx_buf, .count = 3}; in lan9250_read_buf()
[all …]
/Zephyr-latest/drivers/wifi/infineon/
Dairoc_whd_hal_spi.c120 struct spi_buf rx_buf[2]; in whd_bus_spi_transfer() local
121 struct spi_buf_set rx_set = {.buffers = rx_buf, .count = 2}; in whd_bus_spi_transfer()
134 rx_buf[0].buf = rx; in whd_bus_spi_transfer()
135 rx_buf[0].len = rx_length; in whd_bus_spi_transfer()
141 rx_buf[0].buf = NULL; in whd_bus_spi_transfer()
142 rx_buf[0].len = tx_length; in whd_bus_spi_transfer()
143 rx_buf[1].buf = rx; in whd_bus_spi_transfer()
144 rx_buf[1].len = rx_length; in whd_bus_spi_transfer()
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/
Dmain.c99 struct ec_host_cmd_request_header *cmd = (struct ec_host_cmd_request_header *)data->rx_buf; in test_hello()
111 evt.data.rx.buf = data->rx_buf; in test_hello()
140 struct ec_host_cmd_request_header *cmd = (struct ec_host_cmd_request_header *)data->rx_buf; in ZTEST()
152 evt.data.rx.buf = data->rx_buf; in ZTEST()
171 struct ec_host_cmd_request_header *cmd = (struct ec_host_cmd_request_header *)data->rx_buf; in ZTEST()
191 evt.data.rx.buf = data->rx_buf; in ZTEST()
216 evt.data.rx.buf = data->rx_buf; in ZTEST()
232 evt.data.rx.buf = data->rx_buf; in ZTEST()
240 evt.data.rx.buf = data->rx_buf; in ZTEST()
258 uint8_t *cmd = data->rx_buf; in ZTEST()
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607_spi.c68 const struct spi_buf rx_buf = { in ms5607_spi_read_prom() local
74 .buffers = &rx_buf, in ms5607_spi_read_prom()
116 const struct spi_buf rx_buf = { in ms5607_spi_read_adc() local
122 .buffers = &rx_buf, in ms5607_spi_read_adc()
/Zephyr-latest/tests/drivers/uart/uart_async_api/src/
Dtest_uart_async.c464 next_buf = evt->data.rx_buf.buf; in test_double_buffer_callback()
596 static __aligned(32) uint8_t rx_buf[100] __used __NOCACHE; in ZTEST_USER()
599 uint8_t rx_buf[100]; in ZTEST_USER()
603 memset(rx_buf, 0, sizeof(rx_buf)); in ZTEST_USER()
606 uart_rx_enable(uart_dev, rx_buf, sizeof(rx_buf), 50 * USEC_PER_MSEC); in ZTEST_USER()
612 zassert_equal(memcmp(tx_buf, rx_buf, 5), 0, "Buffers not equal"); in ZTEST_USER()
629 uart_rx_enable(uart_dev, rx_buf, sizeof(rx_buf), 50 * USEC_PER_MSEC); in ZTEST_USER()
768 static __aligned(32) uint8_t rx_buf[100] __used __NOCACHE; in ZTEST_USER()
771 uint8_t rx_buf[100]; in ZTEST_USER()
775 memset(rx_buf, 0, sizeof(rx_buf)); in ZTEST_USER()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp.c29 struct ring_buf rx_buf; member
55 ring_buf_put(&p->rx_buf, buf, 1); /* put last byte */ in osdp_handle_in_byte()
57 ring_buf_put(&p->rx_buf, buf, len); /* put rest */ in osdp_handle_in_byte()
63 ring_buf_put(&p->rx_buf, buf, len); in osdp_handle_in_byte()
102 return (int)ring_buf_get(&p->rx_buf, buf, len); in osdp_uart_receive()
121 ring_buf_reset(&p->rx_buf); in osdp_uart_flush()
196 ring_buf_init(&p->rx_buf, sizeof(p->rx_fbuf), p->rx_fbuf); in osdp_init()
/Zephyr-latest/drivers/bluetooth/hci/
Dh5.c90 struct net_buf *rx_buf; member
147 if (h5->rx_buf) { in h5_reset_rx()
148 net_buf_unref(h5->rx_buf); in h5_reset_rx()
149 h5->rx_buf = NULL; in h5_reset_rx()
403 buf = h5->rx_buf; in h5_process_complete_packet()
404 h5->rx_buf = NULL; in h5_process_complete_packet()
493 h5->rx_buf = bt_buf_get_rx(BT_BUF_ACL_IN, in bt_uart_isr()
495 if (!h5->rx_buf) { in bt_uart_isr()
504 h5->rx_buf = bt_buf_get_rx(BT_BUF_ISO_IN, K_NO_WAIT); in bt_uart_isr()
505 if (!h5->rx_buf) { in bt_uart_isr()
[all …]
/Zephyr-latest/drivers/sensor/ens160/
Dens160_spi.c35 struct spi_buf rx_buf[2] = { in ens160_read_reg_spi() local
47 .buffers = rx_buf, in ens160_read_reg_spi()
70 struct spi_buf rx_buf[2] = { in ens160_read_data_spi() local
82 .buffers = rx_buf, in ens160_read_data_spi()
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.c20 uint8_t rx_buf[2]; in tcn75a_sample_fetch() local
38 rx_buf, sizeof(rx_buf)); in tcn75a_sample_fetch()
43 data->temp_sample = sys_get_be16(rx_buf); in tcn75a_sample_fetch()
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/
Dtest_msgq_contexts.c112 uint32_t rx_buf[MSGQ_LEN]; in thread_entry_overflow() local
114 ret = k_msgq_get(p1, &rx_buf[0], K_FOREVER); in thread_entry_overflow()
118 ret = k_msgq_get(p1, &rx_buf[1], K_FOREVER); in thread_entry_overflow()
162 static uint32_t rx_buf[MSGQ_LEN]; in thread_entry_get_data() local
165 while (k_msgq_get(p1, &rx_buf[i], K_NO_WAIT) != 0) { in thread_entry_get_data()
204 static uint32_t rx_buf[MSGQ_LEN]; in get_empty_entry() local
207 ret = k_msgq_peek(p1, rx_buf); in get_empty_entry()
210 ret = k_msgq_get(p1, rx_buf, K_NO_WAIT); in get_empty_entry()
214 ret = k_msgq_get(p1, rx_buf, TIMEOUT); in get_empty_entry()
219 ret = k_msgq_get(p1, rx_buf, K_FOREVER); in get_empty_entry()
/Zephyr-latest/drivers/sensor/adi/adt7310/
Dadt7310.c55 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_read() local
57 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in adt7310_temp_reg_read()
75 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_write() local
77 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in adt7310_temp_reg_write()
91 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_reg_read() local
93 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in adt7310_reg_read()
111 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_reg_write() local
113 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in adt7310_reg_write()
/Zephyr-latest/samples/boards/nordic/nrfx_prs/src/
Dmain.c173 uint8_t *rx_buf, size_t rx_buf_size) in spim_transfer() argument
179 .p_rx_buffer = rx_buf, in spim_transfer()
255 uint8_t *rx_buf, size_t rx_buf_size) in uarte_transfer() argument
259 err = nrfx_uarte_rx(&uarte, rx_buf, rx_buf_size); in uarte_transfer()
316 static const struct spi_buf rx_buf = { in background_transfer() local
321 .buffers = &rx_buf, in background_transfer()
337 buffer_dump(rx_buf.buf, rx_buf.len); in background_transfer()
/Zephyr-latest/tests/net/socket/reuseaddr_reuseport/src/
Dmain.c766 char rx_buf; in test_reuseport_udp_server_client_common() local
790 rx_buf = 0; in test_reuseport_udp_server_client_common()
791 test_recvfrom_success(server_sock, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT, in test_reuseport_udp_server_client_common()
793 zassert_equal(rx_buf, tx_buf, "wrong data"); in test_reuseport_udp_server_client_common()
827 rx_buf = 0; in test_reuseport_udp_server_client_common()
828 test_recvfrom_fail(server_sock, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT, in test_reuseport_udp_server_client_common()
831 rx_buf = 0; in test_reuseport_udp_server_client_common()
832 test_recv_success(accept_sock, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT); in test_reuseport_udp_server_client_common()
835 rx_buf = 0; in test_reuseport_udp_server_client_common()
836 test_recvfrom_success(server_sock, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT, in test_reuseport_udp_server_client_common()
[all …]
/Zephyr-latest/samples/subsys/usb/webusb/src/
Dwebusb.c42 uint8_t rx_buf[WEBUSB_BULK_EP_MPS]; variable
151 usb_transfer(cfg->endpoint[WEBUSB_IN_EP_IDX].ep_addr, rx_buf, size, in webusb_read_cb()
154 usb_transfer(ep, rx_buf, sizeof(rx_buf), USB_TRANS_READ, in webusb_read_cb()
/Zephyr-latest/samples/drivers/spi_bitbang/src/
Dmain.c69 struct spi_buf rx_buf[2] = { in test_9bit_loopback_partial() local
75 struct spi_buf_set rx_set = { .buffers = rx_buf, .count = 2 }; in test_9bit_loopback_partial()
105 struct spi_buf rx_buf[1] = { in test_8bit_xfer() local
110 struct spi_buf_set rx_set = { .buffers = rx_buf, .count = 1 }; in test_8bit_xfer()
/Zephyr-latest/drivers/spi/
Dspi_sam.c192 static void spi_sam_fast_rx(Spi *regs, uint8_t *rx_buf, const uint32_t rx_buf_len) in spi_sam_fast_rx() argument
194 uint8_t *rx = rx_buf; in spi_sam_fast_rx()
231 const uint8_t *rx_buf, in spi_sam_fast_txrx() argument
236 uint8_t *rx = (uint8_t *)rx_buf; in spi_sam_fast_txrx()
318 const uint8_t *rx_buf, in spi_sam_dma_txrx() argument
332 __ASSERT_NO_MSG(rx_buf != NULL || tx_buf != NULL); in spi_sam_dma_txrx()
349 if (rx_buf != NULL) { in spi_sam_dma_txrx()
350 dest_address = (uint32_t)rx_buf; in spi_sam_dma_txrx()
440 uint8_t *rx_buf, in spi_sam_rx() argument
451 spi_sam_fast_rx(regs, rx_buf, rx_buf_len); in spi_sam_rx()
[all …]

1234567891011