/Zephyr-latest/tests/boards/mec15xxevb_assy6853/qspi/src/ |
D | main.c | 75 txb[0].len = 1U; in ZTEST_USER() 82 rxb.len = 3U; in ZTEST_USER() 111 txb[0].len = 1U; in ZTEST_USER() 131 txb[0].len = 4; in ZTEST_USER() 150 txb[0].len = 1; in ZTEST_USER() 157 rxb.len = 1U; in ZTEST_USER() 187 txb[0].len = 1U; in test_spi_single_write() 208 txb[0].len = 4 + BUF_SIZE; in test_spi_single_write() 245 txb[cnt].len = 4U; in ZTEST_USER() 251 txb[cnt].len = (spi_opcode >> 8) & 0xFFU; in ZTEST_USER() [all …]
|
/Zephyr-latest/modules/canopennode/ |
D | canopen_storage.c | 130 ssize_t len; in canopen_settings_set() local 137 len = read_cb(cb_arg, &eeprom, sizeof(eeprom)); in canopen_settings_set() 138 if (len < 0) { in canopen_settings_set() 140 " entries (err %zu)", len); in canopen_settings_set() 141 canopen_storage_eeprom_error = len; in canopen_settings_set() 160 len = read_cb(cb_arg, &rom, sizeof(rom)); in canopen_settings_set() 161 if (len < 0) { in canopen_settings_set() 163 " entries (err %zu)", len); in canopen_settings_set() 164 canopen_storage_rom_error = len; in canopen_settings_set()
|
/Zephyr-latest/drivers/ethernet/ |
D | oa_tc6.c | 24 struct spi_buf tx_buf = {.buf = buf, .len = sizeof(buf)}; in oa_tc6_reg_read() 26 struct spi_buf rx_buf = {.buf = buf, .len = sizeof(buf)}; in oa_tc6_reg_read() 36 tx_buf.len -= sizeof(rvn); in oa_tc6_reg_read() 37 rx_buf.len -= sizeof(rvn); in oa_tc6_reg_read() 80 struct spi_buf tx_buf = {.buf = buf_tx, .len = sizeof(buf_tx)}; in oa_tc6_reg_write() 82 struct spi_buf rx_buf = {.buf = buf_rx, .len = sizeof(buf_rx)}; in oa_tc6_reg_write() 92 tx_buf.len -= sizeof(rvn); in oa_tc6_reg_write() 93 rx_buf.len -= sizeof(rvn); in oa_tc6_reg_write() 240 uint16_t len = net_pkt_get_len(pkt); in oa_tc6_send_chunks() local 246 if (len == 0) { in oa_tc6_send_chunks() [all …]
|
D | eth_e1000.c | 102 static int e1000_tx(struct e1000_dev *dev, void *buf, size_t len) in e1000_tx() argument 104 hexdump(buf, len, "%zu byte(s)", len); in e1000_tx() 107 dev->tx.len = len; in e1000_tx() 124 size_t len = net_pkt_get_len(pkt); in e1000_send() local 126 if (net_pkt_read(pkt, dev->txb, len)) { in e1000_send() 130 return e1000_tx(dev, dev->txb, len); in e1000_send() 137 ssize_t len; in e1000_rx() local 147 len = dev->rx.len - 4; in e1000_rx() 149 if (len <= 0) { in e1000_rx() 150 LOG_ERR("Invalid RX descriptor length: %hu", dev->rx.len); in e1000_rx() [all …]
|
/Zephyr-latest/subsys/llext/ |
D | buf_loader.c | 12 int llext_buf_read(struct llext_loader *l, void *buf, size_t len) in llext_buf_read() argument 15 size_t end = MIN(buf_l->pos + len, buf_l->len); in llext_buf_read() 28 buf_l->pos = MIN(pos, buf_l->len); in llext_buf_seek()
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_renesas_ra.c | 13 static int entropy_renesas_ra_get_entropy(const struct device *dev, uint8_t *buf, uint16_t len) in entropy_renesas_ra_get_entropy() argument 21 while (len > 0) { in entropy_renesas_ra_get_entropy() 23 const uint32_t to_copy = MIN(sizeof(n), len); in entropy_renesas_ra_get_entropy() 30 len -= to_copy; in entropy_renesas_ra_get_entropy()
|
/Zephyr-latest/subsys/usb/device/ |
D | os_desc.c | 18 int32_t *len, uint8_t **data) in usb_handle_os_desc() argument 28 *len = os_desc->string_len; in usb_handle_os_desc() 37 int32_t *len, uint8_t **data) in usb_handle_os_desc_feature() argument 50 *len = os_desc->compat_id_len; in usb_handle_os_desc_feature()
|
/Zephyr-latest/tests/net/socket/socketpair/src/ |
D | unsupported_calls.c | 15 socklen_t len = sizeof(addr); in ZTEST_USER_F() local 19 res = zsock_bind(fixture->sv[i], (struct sockaddr *)&addr, len); in ZTEST_USER_F() 25 res = zsock_connect(fixture->sv[i], (struct sockaddr *)&addr, len); in ZTEST_USER_F() 37 res = zsock_accept(fixture->sv[i], (struct sockaddr *)&addr, &len); in ZTEST_USER_F()
|
/Zephyr-latest/subsys/mctp/ |
D | mctp_uart.c | 34 uint8_t len; member 62 static void mctp_uart_start_pkt(struct mctp_binding_uart *uart, uint8_t len) in mctp_uart_start_pkt() argument 66 uart->rx_pkt = mctp_pktbuf_alloc(&uart->binding, len); in mctp_uart_start_pkt() 226 binding->rx_res = evt->data.rx.len; in mctp_uart_callback() 228 for (size_t i = 0; i < evt->data.rx.len; i++) { in mctp_uart_callback() 273 size_t len; in mctp_uart_tx() local 281 len = mctp_pktbuf_size(pkt); in mctp_uart_tx() 286 hdr->len = len; in mctp_uart_tx() 290 fcs = crc_16_ccitt(fcs, (const uint8_t *)mctp_pktbuf_hdr(pkt), len); in mctp_uart_tx() 295 len = mctp_uart_pkt_escape(pkt, NULL); in mctp_uart_tx() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/ |
D | main.c | 159 LOG_HEXDUMP_ERR(buf->data, buf->len, "HCI META EVT"); in handle_meta_event() 186 LOG_INF("Got notification for 0x%04x len %d", handle, buf->len); in handle_att_notification() 187 LOG_HEXDUMP_DBG(buf->data, buf->len, "payload"); in handle_att_notification() 211 LOG_INF("Got write for 0x%04x len %d", handle, buf->len); in handle_att_write_0() 212 LOG_HEXDUMP_DBG(buf->data, buf->len, "payload"); in handle_att_write_0() 225 LOG_INF("Got write for 0x%04x len %d", handle, buf->len); in handle_att_write_1() 226 LOG_HEXDUMP_DBG(buf->data, buf->len, "payload"); in handle_att_write_1() 258 LOG_HEXDUMP_ERR(buf->data, buf->len, "payload"); in handle_att() 272 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap() 273 LOG_HEXDUMP_DBG(buf->data, buf->len, "l2cap"); in handle_l2cap() [all …]
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | hci_stm32wb0.c | 134 evt_header->len = 4; in check_legacy_extended_call() 143 evt_header->len = 4; in check_legacy_extended_call() 185 evt_header->len = 4; in process_command() 204 LOG_DBG("New event %p len %u type %u", buf, buf->len, bt_buf_get_type(buf)); in send_event() 309 int len; in get_rx() local 324 len = sizeof(struct bt_hci_evt_hdr) + msg[EVT_HEADER_SIZE]; in get_rx() 325 if (len > net_buf_tailroom(buf)) { in get_rx() 326 LOG_ERR("Event too long: %d", len); in get_rx() 330 net_buf_add_mem(buf, &msg[1], len); in get_rx() 337 len = sizeof(acl_hdr) + sys_le16_to_cpu(acl_hdr.len); in get_rx() [all …]
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_pack.c | 22 int dns_msg_pack_qname(uint16_t *len, uint8_t *buf, uint16_t size, in dns_msg_pack_qname() argument 64 *len = lb_index; in dns_msg_pack_qname() 70 uint16_t pos, uint16_t len) in set_dns_msg_response() argument 74 dns_msg->response_length = len; in set_dns_msg_response() 115 uint16_t len; in dns_unpack_answer() local 153 len = dns_answer_rdlength(dname_len, answer); in dns_unpack_answer() 164 set_dns_msg_response(dns_msg, DNS_RESPONSE_IP, pos, len); in dns_unpack_answer() 169 pos, len); in dns_unpack_answer() 271 int dns_msg_pack_query(uint8_t *buf, uint16_t *len, uint16_t size, in dns_msg_pack_query() argument 301 *len = offset + DNS_QCLASS_LEN; in dns_msg_pack_query() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto_tc.c | 43 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *enc_data, in bt_mesh_ccm_encrypt() argument 46 return bt_ccm_encrypt(key->key, nonce, plaintext, len, aad, aad_len, enc_data, mic_size); in bt_mesh_ccm_encrypt() 50 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *plaintext, in bt_mesh_ccm_decrypt() argument 53 return bt_ccm_decrypt(key->key, nonce, enc_data, len, aad, aad_len, plaintext, mic_size); in bt_mesh_ccm_decrypt() 67 if (tc_cmac_update(&state, sg->data, sg->len) == TC_CRYPTO_FAIL) { in bt_mesh_aes_cmac_raw_key() 99 if (tc_hmac_update(&h, sg->data, sg->len) == TC_CRYPTO_FAIL) { in bt_mesh_sha256_hmac_raw_key() 148 __weak int default_CSPRNG(uint8_t *dst, unsigned int len) in default_CSPRNG() argument 150 return !bt_rand(dst, len); in default_CSPRNG()
|
/Zephyr-latest/modules/thrift/src/thrift/server/ |
D | TFDServer.cpp | 52 virtual uint32_t read_virt(uint8_t *buf, uint32_t len) override in read_virt() argument 91 r = ::read(fd, buf, len); in read_virt() 93 LOG_ERR("failed to read %d bytes from fd %d: %d", len, fd, errno); in read_virt() 107 virtual void write_virt(const uint8_t *buf, uint32_t len) override in write_virt() argument 114 for (int r = 0; len > 0; buf += r, len -= r) { in write_virt() 115 r = ::write(fd, buf, len); in write_virt() 117 LOG_ERR("writing %u bytes to fd %d failed: %d", len, fd, errno); in write_virt()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/ |
D | main.c | 151 LOG_HEXDUMP_ERR(buf->data, buf->len, "HCI META EVT"); in handle_meta_event() 189 LOG_INF("Got write for 0x%04x len %d", handle, buf->len); in handle_att_write() 190 LOG_HEXDUMP_DBG(buf->data, buf->len, "payload"); in handle_att_write() 194 TEST_ASSERT(buf->len == 2, "unexpected write length: %d", buf->len); in handle_att_write() 212 LOG_HEXDUMP_ERR(buf->data, buf->len, "payload"); in handle_att() 226 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap() 227 LOG_HEXDUMP_DBG(buf->data, buf->len, "l2cap"); in handle_l2cap() 230 TEST_ASSERT(buf->len == hdr->len, "buflen = %d != hdrlen %d", buf->len, hdr->len); in handle_l2cap() 241 uint16_t len, handle; in handle_acl() local 245 len = sys_le16_to_cpu(hdr->len); in handle_acl() [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42x70/ |
D | icm42x70_spi.c | 30 const struct spi_buf tx_buf = {.buf = cmd, .len = sizeof(cmd)}; in icm42x70_reg_read_spi() 37 rx_buf[0].len = 1; in icm42x70_reg_read_spi() 39 rx_buf[1].len = size; in icm42x70_reg_read_spi() 54 const struct spi_buf tx_buf[2] = {{.buf = cmd, .len = sizeof(cmd)}, in icm42x70_reg_write_spi() 55 {.buf = buf, .len = size}}; in icm42x70_reg_write_spi()
|
/Zephyr-latest/drivers/spi/ |
D | spi_litex_litespi.c | 124 static void spiflash_len_mask_width_write(uint32_t len, uint32_t width, uint32_t mask, in spiflash_len_mask_width_write() argument 127 uint32_t tmp = len & BIT_MASK(8); in spiflash_len_mask_width_write() 145 uint8_t len = data->dfs; /* SPI Xfer length*/ in spi_litex_xfer() local 146 uint8_t old_len = len; /* old SPI Xfer length*/ in spi_litex_xfer() 150 spiflash_len_mask_width_write(len * 8, width, mask, dev_config->core_master_phyconfig_addr); in spi_litex_xfer() 162 len = MIN(spi_context_max_continuous_chunk(ctx), dev_config->core_master_rxtx_size); in spi_litex_xfer() 163 if (len != old_len) { in spi_litex_xfer() 164 spiflash_len_mask_width_write(len * 8, width, mask, in spi_litex_xfer() 166 old_len = len; in spi_litex_xfer() 170 litex_spi_tx_put(len, &txd, ctx->tx_buf); in spi_litex_xfer() [all …]
|
/Zephyr-latest/include/zephyr/ |
D | net_buf.h | 52 .len = 0, \ 71 .len = 0, \ 98 uint16_t len; member 150 buf->len = 0U; in net_buf_simple_init() 174 buf->len = 0U; in net_buf_simple_reset() 202 void *net_buf_simple_add(struct net_buf_simple *buf, size_t len); 217 size_t len); 386 void *net_buf_simple_remove_mem(struct net_buf_simple *buf, size_t len); 555 void *net_buf_simple_push(struct net_buf_simple *buf, size_t len); 570 size_t len); [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_async_to_irq.c | 69 size_t len) in rx_enable() argument 74 err = config->api->rx_enable(dev, buf, len, get_rx_timeout(dev)); in rx_enable() 82 size_t len = uart_async_rx_get_buf_len(&data->rx.async_rx); in try_rx_enable() local 88 return rx_enable(dev, data, buf, len); in try_rx_enable() 97 size_t len = uart_async_rx_get_buf_len(async_rx); in on_rx_buf_req() local 100 int err = config->api->rx_buf_rsp(dev, buf, len); in on_rx_buf_req() 146 uart_async_rx_on_rdy(&data->rx.async_rx, evt->data.rx.buf, evt->data.rx.len); in uart_async_to_irq_callback() 172 int z_uart_async_to_irq_fifo_fill(const struct device *dev, const uint8_t *buf, int len) in z_uart_async_to_irq_fifo_fill() argument 178 len = MIN(len, data->tx.len); in z_uart_async_to_irq_fifo_fill() 183 memcpy(data->tx.buf, buf, len); in z_uart_async_to_irq_fifo_fill() [all …]
|
/Zephyr-latest/drivers/fuel_gauge/max17048/ |
D | emul_max17048.c | 85 if (msgs->len != 1) { in max17048_emul_transfer_i2c() 86 LOG_ERR("Unexpected msg0 length %d", msgs->len); in max17048_emul_transfer_i2c() 94 switch (msgs->len - 1) { in max17048_emul_transfer_i2c() 106 LOG_ERR("Unexpected msg1 length %d", msgs->len); in max17048_emul_transfer_i2c() 111 if (msgs->len != 2) { in max17048_emul_transfer_i2c() 112 LOG_ERR("Unexpected msg1 length %d", msgs->len); in max17048_emul_transfer_i2c()
|
/Zephyr-latest/drivers/input/ |
D | input_analog_axis_settings.c | 43 ssize_t len; in analog_axis_calibration_load() local 60 len = read_cb(cb_arg, cal, sizeof(cal)); in analog_axis_calibration_load() 61 if (len < 0) { in analog_axis_calibration_load() 62 LOG_ERR("Data restore error: %d", len); in analog_axis_calibration_load() 66 if (len != sizeof(struct analog_axis_calibration) * axes) { in analog_axis_calibration_load() 68 len, sizeof(struct analog_axis_calibration) * axes); in analog_axis_calibration_load()
|
/Zephyr-latest/include/zephyr/drivers/wifi/nrf_wifi/bus/ |
D | qspi_if.h | 59 int (*write)(unsigned int addr, const void *data, int len); 60 int (*read)(unsigned int addr, void *data, int len); 61 int (*hl_read)(unsigned int addr, void *data, int len); 69 int qspi_write(unsigned int addr, const void *data, int len); 71 int qspi_read(unsigned int addr, void *data, int len); 73 int qspi_hl_read(unsigned int addr, void *data, int len);
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | data_prepare_test.py | 44 if len(line) == 3 and line[2] == "-": 46 self.assertEqual(len(self.data), num) 53 original_len = len(self.data) 55 self.assertEqual(original_len + 300, len(self.data)) 68 self.assertEqual(len(lines), len(self.data))
|
/Zephyr-latest/tests/drivers/spi/spi_loopback/src/ |
D | spi.c | 111 tx_bufs[0].len = BUF_SIZE; in spi_complete_multiple() 114 tx_bufs[1].len = BUF2_SIZE; in spi_complete_multiple() 124 rx_bufs[0].len = BUF_SIZE; in spi_complete_multiple() 127 rx_bufs[1].len = BUF2_SIZE; in spi_complete_multiple() 168 .len = BUF_SIZE, in spi_complete_loop() 174 .len = BUF_SIZE, in spi_complete_loop() 223 .len = BUF_SIZE, in spi_null_tx_buf() 229 .len = BUF_SIZE, in spi_null_tx_buf() 271 .len = BUF_SIZE, in spi_rx_half_start() 277 .len = 8, in spi_rx_half_start() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_gd32_v1.c | 65 bool flash_gd32_valid_range(off_t offset, uint32_t len, bool write) in flash_gd32_valid_range() argument 68 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_valid_range() 75 (len % sizeof(flash_prg_t))) { in flash_gd32_valid_range() 82 (len % sizeof(uint32_t))) { in flash_gd32_valid_range() 89 (len % GD32_NV_FLASH_V1_PAGE_SIZE)) { in flash_gd32_valid_range() 97 int flash_gd32_write_range(off_t offset, const void *data, size_t len) in flash_gd32_write_range() argument 111 for (size_t i = 0U; i < (len / sizeof(flash_prg_t)); i++) { in flash_gd32_write_range()
|