Home
last modified time | relevance | path

Searched refs:rx_buf (Results 51 – 75 of 266) sorted by relevance

1234567891011

/Zephyr-latest/drivers/sensor/tdk/icm42605/
Dicm42605_spi.c57 struct spi_buf rx_buf[2] = { in inv_spi_read() local
69 .buffers = rx_buf, in inv_spi_read()
/Zephyr-latest/drivers/peci/
Dpeci_mchp_xec.c247 struct peci_buf *rx_buf = &msg->rx_buffer; in peci_xec_write() local
260 regs->WR_DATA = rx_buf->len; in peci_xec_write()
321 struct peci_buf *rx_buf = &msg->rx_buffer; in peci_xec_read() local
325 for (i = 0; i < (rx_buf->len + PECI_FCS_LEN); i++) { in peci_xec_read()
345 rx_buf->buf[0] = tx_fcs; in peci_xec_read()
348 } else if (i == (rx_buf->len + 1)) { in peci_xec_read()
350 rx_buf->buf[i-1] = regs->RD_DATA; in peci_xec_read()
353 rx_buf->buf[i-1] = regs->RD_DATA; in peci_xec_read()
359 if (rx_buf->len != bytes_rcvd) { in peci_xec_read()
360 LOG_INF("Incomplete %x vs %x", bytes_rcvd, rx_buf->len); in peci_xec_read()
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c56 static ZTEST_BMEM char rx_buf[NET_ETH_MTU + 1]; variable
93 clear_buf(rx_buf); in comm_sendto_recvfrom()
94 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom()
99 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendto_recvfrom()
104 clear_buf(rx_buf); in comm_sendto_recvfrom()
105 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom()
110 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendto_recvfrom()
130 clear_buf(rx_buf); in comm_sendto_recvfrom()
131 recved = zsock_recvfrom(client_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom()
136 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR2), "wrong data"); in comm_sendto_recvfrom()
[all …]
/Zephyr-latest/samples/bluetooth/hci_uart_3wire/src/
Dmain.c93 struct net_buf *rx_buf; member
143 if (h5.rx_buf) { in h5_reset_rx()
144 net_buf_unref(h5.rx_buf); in h5_reset_rx()
145 h5.rx_buf = NULL; in h5_reset_rx()
399 buf = h5.rx_buf; in h5_process_complete_packet()
400 h5.rx_buf = NULL; in h5_process_complete_packet()
482 h5.rx_buf = bt_buf_get_tx(BT_BUF_H4, K_NO_WAIT, in bt_uart_isr()
484 if (!h5.rx_buf) { in bt_uart_isr()
494 h5.rx_buf = net_buf_alloc(&h5_pool, K_NO_WAIT); in bt_uart_isr()
495 if (!h5.rx_buf) { in bt_uart_isr()
[all …]
/Zephyr-latest/drivers/net/
Dslip.c317 struct net_buf *rx_buf = slip->rx->buffer; in recv_cb() local
318 int bytes = net_buf_frags_len(rx_buf); in recv_cb()
321 while (bytes && rx_buf) { in recv_cb()
327 LOG_HEXDUMP_DBG(rx_buf->data, rx_buf->len, in recv_cb()
330 rx_buf = rx_buf->frags; in recv_cb()
/Zephyr-latest/include/zephyr/shell/
Dshell_uart.h55 uint8_t rx_buf[CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE]; member
72 uint8_t rx_buf[CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE]; member
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_bus_uart.c38 char *rx_buf; member
119 uart->rx_buf[uart->rx_count++] = c; in eswifi_uart_get_resp()
206 uart->rx_buf = rsp; in eswifi_uart_request()
212 LOG_HEXDUMP_DBG(uart->rx_buf, uart->rx_count, "Stream"); in eswifi_uart_request()
/Zephyr-latest/drivers/spi/
Dspi_context.h50 uint8_t *rx_buf; member
306 ctx->rx_buf = (uint8_t *) in spi_context_buffers_setup()
321 (void *)ctx->rx_buf, ctx->rx_len); in spi_context_buffers_setup()
396 ctx->rx_buf = (uint8_t *) in spi_context_update_rx()
400 } else if (ctx->rx_buf) { in spi_context_update_rx()
401 ctx->rx_buf += dfs * len; in spi_context_update_rx()
404 LOG_DBG("rx buf/len %p/%zu", (void *)ctx->rx_buf, ctx->rx_len); in spi_context_update_rx()
416 return !!(ctx->rx_buf && ctx->rx_len); in spi_context_rx_buf_on()
Dspi_nrfx_spis.c116 uint8_t *rx_buf, size_t rx_buf_len) in prepare_for_transfer() argument
130 rx_buf, rx_buf_len); in prepare_for_transfer()
175 const struct spi_buf *rx_buf = rx_bufs ? rx_bufs->buffers : NULL; in transceive() local
200 rx_buf ? rx_buf->buf : NULL, in transceive()
201 rx_buf ? rx_buf->len : 0); in transceive()
/Zephyr-latest/drivers/sensor/st/stmemsc/
Dstmemsc_spi.c33 const struct spi_buf rx_buf[2] = { in stmemsc_spi_read() local
37 const struct spi_buf_set rx = { .buffers = rx_buf, .count = 2 }; in stmemsc_spi_read()
/Zephyr-latest/drivers/gpio/
Dgpio_max149x6.h104 struct spi_buf rx_buf = { in max149x6_reg_transceive() local
108 const struct spi_buf_set rx = {.buffers = &rx_buf, .count = 1}; in max149x6_reg_transceive()
111 rx_buf.len++; in max149x6_reg_transceive()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_ecm.c31 static uint8_t tx_buf[NET_ETH_MAX_FRAME_SIZE], rx_buf[NET_ETH_MAX_FRAME_SIZE]; variable
288 if (rx_buf[size - 1] == 0U) { /* last byte is null */ in ecm_read_cb()
289 if (ecm_eth_size(rx_buf, size) == (size - 1)) { in ecm_read_cb()
302 if (net_pkt_write(pkt, rx_buf, size)) { in ecm_read_cb()
315 usb_transfer(ecm_ep_data[ECM_OUT_EP_IDX].ep_addr, rx_buf, in ecm_read_cb()
316 sizeof(rx_buf), USB_TRANS_READ, ecm_read_cb, NULL); in ecm_read_cb()
Dfunction_eem.c24 static uint8_t tx_buf[EEM_FRAME_SIZE], rx_buf[EEM_FRAME_SIZE]; variable
143 uint8_t *ptr = rx_buf; in eem_read_cb()
200 usb_transfer(eem_ep_data[EEM_OUT_EP_IDX].ep_addr, rx_buf, in eem_read_cb()
201 sizeof(rx_buf), USB_TRANS_READ, eem_read_cb, NULL); in eem_read_cb()
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_pd.c812 len = osdp_phy_packet_init(pd, pd->rx_buf, sizeof(pd->rx_buf)); in pd_send_reply()
818 ret = pd_build_reply(pd, pd->rx_buf, sizeof(pd->rx_buf)); in pd_send_reply()
825 len = osdp_phy_packet_finalize(pd, pd->rx_buf, len, sizeof(pd->rx_buf)); in pd_send_reply()
835 ret = pd->channel.send(pd->channel.data, pd->rx_buf, len); in pd_send_reply()
843 osdp_dump("PD sent", pd->rx_buf, len); in pd_send_reply()
855 err = osdp_phy_check_packet(pd, pd->rx_buf, pd->rx_buf_len, one_pkt_len); in pd_decode_packet()
873 len = osdp_phy_decode_packet(pd, pd->rx_buf, *one_pkt_len, &buf); in pd_decode_packet()
889 buf = pd->rx_buf + pd->rx_buf_len; in pd_receive_and_process_command()
890 remaining = sizeof(pd->rx_buf) - pd->rx_buf_len; in pd_receive_and_process_command()
913 pd->rx_buf[6] != CMD_POLL && pd->rx_buf[8] != CMD_POLL) { in pd_receive_and_process_command()
[all …]
/Zephyr-latest/modules/nrf_wifi/bus/
Dspi_if.c70 const struct spi_buf rx_buf[] = { in spim_xfer_rx() local
75 const struct spi_buf_set rx = { .buffers = rx_buf, .count = 2 }; in spim_xfer_rx()
77 if (rx_buf[0].len > sizeof(discard)) { in spim_xfer_rx()
102 struct spi_buf rx_buf = { in spim_read_reg() local
106 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in spim_read_reg()
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_rx.c165 if ((buf->end + remaining > client->rx_buf + client->rx_buf_size) || in mqtt_read_message_chunk()
166 (buf->end + remaining < client->rx_buf)) { in mqtt_read_message_chunk()
247 buf->cur = client->rx_buf; in mqtt_read_and_parse_fixed_header()
263 buf.cur = client->rx_buf; in mqtt_handle_rx()
264 buf.end = client->rx_buf + client->internal.rx_buf_datalen; in mqtt_handle_rx()
/Zephyr-latest/drivers/sensor/sensirion/shtcx/
Dshtcx.c86 uint8_t rx_buf[SHTCX_MAX_READ_LEN]; in shtcx_read_words() local
99 status = i2c_read_dt(&cfg->i2c, rx_buf, raw_len); in shtcx_read_words()
106 temp16 = sys_get_be16(&rx_buf[i]); in shtcx_read_words()
107 if (shtcx_compute_crc(temp16) != rx_buf[i+2]) { in shtcx_read_words()
/Zephyr-latest/drivers/modem/
Dquectel-bg9x.c131 if (!data->rx_buf) { in on_cmd_sockread_common()
136 socket_data_length = find_len(data->rx_buf->data); in on_cmd_sockread_common()
146 if (net_buf_frags_len(data->rx_buf) < (socket_data_length + bytes_to_skip)) { in on_cmd_sockread_common()
154 net_buf_pull_u8(data->rx_buf); in on_cmd_sockread_common()
157 if (!data->rx_buf->len) { in on_cmd_sockread_common()
158 data->rx_buf = net_buf_frag_del(NULL, data->rx_buf); in on_cmd_sockread_common()
176 data->rx_buf, 0, (uint16_t)socket_data_length); in on_cmd_sockread_common()
177 data->rx_buf = net_buf_skip(data->rx_buf, ret); in on_cmd_sockread_common()
274 data->rx_buf, 0, len); in MODEM_CMD_DEFINE()
285 data->rx_buf, 0, len); in MODEM_CMD_DEFINE()
[all …]
/Zephyr-latest/drivers/sensor/st/iis2dh/
Diis2dh_spi.c36 const struct spi_buf rx_buf[2] = { in iis2dh_spi_read() local
47 .buffers = rx_buf, in iis2dh_spi_read()
/Zephyr-latest/drivers/sensor/st/iis3dhhc/
Diis3dhhc_spi.c35 const struct spi_buf rx_buf[2] = { in iis3dhhc_spi_read() local
46 .buffers = rx_buf, in iis3dhhc_spi_read()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_uart_pipe.h23 uint8_t rx_buf[IEEE802154_MAX_PHY_PACKET_SIZE]; member
/Zephyr-latest/drivers/sensor/st/i3g4250d/
Di3g4250d_spi.c33 const struct spi_buf rx_buf[2] = { in i3g4250d_spi_read() local
44 .buffers = rx_buf, in i3g4250d_spi_read()
/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc_spi.c36 const struct spi_buf rx_buf[2] = { in iis2mdc_spi_read() local
47 .buffers = rx_buf, in iis2mdc_spi_read()
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx_spi.c36 const struct spi_buf rx_buf[2] = { in ism330dhcx_spi_read() local
47 .buffers = rx_buf, in ism330dhcx_spi_read()
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_spi.c47 struct spi_buf rx_buf[2] = { in spi_read_register() local
59 .buffers = rx_buf, in spi_read_register()

1234567891011