/Zephyr-latest/drivers/sensor/tdk/icm42605/ |
D | icm42605_spi.c | 57 struct spi_buf rx_buf[2] = { in inv_spi_read() local 69 .buffers = rx_buf, in inv_spi_read()
|
/Zephyr-latest/drivers/peci/ |
D | peci_mchp_xec.c | 247 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/ |
D | main.c | 56 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/ |
D | main.c | 93 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/ |
D | slip.c | 317 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/ |
D | shell_uart.h | 55 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/ |
D | eswifi_bus_uart.c | 38 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/ |
D | spi_context.h | 50 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()
|
D | spi_nrfx_spis.c | 116 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/ |
D | stmemsc_spi.c | 33 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/ |
D | gpio_max149x6.h | 104 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/ |
D | function_ecm.c | 31 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()
|
D | function_eem.c | 24 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/ |
D | osdp_pd.c | 812 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/ |
D | spi_if.c | 70 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/ |
D | mqtt_rx.c | 165 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/ |
D | shtcx.c | 86 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/ |
D | quectel-bg9x.c | 131 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/ |
D | iis2dh_spi.c | 36 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/ |
D | iis3dhhc_spi.c | 35 const struct spi_buf rx_buf[2] = { in iis3dhhc_spi_read() local 46 .buffers = rx_buf, in iis3dhhc_spi_read()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_uart_pipe.h | 23 uint8_t rx_buf[IEEE802154_MAX_PHY_PACKET_SIZE]; member
|
/Zephyr-latest/drivers/sensor/st/i3g4250d/ |
D | i3g4250d_spi.c | 33 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/ |
D | iis2mdc_spi.c | 36 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/ |
D | ism330dhcx_spi.c | 36 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/ |
D | icm42688_spi.c | 47 struct spi_buf rx_buf[2] = { in spi_read_register() local 59 .buffers = rx_buf, in spi_read_register()
|