Home
last modified time | relevance | path

Searched +full:swap +full:- +full:bytes (Results 1 – 25 of 62) sorted by relevance

123

/Zephyr-latest/lib/heap/
Dmulti_heap.c2 * SPDX-License-Identifier: Apache-2.0
12 heap->nheaps = 0; in sys_multi_heap_init()
13 heap->choice = choice_fn; in sys_multi_heap_init()
19 __ASSERT_NO_MSG(mheap->nheaps < ARRAY_SIZE(mheap->heaps)); in sys_multi_heap_add_heap()
21 mheap->heaps[mheap->nheaps].heap = heap; in sys_multi_heap_add_heap()
22 mheap->heaps[mheap->nheaps++].user_data = user_data; in sys_multi_heap_add_heap()
25 for (int i = 0; i < mheap->nheaps; i++) { in sys_multi_heap_add_heap()
26 struct sys_multi_heap_rec swap; in sys_multi_heap_add_heap() local
27 int lowest = -1; in sys_multi_heap_add_heap()
30 for (int j = i; j < mheap->nheaps; j++) { in sys_multi_heap_add_heap()
[all …]
/Zephyr-latest/dts/bindings/mipi-dbi/
Dnxp,lcdic.yaml2 # SPDX-License-Identifier: Apache-2.0
5 NXP LCDIC Controller. This controller implements 8080 and SPI mode MIPI-DBI
9 include: ["mipi-dbi-controller.yaml", "pinctrl-device.yaml"]
21 nxp,swap-bytes:
24 Swap bytes while transferring on LCDIC. When set, the LCDIC will send
27 reset-gpios:
28 type: phandle-array
34 nxp,write-inactive-cycles:
42 nxp,write-active-cycles:
50 nxp,timer0-ratio:
[all …]
/Zephyr-latest/boards/shields/lcd_par_s035/boards/
Drd_rw612_bga.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
11 * - Depopulate resistors R78, R604, R598, R15, R245, R243, R11, R20, R237,
13 * - Populate resistors R286, R19, R246, R242, R123, R239, R124, R125, R236,
15 * - Remove jumper JP30
16 * - Set jumper JP40 to postion 1-2, JP38 to 1-2, and JP16 to position 2-3
21 * ON-ON-OFF (8 bit 8080 mode), and connect the following pins
23 * |-----------|-------------|----------|
62 slew-rate = "ultra";
67 mipi-mode = "MIPI_DBI_MODE_8080_BUS_8_BIT";
[all …]
/Zephyr-latest/subsys/bluetooth/controller/util/
Ddbuf.h4 * SPDX-License-Identifier: Apache-2.0
18 /* Size in a bytes of a single element stored in double buffer. */
50 return &hdr->data[hdr->last * hdr->elem_size]; in dbuf_peek()
54 * @brief Enqueue new element for buffer swap.
61 hdr->last = idx; in dbuf_enqueue()
81 * @brief Returns pointer to the current element, the one after last swap operation.
90 * @return Pointer to element after last buffer swap.
94 return &hdr->data[hdr->first * hdr->elem_size]; in dbuf_curr_get()
106 return hdr->first != hdr->last; in dbuf_is_modified()
/Zephyr-latest/subsys/dfu/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
49 Enables usage swap type field which is required after
50 "Fix double swap on interrupted revert" mcuboot patch
51 (https://github.com/JuulLabs-OSS/mcuboot/pull/485)
67 Size (in Bytes) of buffer for image writer. Must be a multiple of
92 module-str = image manager
102 application is combined with MCUboot multi-image boot.
/Zephyr-latest/dts/bindings/ethernet/
Dxlnx,gem.yaml3 # SPDX-License-Identifier: Apache-2.0
10 include: ethernet-controller.yaml
19 clock-frequency:
27 which it will be adjusted at run-time. Therefore, the value of this
29 respective GEM's TX clock - by default, this is the IO PLL.
31 mdc-divider:
42 init-mdio-phy:
45 Activates the management of a PHY associated with the controller in-
46 stance. If this parameter is activated at the board level, the de-
47 fault values of the associated parameters mdio-phy-address, phy-poll-
[all …]
/Zephyr-latest/boards/shields/adafruit_2_8_tft_touch_v2/boards/
Drd_rw612_bga.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/spi/spi.h>
18 /delete-node/ mipi_dbi;
19 /delete-node/ adafruit_2_8_tft_touch_v2_mipi_dbi;
24 /delete-property/ nxp,swap-bytes;
26 nxp,timer0-ratio = <15>;
31 * - R125, R123, R12, R124, R15, R243, R239, R236, R233, R286, R246
33 * - R9, R11, R20, R19, R242, R241, R237, R235, R245
35 * - J5 1-2
42 mipi-max-frequency = <15151515>;
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dcsip_crypto.c3 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
42 if ((r[BT_CSIP_CRYPTO_PRAND_SIZE - 1] & BIT(7)) || in bt_csip_sih()
43 ((r[BT_CSIP_CRYPTO_PRAND_SIZE - 1] & BIT(6)) == 0)) { in bt_csip_sih()
71 /* Result is the lowest 3 bytes */ in bt_csip_sih()
86 * @param n n is 0 or more bytes.
87 * @param n_size Number of bytes in @p n.
88 * @param salt A 16-byte salt.
89 * @param p p is 0 or more bytes.
90 * @param p_size Number of bytes in @p p.
[all …]
/Zephyr-latest/boards/nxp/rd_rw612_bga/dts/
Dgoworld_16880_lcm.overlay1 #include <zephyr/dt-bindings/spi/spi.h>
10 compatible = "zephyr,lvgl-pointer-input";
12 swap-xy;
13 invert-y;
19 nxp,swap-bytes;
21 nxp,timer0-ratio = <15>;
25 * - R125, R123, R12, R124, R15, R243, R239, R236, R233, R286, R246
27 * - R9, R11, R20, R19, R242, R241, R237, R235, R245
31 * -------------------------------
49 mipi-max-frequency = <23000000>;
[all …]
/Zephyr-latest/arch/x86/core/
Defi.c4 * SPDX-License-Identifier: Apache-2.0
31 return efi->acpi_rsdp; in efi_get_acpi_rsdp()
46 * We need to swap in the original EFI page tables for this to work,
51 * plays with the IO-MMU... the posibilities are endless). But
55 * system as-is; we already know it doesn't overlap with the EFI
59 * Similarly we need to swap the stack: EFI firmware was written in an
60 * environment where it would be running on multi-gigabyte systems and
62 * the problem of the red zone -- SysV reserves 128 bytes of
67 * still, best to swap stacks explicitly.)
73 * are also caller-save. Technically X/YMM0-5 are caller-save too,
[all …]
Duserspace.c4 * SPDX-License-Identifier: Apache-2.0
31 * in user mode we are going to switch CR3 to the domain-specific tables when
46 _main_tss.esp0 = (uintptr_t)incoming->arch.psp; in z_x86_swap_update_page_tables()
55 uintptr_t ptables_phys = incoming->arch.ptables; in z_x86_swap_update_page_tables()
69 * Returns the initial entry point to swap into.
75 if (z_stack_is_user_capable(thread->stack_obj)) { in z_x86_userspace_prepare_thread()
78 (struct z_x86_thread_stack_header *)thread->stack_info.mapped.addr; in z_x86_userspace_prepare_thread()
80 (struct z_x86_thread_stack_header *)thread->stack_obj; in z_x86_userspace_prepare_thread()
83 thread->arch.psp = header->privilege_stack + sizeof(header->privilege_stack); in z_x86_userspace_prepare_thread()
85 thread->arch.psp = NULL; in z_x86_userspace_prepare_thread()
[all …]
/Zephyr-latest/include/zephyr/usb_c/
Dtcpci.h3 * SPDX-License-Identifier: Apache-2.0
15 * Registers and fields are compliant to the Type-C Port Controller Interface
19 /** Register address - vendor id */
22 /** Register address - product id */
25 /** Register address - version of TCPC */
28 /** Register address - USB TypeC version */
30 /** Mask for major part of type-c release supported */
32 /** Macro to extract the major part of type-c release supported */
34 /** Mask for minor part of type-c release supported */
36 /** Macro to extract the minor part of type-c release supported */
[all …]
/Zephyr-latest/modules/lvgl/
DKconfig3 # SPDX-License-Identifier: Apache-2.0
91 bool "Swap the 2 bytes of RGB565 color."
111 default -1
/Zephyr-latest/include/zephyr/dfu/
Dmcuboot.h5 * SPDX-License-Identifier: Apache-2.0
51 /** Swap to slot 1. Absent a confirm command, revert back on next boot. */
60 /** Swap to slot 1, and permanently switch to booting its contents. */
69 /** Swap back to alternate slot. A confirm changes this state to NONE. */
78 /** Swap failed because image to be run is not valid */
109 /** The size of the image, in bytes. */
/Zephyr-latest/doc/services/ipc/ipc_service/backends/
Dipc_service_icmsg.rst27 * If at least one of the cores uses data cache on shared memory, set the ``dcache-alignment`` value.
28 …This must be the largest value of the invalidation or the write-back size for both sides of the co…
30 * Define two memory regions and assign them to ``tx-region`` and ``rx-region``
40 Make sure that you set correct value of the ``dcache-alignment``.
46 .. code-block:: devicetree
48 reserved-memory {
60 compatible = "zephyr,ipc-icmsg";
61 dcache-alignment = <32>;
62 tx-region = <&tx>;
63 rx-region = <&rx>;
[all …]
Dipc_service_icbmsg.rst11 …ming some common problems with other backends (mostly related to multithread access and zero-copy).
18 One is reserved for the ICMsg and the other contains equal-sized blocks.
26 For the zero-copy case, this is done by the caller, otherwise, it is copied automatically.
43 * If at least one of the cores uses data cache on shared memory, set the ``dcache-alignment`` value.
44 …This must be the largest value of the invalidation or the write-back size for both sides of the co…
46 * Define two memory regions and assign them to ``tx-region`` and ``rx-region`` of an instance.
48 * Define the number of allocable blocks for each region with ``tx-blocks`` and ``rx-blocks``.
54 Make sure that you set correct value of the ``dcache-alignment``.
60 .. code-block:: devicetree
62 reserved-memory {
[all …]
/Zephyr-latest/tests/drivers/smbus/smbus_emul/src/
Demul.c4 * SPDX-License-Identifier: Apache-2.0
43 * simple EEPROM device of size 256 bytes
51 sys_slist_prepend(&peripherals, &peripheral->node); in emul_register_smbus_peripheral()
59 if (peripheral->addr == addr) { in emul_get_smbus_peripheral()
72 if (peripheral->smbalert && !peripheral->smbalert_handled) { in peripheral_handle_smbalert()
82 LOG_DBG("Return own address: 0x%02x", found->addr); in peripheral_handle_smbalert()
84 io_area[PCH_SMBUS_HD0] = found->addr; in peripheral_handle_smbalert()
85 found->smbalert_handled = true; in peripheral_handle_smbalert()
95 if (peripheral->host_notify) { in peripheral_handle_host_notify()
97 io_area[PCH_SMBUS_NDA] = peripheral->addr << 1; in peripheral_handle_host_notify()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/include/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt_priv.h2 * Copyright (c) 2018-2021 mcumgr authors
3 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
57 * @param num_bytes The number of bytes to read.
68 * @param num_bytes The number of bytes to write.
79 * @brief Indicates the type of swap operation that will occur on the next
120 /** The normal boot to active or non-active slot */
122 /** The test/non-permanent boot to non-active slot */
140 * @return -1 in case when next boot slot can not be established.
155 * @param num_bytes The number of bytes to erase.
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/
DKconfig2 # Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
10 # MCUMGR_GRP_IMG_ -- general group options;
63 non-0 "rc" codes.
66 bool "Allow to confirm secondary slot of non-active image"
69 Allows to confirm secondary (non-active) slot of non-active image.
70 Normally it should not be allowed to confirm any slots of non-active
76 bool "Allow to confirm slots of non-active image"
79 Allows to confirm any slot of non-active image.
80 Normally it should not be allowed to confirm any slots of non-active
[all …]
/Zephyr-latest/samples/tfm_integration/tfm_ipc/
DREADME.rst1 .. zephyr:code-sample:: tfm_ipc
2 :name: TF-M IPC
4 Implement communication between the secure and non-secure images using IPC.
9 This is a simple TF-M integration example that can be used with an ARMv8-M
12 It uses **IPC Mode** for communication, where TF-M API calls are made to the
16 Zephyr uses Trusted Firmware (TF-M) Platform Security Architecture (PSA) APIs
18 non-secure configuration.
20 The sample prints test info to the console either as a single-thread or
21 multi-thread application.
23 The sample reboots after 5 seconds to demonstrate rebooting with TF-M.
[all …]
/Zephyr-latest/include/zephyr/sys/
Dutil.h2 * Copyright (c) 2011-2014, Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
40 * @defgroup sys-util Utility Functions
80 (((~0UL) - (1UL << (l)) + 1) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
83 * @brief Create a contiguous 64-bit bitmask starting at bit position @p l
87 (((~0ULL) - (1ULL << (l)) + 1) & (~0ULL >> (BITS_PER_LONG_LONG - 1 - (h))))
89 /** @brief 0 if @p cond is true-ish; causes a compile error otherwise. */
90 #define ZERO_OR_COMPILE_ERROR(cond) ((int) sizeof(char[1 - 2 * !(cond)]) - 1)
94 /* The built-in function used below for type checking in C is not
152 * in that it also ensures that @p ptr is aligned to an array-element boundary
[all …]
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_pd.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB-C Power Delivery API used for USB-C drivers
31 * @brief Maximum length of a non-Extended Message in bytes.
32 * See Table 6-75 Value Parameters
38 * @brief Maximum length of an Extended Message in bytes.
39 * See Table 6-75 Value Parameters
45 * @brief Maximum length of a Chunked Message in bytes.
51 * See Table 6-75 Value Parameters
57 * @name USB PD 3.1 Rev 1.6, Table 6-70 Counter Parameters
79 * @name USB PD 3.1 Rev 1.6, Table 6-68 Time Values
[all …]
/Zephyr-latest/drivers/sensor/nxp/p3t1755/
Dp3t1755.c4 * SPDX-License-Identifier: Apache-2.0
21 struct p3t1755_data *data = dev->data; in p3t1755_i3c_read_reg()
23 return i3c_burst_read(data->i3c_dev, reg, value, len); in p3t1755_i3c_read_reg()
28 struct p3t1755_data *data = dev->data; in p3t1755_i3c_write_reg()
30 return i3c_burst_write(data->i3c_dev, reg, byte, len); in p3t1755_i3c_write_reg()
37 const struct p3t1755_config *config = dev->config; in p3t1755_i2c_read_reg()
39 return i2c_burst_read_dt(&config->bus_cfg.i2c, reg, value, len); in p3t1755_i2c_read_reg()
44 const struct p3t1755_config *config = dev->config; in p3t1755_i2c_write_reg()
46 return i2c_burst_write_dt(&config->bus_cfg.i2c, reg, byte, len); in p3t1755_i2c_write_reg()
52 const struct p3t1755_config *config = dev->config; in p3t1755_sample_fetch()
[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,
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
76 * Swap ecx and handler function on the current stack;
81 * ESP -> ECX (excepting task)
111 /* It was. The original stack pointer is on the stack 44 bytes
156 * the exception was triggered -- this protects kernel level code
[all …]
/Zephyr-latest/boards/st/nucleo_f429zi/doc/
Dindex.rst6 The Nucleo F429ZI board features an ARM Cortex-M4 based STM32F429ZI MCU
10 - STM32 microcontroller in LQFP144 package
11 - LSE crystal: 32.768 kHz crystal oscillator
12 - USB OTG
13 - Ethernet compliant with IEEE-802.3-2002
14 - Two types of extension resources:
16 - ST Zio connector including: support for Arduino* Uno V3 connectivity
19 - ST morpho extension pin headers for full access to all STM32 I/Os
21 - On-board ST-LINK/V2-1 debugger/programmer with SWD connector
22 - Flexible board power supply:
[all …]

123