/Zephyr-latest/include/zephyr/bluetooth/ |
D | crypto.h | 39 int bt_rand(void *buf, size_t len); 93 size_t len, const uint8_t *aad, size_t aad_len, 117 const uint8_t *plaintext, size_t len, const uint8_t *aad,
|
/Zephyr-latest/include/zephyr/math/ |
D | interpolation.h | 37 static inline int32_t linear_interpolate(const int32_t *x_axis, const int32_t *y_axis, uint8_t len, in linear_interpolate() argument 47 } else if (x >= x_axis[len - 1]) { in linear_interpolate() 48 return y_axis[len - 1]; in linear_interpolate()
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | rpr.c | 34 while (adv_data && adv_data->len > 2) { in rpr_scan_report() 35 uint8_t len, type; in rpr_scan_report() local 38 len = net_buf_simple_pull_u8(adv_data); in rpr_scan_report() 39 if (len == 0) { in rpr_scan_report() 44 if (len > adv_data->len) { in rpr_scan_report() 50 if ((--len) > 0) { in rpr_scan_report() 54 dlen = MIN(len, sizeof(data) - 1); in rpr_scan_report() 55 memcpy(data, net_buf_simple_pull_mem(adv_data, len), dlen); in rpr_scan_report() 56 len = dlen; in rpr_scan_report() 58 data[len] = '\0'; in rpr_scan_report() [all …]
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_ccc.c | 296 sys_put_be16(mwl->len, data); in i3c_ccc_do_setmwl_all() 323 sys_put_be16(mwl->len, data); in i3c_ccc_do_setmwl() 354 mwl->len = sys_get_be16(data); in i3c_ccc_do_getmwl() 377 sys_put_be16(mrl->len, data); in i3c_ccc_do_setmrl_all() 407 sys_put_be16(mrl->len, data); in i3c_ccc_do_setmrl() 451 mrl->len = sys_get_be16(data); in i3c_ccc_do_getmrl() 579 uint8_t len; in i3c_ccc_do_getcaps() local 632 len = ccc_tgt_payload.num_xfer; in i3c_ccc_do_getcaps() 635 memcpy(caps->fmt1.getcaps, data, len); in i3c_ccc_do_getcaps() 637 memset(&caps->fmt1.getcaps[len], 0, sizeof(caps->fmt1.getcaps) - len); in i3c_ccc_do_getcaps() [all …]
|
/Zephyr-latest/subsys/usb/device/ |
D | usb_device.c | 214 int32_t *len, uint8_t **data) in usb_handle_request() argument 230 if ((*handler)(setup, len, data) < 0) { in usb_handle_request() 424 int32_t *len, uint8_t **data_buf) in usb_get_status() argument 441 *len = 2; in usb_get_status() 459 int32_t *len, uint8_t **data) in usb_get_descriptor() argument 504 *len = (p[CONF_DESC_wTotalLength]) | in usb_get_descriptor() 508 *len = p[DESC_bLength]; in usb_get_descriptor() 807 int32_t *len, uint8_t **data_buf) in usb_get_interface() argument 820 *len = 1; in usb_get_interface() 852 int32_t *len, uint8_t **data_buf) in usb_handle_std_device_req() argument [all …]
|
/Zephyr-latest/soc/nxp/imxrt/imxrt5xx/f1/ |
D | linker.ld | 23 len = MEM_RESET_TEXT_SIZE 26 len = MEM_RESET_LIT_SIZE 29 len = MEM_VECBASE_LIT_SIZE 32 len = MEM_VECT_LIT_SIZE 35 len = MEM_VECT_TEXT_SIZE 38 len = MEM_VECT_LIT_SIZE 41 len = MEM_VECT_TEXT_SIZE 44 len = MEM_VECT_LIT_SIZE 47 len = MEM_VECT_TEXT_SIZE 50 len = MEM_VECT_LIT_SIZE [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_spi.c | 31 .len = 1 in bme280_reg_read_spi() 45 rx_buf[0].len = 1; in bme280_reg_read_spi() 47 rx_buf[1].len = 1; in bme280_reg_read_spi() 71 .len = sizeof(cmd) in bme280_reg_write_spi()
|
/Zephyr-latest/drivers/sensor/bosch/bmm150/ |
D | bmm150_spi.c | 31 .len = 1 in bmm150_reg_read_spi() 45 rx_buf[0].len = 1; in bmm150_reg_read_spi() 47 rx_buf[1].len = 1; in bmm150_reg_read_spi() 71 .len = sizeof(cmd) in bmm150_reg_write_spi()
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_ipc_service.c | 32 static void recv_cb(const void *data, size_t len, void *priv) in recv_cb() argument 36 log_multidomain_backend_on_recv_cb(backend_remote, data, len); in recv_cb() 40 void *data, size_t len) in backend_ipc_service_send() argument 44 int err = ipc_service_send(&backend_ipc_service->ept, data, len); in backend_ipc_service_send()
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub_integrity.c | 43 const uint8_t *buffer, const uint32_t len) in updatehub_integrity_update() argument 52 if (len == 0) { in updatehub_integrity_update() 57 ret = psa_hash_update(ctx, buffer, len); in updatehub_integrity_update() 62 ret = mbedtls_sha256_update(ctx, buffer, len); in updatehub_integrity_update()
|
/Zephyr-latest/include/zephyr/ipc/ |
D | pbuf.h | 65 uint32_t len; /* Length of data[] in bytes. */ member 130 .len = (uint32_t)((uint32_t)(size) - MAX(dcache_align, \ 218 int pbuf_write(struct pbuf *pb, const char *buf, uint16_t len); 236 int pbuf_read(struct pbuf *pb, char *buf, uint16_t len); 270 int pbuf_get_initial_buf(struct pbuf *pb, volatile char **buf, uint16_t *len);
|
D | ipc_service_backend.h | 72 const void *data, size_t len); 142 void **data, uint32_t *len, k_timeout_t wait); 182 const void *data, size_t len);
|
/Zephyr-latest/samples/net/sockets/dumb_http_server/src/ |
D | socket_dumb_http.c | 84 size_t len; in main() local 133 len = sizeof(content); in main() 134 while (len) { in main() 135 int sent_len = send(client, data, len, 0); in main() 142 len -= sent_len; in main()
|
/Zephyr-latest/drivers/flash/ |
D | soc_flash_rv32m1.c | 46 size_t len) in flash_mcux_erase() argument 60 rc = FLASH_Erase(&priv->config, addr, len, kFLASH_ApiEraseKey); in flash_mcux_erase() 69 void *data, size_t len) in flash_mcux_read() argument 81 memcpy(data, (void *) addr, len); in flash_mcux_read() 87 const void *data, size_t len) in flash_mcux_write() argument 101 rc = FLASH_Program(&priv->config, addr, (uint32_t *) data, len); in flash_mcux_write()
|
/Zephyr-latest/include/zephyr/drivers/serial/ |
D | uart_async_to_irq.h | 172 int (*tx)(const struct device *dev, const uint8_t *buf, size_t len, 176 int (*rx_enable)(const struct device *dev, uint8_t *buf, size_t len, 178 int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len); 200 size_t len; member 230 int len); 235 const int len);
|
/Zephyr-latest/samples/bluetooth/direct_adv/src/ |
D | main.c | 40 void *buf, uint16_t len, uint16_t offset) in read_signed() argument 44 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_signed() 49 const void *buf, uint16_t len, uint16_t offset, in write_signed() argument 54 if (offset + len > sizeof(signed_value)) { in write_signed() 58 memcpy(value + offset, buf, len); in write_signed() 60 return len; in write_signed()
|
/Zephyr-latest/samples/bluetooth/peripheral_accept_list/src/ |
D | main.c | 37 void *buf, uint16_t len, uint16_t offset) in read_signed() argument 41 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_signed() 46 const void *buf, uint16_t len, uint16_t offset, in write_signed() argument 51 if (offset + len > sizeof(signed_value)) { in write_signed() 55 memcpy(value + offset, buf, len); in write_signed() 57 return len; in write_signed()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_nxp_s32_netc_priv.h | 51 #define _NETC_RING(n, idx, len, buf_size, prefix1, prefix2) \ argument 52 static Netc_Eth_Ip_##prefix1##BDRType nxp_s32_eth##n##_##prefix2##ring##idx##_desc[len] \ 54 static uint8_t nxp_s32_eth##n##_##prefix2##ring##idx##_buf[len * buf_size] \ 57 #define NETC_RX_RING(n, idx, len, buf_size) _NETC_RING(n, idx, len, buf_size, Rx, rx) argument 58 #define NETC_TX_RING(n, idx, len, buf_size) _NETC_RING(n, idx, len, buf_size, Tx, tx) argument
|
/Zephyr-latest/drivers/serial/ |
D | uart_hvc_xen.c | 32 static int read_from_ring(const struct device *dev, char *str, int len) in read_from_ring() argument 44 while (cons != prod && recv < len) { in read_from_ring() 58 static int write_to_ring(const struct device *dev, const char *str, int len) in write_to_ring() argument 70 while ((sent < len) && ((prod - cons) < sizeof(hvc_data->intf->out))) { in write_to_ring() 112 int len) in xen_hvc_fifo_fill() argument 116 while (len) { in xen_hvc_fifo_fill() 117 sent = write_to_ring(dev, tx_data, len); in xen_hvc_fifo_fill() 121 len -= sent; in xen_hvc_fifo_fill() 123 if (len) { in xen_hvc_fifo_fill()
|
/Zephyr-latest/subsys/net/l2/ethernet/gptp/ |
D | gptp_messages.h | 46 #define GPTP_VALID_LEN(pkt, len) \ argument 47 (len > (NET_ETH_MINIMAL_FRAME_SIZE - GPTP_L2_HDR_LEN(pkt))) 70 + ntohs(GPTP_ANNOUNCE(pkt)->tlv.len) \ 73 #define GPTP_CHECK_LEN(pkt, len) \ argument 74 ((GPTP_PACKET_LEN(pkt) != len) && (GPTP_VALID_LEN(pkt, len))) 157 uint16_t len; member 196 uint16_t len; member 275 uint16_t len; member
|
/Zephyr-latest/tests/subsys/ipc/ipc_sessions/interoperability/ |
D | icmsg_v1.c | 183 uint32_t len = data_available(dev_data); in mbox_callback_process() local 185 if (len == 0) { in mbox_callback_process() 190 __ASSERT_NO_MSG(len <= sizeof(rx_buffer)); in mbox_callback_process() 192 if (sizeof(rx_buffer) < len) { in mbox_callback_process() 196 len = pbuf_read(dev_data->rx_pb, rx_buffer, sizeof(rx_buffer)); in mbox_callback_process() 200 dev_data->cb->received(rx_buffer, len, dev_data->ctx); in mbox_callback_process() 206 bool endpoint_invalid = (len < sizeof(magic) || in mbox_callback_process() 326 const void *msg, size_t len) in icmsg_send() argument 340 if (len == 0) { in icmsg_send() 351 write_ret = pbuf_write(dev_data->tx_pb, msg, len); in icmsg_send() [all …]
|
/Zephyr-latest/tests/bluetooth/hci_prop_evt/src/ |
D | main.c | 42 uint8_t len; /* HCI command response length */ member 44 uint8_t len, uint16_t opcode); 48 static void evt_create(struct net_buf *buf, uint8_t evt, uint8_t len) in evt_create() argument 54 hdr->len = len; in evt_create() 84 handler->handler(cmd, evt, handler->len, opcode); in cmd_handle_helper() 124 uint8_t len, uint16_t opcode) in generic_success() argument 128 ccst = cmd_complete(evt, len, opcode); in generic_success() 131 (void)memset(ccst, 0, len); in generic_success() 138 uint8_t len, uint16_t opcode) in read_local_features() argument 149 uint8_t len, uint16_t opcode) in read_supported_commands() argument [all …]
|
/Zephyr-latest/soc/nxp/imxrt/imxrt7xx/hifi1/ |
D | linker.ld | 23 len = MEM_RESET_TEXT_SIZE 26 len = MEM_RESET_LIT_SIZE 29 len = MEM_VECBASE_LIT_SIZE 32 len = MEM_VECT_LIT_SIZE 35 len = MEM_VECT_TEXT_SIZE 38 len = MEM_VECT_LIT_SIZE 41 len = MEM_VECT_TEXT_SIZE 44 len = MEM_VECT_LIT_SIZE 47 len = MEM_VECT_TEXT_SIZE 50 len = MEM_VECT_LIT_SIZE [all …]
|
/Zephyr-latest/drivers/net/ |
D | ppp.c | 140 int err, ret, len, space_left; in uart_callback() local 144 LOG_DBG("UART_TX_DONE: sent %zu bytes", evt->data.tx.len); in uart_callback() 161 / MSEC_PER_SEC > evt->data.tx.len * 2) { in uart_callback() 167 " (%d ms) or the UART baud rate (%u).", evt->data.tx.len, in uart_callback() 174 len = evt->data.rx.len; in uart_callback() 177 LOG_DBG("Received data %d bytes", len); in uart_callback() 179 ret = ring_buf_put(&context->rx_ringbuf, p, len); in uart_callback() 180 if (ret < evt->data.rx.len) { in uart_callback() 184 evt->data.rx.len, ret); in uart_callback() 403 size_t len = off; in ppp_send_flush() local [all …]
|
/Zephyr-latest/samples/net/sockets/tcp/src/ |
D | main.c | 77 ssize_t len = recv(fd, buf, BUF_SIZE, 0); in udp() local 79 if (len < 0) { in udp() 83 printf("Received %ld bytes\n", (long)len); in udp()
|