Home
last modified time | relevance | path

Searched +full:dummy +full:- +full:bytes +full:- +full:count (Results 1 – 25 of 50) sorted by relevance

12

/Zephyr-latest/dts/bindings/memory-controllers/
Drenesas,smartbond-nor-psram.yaml2 # SPDX-License-Identifier: Apache-2.0
8 compatible: "renesas,smartbond-nor-psram"
14 is-ram:
19 dev-size:
25 dev-type:
31 dev-density:
40 dev-id:
46 reset-delay-us:
52 read-cs-idle-min-ns:
59 erase-cs-idle-min-ns:
[all …]
/Zephyr-latest/boards/renesas/da1469x_dk_pro/dts/
Dda1469x_dk_pro_psram.overlay4 * SPDX-License-Identifier: Apache-2.0
9 sram-ext = &memc;
17 /* QSPIC settings for the APS6404L-3SQR QSPI PSRAM memory in QPI mode. */
20 is-ram;
21 dev-size = <DT_SIZE_M(64)>;
22 dev-type = <0x5D>;
23 dev-id = <0x0D>;
24 dev-density = <0xE040>;
25 reset-delay-us = <50>;
26 read-cs-idle-min-ns = <18>;
[all …]
/Zephyr-latest/drivers/flash/
Dflash_cadence_qspi_nor_ll.c4 * SPDX-License-Identifier: Apache-2.0
20 return -EINVAL; in cad_qspi_idle()
23 return (sys_read32(cad_params->reg_base + CAD_QSPI_CFG) & CAD_QSPI_CFG_IDLE) >> 31; in cad_qspi_idle()
30 return -EINVAL; in cad_qspi_set_baudrate_div()
37 sys_clear_bits(cad_params->reg_base + CAD_QSPI_CFG, ~CAD_QSPI_CFG_BAUDDIV_MSK); in cad_qspi_set_baudrate_div()
39 sys_set_bits(cad_params->reg_base + CAD_QSPI_CFG, CAD_QSPI_CFG_BAUDDIV(div)); in cad_qspi_set_baudrate_div()
49 return -EINVAL; in cad_qspi_configure_dev_size()
55 cad_params->reg_base + CAD_QSPI_DEVSZ); in cad_qspi_configure_dev_size()
65 return -EINVAL; in cad_qspi_set_read_config()
72 cad_params->reg_base + CAD_QSPI_DEVRD); in cad_qspi_set_read_config()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_mchp_mss_qspi.c4 * SPDX-License-Identifier: Apache-2.0
114 return sys_read32(cfg->base + offset); in mss_qspi_read()
120 sys_write32(val, cfg->base + offset); in mss_qspi_write()
141 const struct mss_qspi_config *s = dev->config; in mss_qspi_transmit_x8()
142 struct mss_qspi_data *data = dev->data; in mss_qspi_transmit_x8()
143 struct spi_context *ctx = &data->ctx; in mss_qspi_transmit_x8()
144 uint32_t count, skips; in mss_qspi_transmit_x8() local
149 for (count = 0; count < len; ++count) { in mss_qspi_transmit_x8()
154 mss_qspi_write(s, ctx->tx_buf[0], MSS_QSPI_REG_TX_DATA); in mss_qspi_transmit_x8()
162 const struct mss_qspi_config *s = dev->config; in mss_qspi_transmit_x32()
[all …]
Dspi_xec_qmspi.c4 * SPDX-License-Identifier: Apache-2.0
58 REG8(&regs->TX_FIFO) = data8; in txb_wr8()
63 return REG8(&regs->RX_FIFO); in rxb_rd8()
87 qmode = regs->MODE & ~(MCHP_QMSPI_M_FDIV_MASK); in qmspi_set_frequency()
89 regs->MODE = qmode; in qmspi_set_frequency()
129 if (((regs->MODE >> MCHP_QMSPI_M_FDIV_POS) & in qmspi_set_signalling_mode()
135 regs->MODE = (regs->MODE & ~(MCHP_QMSPI_M_SIG_MASK)) in qmspi_set_signalling_mode()
148 switch (config->operation & SPI_LINES_MASK) { in qmspi_config_get_lines()
179 const struct spi_qmspi_config *cfg = dev->config; in qmspi_configure()
180 struct spi_qmspi_data *data = dev->data; in qmspi_configure()
[all …]
/Zephyr-latest/tests/boards/mec15xxevb_assy6853/qspi/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
28 * bits[15:8] = bytes number of dummy clocks */
63 * - Find spi device
64 * - Read flash jedec id
78 tx_bufs.count = 1U; in ZTEST_USER()
85 rx_bufs.count = 1U; in ZTEST_USER()
99 * - write enable
100 * - erase data in flash device
101 * - read register1 and wait for erase operation completed
114 tx_bufs.count = 1U; in ZTEST_USER()
[all …]
/Zephyr-latest/tests/boards/mec172xevb_assy6906/qspi/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
30 * bits[15:8] = bytes number of clocks with data lines tri-stated
86 /* Compute the number of bytes required to generate the requested number of
88 * mode = 1(full-duplex), 2(dual), 4(quad)
89 * full-duplex: 8 clocks per byte
113 return -EINVAL; in spi_flash_address_format()
117 dest[i] = (uint8_t)((spi_addr >> ((addrsz - (i + 1U)) * 8U)) & 0xffU); in spi_flash_address_format()
139 .count = 2U, in spi_flash_read_status()
143 .count = 2U, in spi_flash_read_status()
173 .count = 1U, in spi_flash_write_status()
[all …]
/Zephyr-latest/drivers/net/
Dslip.c4 * SPDX-License-Identifier: Apache-2.0
29 #include <zephyr/net/dummy.h>
99 if (!pkt->buffer) { in slip_send()
101 return -ENODATA; in slip_send()
106 for (buf = pkt->buffer; buf; buf = buf->frags) { in slip_send()
107 ptr = buf->data; in slip_send()
108 for (i = 0U; i < buf->len; ++i) { in slip_send()
114 LOG_DBG("sent data %d bytes", buf->len); in slip_send()
116 if (buf->len) { in slip_send()
117 LOG_HEXDUMP_DBG(buf->data, in slip_send()
[all …]
/Zephyr-latest/modules/nrf_wifi/bus/
Dspi_if.c4 * SPDX-License-Identifier: Apache-2.0
9 * Zephyr OS layer of the Wi-Fi driver.
43 const struct spi_buf_set tx = { .buffers = tx_buf, .count = 2 }; in spim_xfer_tx()
59 0 /* dummy byte */ in spim_xfer_rx()
68 const struct spi_buf_set tx = { .buffers = tx_buf, .count = 2 }; in spim_xfer_rx()
75 const struct spi_buf_set rx = { .buffers = rx_buf, .count = 2 }; in spim_xfer_rx()
78 LOG_ERR("Discard bytes too large, please adjust buf size"); in spim_xfer_rx()
79 return -EINVAL; in spim_xfer_rx()
97 .count = 1 in spim_read_reg()
106 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in spim_read_reg()
[all …]
/Zephyr-latest/subsys/net/lib/capture/
Dcooked.c4 * SPDX-License-Identifier: Apache-2.0
44 /* -1 is used as a not configured link type */
54 struct cooked_context *ctx = net_if_get_device(iface)->data; in iface_init()
66 if (net_if_l2(net_if_get_by_index(ifindex)) != &NET_L2_GET_NAME(DUMMY)) { in iface_init()
71 if (ctx->init_done) { in iface_init()
75 ctx->iface = iface; in iface_init()
90 ret = net_virtual_interface_attach(ctx->iface, any_iface); in iface_init()
98 net_if_get_by_iface(ctx->iface), in iface_init()
101 ctx->init_done = true; in iface_init()
106 struct cooked_context *ctx = dev->data; in dev_init()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dping.c5 * SPDX-License-Identifier: Apache-2.0
36 uint32_t count; member
56 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in handle_ipv6_echo_reply()
64 return -EIO; in handle_ipv6_echo_reply()
71 return -EIO; in handle_ipv6_echo_reply()
74 cycles = k_cycle_get_32() - cycles; in handle_ipv6_echo_reply()
87 PR_SHELL(ping_ctx.sh, "%d bytes from %s to %s: icmp_seq=%d ttl=%d " in handle_ipv6_echo_reply()
92 ntohs(ip_hdr->len) - net_pkt_ipv6_ext_len(pkt) - in handle_ipv6_echo_reply()
94 net_sprint_ipv6_addr(&ip_hdr->src), in handle_ipv6_echo_reply()
95 net_sprint_ipv6_addr(&ip_hdr->dst), in handle_ipv6_echo_reply()
[all …]
/Zephyr-latest/tests/net/mld/src/
Dmain.c1 /* main.c - Application main entry point */
6 * SPDX-License-Identifier: Apache-2.0
27 #include <zephyr/net/dummy.h>
109 struct net_test_mld *context = dev->data; in net_test_get_mac()
111 if (context->mac_addr[2] == 0x00) { in net_test_get_mac()
112 /* 00-00-5E-00-53-xx Documentation RFC 7042 */ in net_test_get_mac()
113 context->mac_addr[0] = 0x00; in net_test_get_mac()
114 context->mac_addr[1] = 0x00; in net_test_get_mac()
115 context->mac_addr[2] = 0x5E; in net_test_get_mac()
116 context->mac_addr[3] = 0x00; in net_test_get_mac()
[all …]
/Zephyr-latest/include/zephyr/kernel/
Dthread.h4 * SPDX-License-Identifier: Apache-2.0
53 size_t bytes_to_xfer; /* # bytes left to transfer */
57 /* can be used for creating 'dummy' threads, e.g. for pending on objects */
78 * scheduler lock count and thread priority
87 * By putting them end-to-end, this means that a thread is
88 * non-preemptible if the bundled value is greater than or equal to
111 /* True for the per-CPU idle threads */
117 /* Recursive count of irq_lock() calls */
155 /* Stack start - Represents the start address of the thread-writable
163 * for local thread data storage, as well as any area left-out due to
[all …]
/Zephyr-latest/arch/x86/core/ia32/
Dexcstub.S2 * Copyright (c) 2011-2015 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Exception management support for IA-32 architecture
12 * interrupts) on the Intel IA-32 architecture. More specifically,
36 * _not_ increment a thread/interrupt specific exception count. Also,
44 * Host-based tools and the target-based GDB agent depend on the stack frame
57 * The gen_idt tool creates an interrupt-gate descriptor for
81 * ESP -> ECX (excepting task)
111 /* It was. The original stack pointer is on the stack 44 bytes
137 /* inc exception nest count */
[all …]
/Zephyr-latest/subsys/shell/backends/
DKconfig.backends4 # SPDX-License-Identifier: Apache-2.0
15 DT_CHOSEN_Z_SHELL_UART := zephyr,shell-uart
96 bytes by shell. If shell input is coming from the keyboard then it is
97 usually enough if ring buffer is few bytes (more than one due to
123 Size of a single RX buffer. Together with buffer count it defines the
145 default-timeout = 100
148 default-size = 512
211 Select index of up-buffer used for shell output, by default it uses
212 terminal up-buffer and its settings.
226 data periodically. Period starts from 1-2 milliseconds and can be
[all …]
/Zephyr-latest/soc/microchip/mec/common/spigen/
Dmec_spi_gen.py4 # SPDX-License-Identifier: Apache-2.0
34 # 1st digit - number of I/O pins used to transmit the opcode
35 # 2nd digit - number of I/O pins used to transmit the SPI address
36 # 3rd digit - number of pins used to read data from flash
37 # 4th digit (if present) - dummy clocks between address and data phase
85 """Print bytes or bytearray as hex values"""
87 count = 1
90 if (count % 8) == 0:
92 count = count + 1
99 CRC8-ITU calculation
[all …]
/Zephyr-latest/tests/net/iface/src/
Dmain.c1 /* main.c - Application main entry point */
7 * SPDX-License-Identifier: Apache-2.0
27 #include <zephyr/net/dummy.h>
83 struct net_if_test *data = dev->data; in net_iface_get_mac()
85 if (data->mac_addr[2] == 0x00) { in net_iface_get_mac()
86 /* 00-00-5E-00-53-xx Documentation RFC 7042 */ in net_iface_get_mac()
87 data->mac_addr[0] = 0x00; in net_iface_get_mac()
88 data->mac_addr[1] = 0x00; in net_iface_get_mac()
89 data->mac_addr[2] = 0x5E; in net_iface_get_mac()
90 data->mac_addr[3] = 0x00; in net_iface_get_mac()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dshell.rst30 sub-commands. Every time the device boots up, make sure to call ``mesh init`` before any of the
43 The simplest way to provision the device is through self-provisioning. To do this the user must
49 devices, as long as they're assigned non-overlapping unicast addresses. Alternatively, to provision
51 ``mesh prov pb-adv on`` or ``mesh prov pb-gatt on``. The beacons can be picked up by an external
68 ``mesh prov local`` command above), we can perform self-configuration through any of the
73 uart:~$ mesh models cfg get-comp
89 uart:~$ mesh test net-send 82020100
120 .. list-table:: Parameter formats
122 :header-rows: 1
124 * - Type
[all …]
/Zephyr-latest/tests/drivers/smbus/smbus_emul/src/
Dsmbus.c4 * SPDX-License-Identifier: Apache-2.0
93 /* Zero initialized, dummy device does not care about pcie ids */
182 /* Our emulated Proc Call swaps bytes */ in ZTEST()
206 zassert_equal(snd_count, rcv_count, "Block count differs"); in ZTEST()
227 zassert_equal(snd_count, rcv_count, "Block count differs"); in ZTEST()
230 * Verify that our emulated peripheral swapped bytes in the block in ZTEST()
234 zassert_equal(snd_block[i], rcv_block[rcv_count - (i + 1)], in ZTEST()
295 zassert_equal(ret, -ENOENT, "Callback remove failed"); in ZTEST()
339 zassert_equal(ret, -ENOENT, "Callback remove failed"); in ZTEST()
/Zephyr-latest/tests/net/6lo/src/
Dmain.c1 /* main.c - Application main entry point */
6 * SPDX-License-Identifier: Apache-2.0
26 #include <zephyr/net/dummy.h>
215 #define IPV6_DISPATCH_DIFF -1
256 struct net_6lo_context *net_6lo_context = dev->data; in net_6lo_dev_init()
296 res = memcmp((uint8_t *)ipv6_hdr, (uint8_t *)&data->ipv6, in compare_ipv6_hdr()
319 res = memcmp((uint8_t *)udp_hdr, (uint8_t *)&data->nh.udp, in compare_udp_hdr()
342 res = memcmp((uint8_t *)icmp_hdr, (uint8_t *)&data->nh.icmp, in compare_icmp_hdr()
365 res = memcmp(test_data->data, data, sizeof(struct user_data_small)); in compare_data_small()
387 res = memcmp(test_data->data, data, sizeof(struct user_data_large)); in compare_data_large()
[all …]
/Zephyr-latest/soc/microchip/mec/mec172x/
Dsoc_espi_saf_v2.h4 * SPDX-License-Identifier: Apache-2.0
41 * Boot-ROM OTP configuration.
70 /* QMSPI descriptors 12-15 for all SPI flash devices */
72 /* QMSPI descriptors 12-13 are exit continuous mode */
108 * QMSPI descriptors 14-15 are poll 16-bit flash status
110 * Receive two bytes at 1X (no DMA).
130 /* SAF Pre-fetch optimization mode */
136 * SAF Opcode 32-bit register value.
137 * Each byte contain a SPI flash 8-bit opcode.
141 * op0 = SPI flash write-enable opcode
[all …]
/Zephyr-latest/drivers/adc/
Dadc_lmp90xxx.c4 * SPDX-License-Identifier: Apache-2.0
106 #define LMP90XXX_HAS_DRDYB(config) (config->drdyb.port != NULL)
172 const struct lmp90xxx_config *config = dev->config; in lmp90xxx_read_reg()
173 struct lmp90xxx_data *data = dev->data; in lmp90xxx_read_reg()
181 int dummy = 0; in lmp90xxx_read_reg() local
186 LOG_ERR("attempt to read 0 bytes from register 0x%02x", addr); in lmp90xxx_read_reg()
187 return -EINVAL; in lmp90xxx_read_reg()
192 return -EWOULDBLOCK; in lmp90xxx_read_reg()
195 k_mutex_lock(&data->ura_lock, K_FOREVER); in lmp90xxx_read_reg()
197 if (ura != data->ura) { in lmp90xxx_read_reg()
[all …]
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
Dfxos8700.c5 * SPDX-License-Identifier: Apache-2.0
19 #define RANGE2FS(x) (__builtin_ctz(x) - 1)
29 const struct fxos8700_config *cfg = dev->config; in fxos8700_transceive()
31 const struct spi_buf_set s = { .buffers = &buf, .count = 1 }; in fxos8700_transceive()
33 return spi_transceive_dt(&cfg->bus_cfg.spi, &s, &s); in fxos8700_transceive()
41 const struct fxos8700_config *cfg = dev->config; in fxos8700_read_spi()
43 /* Reads must clock out a dummy byte after sending the address. */ in fxos8700_read_spi()
49 const struct spi_buf_set tx = { .buffers = buf, .count = 1 }; in fxos8700_read_spi()
50 const struct spi_buf_set rx = { .buffers = buf, .count = 2 }; in fxos8700_read_spi()
52 return spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx); in fxos8700_read_spi()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_mchp_xec_v2.c5 * SPDX-License-Identifier: Apache-2.0
25 #include "i2c-priv.h"
112 * i2c_baud_clk_period/bus_clk_period - 2 = (low_period + hi_period)
113 * bus_clk_reg (16MHz/100KHz -2) = 0x4F + 0x4F
114 * (16MHz/400KHz -2) = 0x0F + 0x17
115 * (16MHz/1MHz -2) = 0x05 + 0x09
144 (const struct i2c_xec_config *const) (dev->config); in i2c_ctl_wr()
146 (struct i2c_xec_data *const) (dev->data); in i2c_ctl_wr()
147 struct i2c_smb_regs *regs = (struct i2c_smb_regs *)cfg->base_addr; in i2c_ctl_wr()
149 data->i2c_ctrl = ctrl; in i2c_ctl_wr()
[all …]
/Zephyr-latest/drivers/mipi_dbi/
Dmipi_dbi_nxp_lcdic.c4 * SPDX-License-Identifier: Apache-2.0
47 /* Max reset pulse count */
53 /* Data length in bytes. LCDIC transfers data_len + 1 */
55 /* Dummy SCLK cycles between TX and RX (for SPI mode) */
99 /* Tracks number of bytes remaining in command */
101 /* Tracks number of bytes remaining in transfer */
153 const struct mipi_dbi_lcdic_config *config = dev->config; in mipi_dbi_lcdic_reset_state()
154 LCDIC_Type *base = config->base; in mipi_dbi_lcdic_reset_state()
156 base->CTRL &= ~LCDIC_CTRL_LCDIC_EN_MASK; in mipi_dbi_lcdic_reset_state()
158 base->CTRL |= LCDIC_CTRL_LCDIC_EN_MASK; in mipi_dbi_lcdic_reset_state()
[all …]

12