Home
last modified time | relevance | path

Searched +full:pages +full:- +full:count (Results 1 – 25 of 46) sorted by relevance

12

/Zephyr-latest/tests/drivers/mm/sys_mm_drv_bank/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
20 zassert_equal(stats->free_bytes, expected->free_bytes, in test_stats()
22 stats->free_bytes, expected->free_bytes); in test_stats()
23 zassert_equal(stats->allocated_bytes, expected->allocated_bytes, in test_stats()
25 stats->allocated_bytes, expected->allocated_bytes); in test_stats()
26 zassert_equal(stats->max_allocated_bytes, expected->max_allocated_bytes, in test_stats()
28 stats->max_allocated_bytes, in test_stats()
29 expected->max_allocated_bytes); in test_stats()
36 uint32_t count; in ZTEST() local
40 /* It set mapped state for all pages */ in ZTEST()
[all …]
/Zephyr-latest/dts/arm/infineon/cat3/xmc/
Dxmc4500_F100x1024.dtsi5 * SPDX-License-Identifier: Apache-2.0
13 compatible = "mmio-sram";
18 compatible = "mmio-sram";
23 compatible = "mmio-sram";
32 pages-count = <8>;
33 pages-size = <DT_SIZE_K(16)>;
36 pages-count = <1>;
37 pages-size = <DT_SIZE_K(128)>;
40 pages-count = <3>;
41 pages-size = <DT_SIZE_K(256)>;
[all …]
Dxmc4700_F144x2048.dtsi4 * SPDX-License-Identifier: Apache-2.0
12 compatible = "mmio-sram";
17 compatible = "mmio-sram";
26 pages-count = <8>;
27 pages-size = <DT_SIZE_K(16)>;
30 pages-count = <1>;
31 pages-size = <DT_SIZE_K(128)>;
34 pages-count = <7>;
35 pages-size = <DT_SIZE_K(256)>;
54 gpio-reserved-ranges = <10 2>;
[all …]
/Zephyr-latest/dts/bindings/mtd/
Dinfineon,xmc4xxx-nv-flash.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "infineon,xmc4xxx-nv-flash"
8 include: soc-nv-flash.yaml
10 child-binding:
12 child-binding:
15 pages-count:
16 description: Number of consecutive pages with size pages-size bytes
20 pages-size:
/Zephyr-latest/dts/bindings/flash_controller/
Datmel,sam-flash-controller.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "atmel,sam-flash-controller"
8 include: flash-controller.yaml
14 "#erase-block-cells":
18 erase-block-cells:
19 - pages-count
20 - pages-size
/Zephyr-latest/subsys/demand_paging/backing_store/
Dram.c4 * SPDX-License-Identifier: Apache-2.0
6 * RAM-based memory buffer backing store implementation for demo purposes
23 * management is necessary. Clean copies of paged-in data pages may be kept
30 * are freed as soon as pages are paged in, in
32 * This implies that all data pages are treated as dirty as
38 * a paged-in data page in a custom field of its associated k_mem_page_frame, and
45 * eviction algorithm, to free backing store locations for loaded data pages
51 * starts getting set for certain page frames after a page-in (and possibly
78 offset = pos - backing_store; in slab_to_location()
93 return -ENOMEM; in k_mem_paging_backing_store_location_get()
[all …]
/Zephyr-latest/kernel/
DKconfig.vm3 # SPDX-License-Identifier: Apache-2.0
23 address from DTS, in which case RAM will be identity-mapped. Some
28 this for non-pinned page frames).
30 Otherwise, if RAM isn't identity-mapped:
36 regions if RAM is not identity-mapped, or the virtual and physical
38 double-linking of paging structures to make the instruction pointer
42 page tables are in use, they all have the same virtual-to-physical
53 build-time cases, or when a physical address cannot be looked up
56 virt = phys + ((KERNEL_VM_BASE + KERNEL_VM_OFFSET) -
74 for mapping driver MMIO regions, as well as special RAM mapping use-cases
[all …]
/Zephyr-latest/drivers/fpga/
Dfpga_mpfs.c4 * SPDX-License-Identifier: Apache-2.0
38 GENMASK(SCBCTRL_SERVICESSR_STATUS + SCBCTRL_SERVICESSR_STATUS_MASK_WIDTH - 1, \
65 * Note: In the Flash directory first four pages(each page of 256 Bytes) have either
66 * a valid image address or zeros. The other remaining 12 pages are all filled with 0xFFs.
68 * |------------------------------| 0x000
71 * |------------------------------| 0x004
74 * |------------------------------| 0x008
77 * |------------------------------| 0x00C
78 * | Unused for re-programming |
80 * |------------------------------| 0x400
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_smsc91x_priv.h3 * SPDX-License-Identifier: Apache-2.0
42 #define MIR_SIZE_MASK GENMASK(7, 0) /* Memory size (2k pages) */
43 #define MIR_FREE_MASK GENMASK(15, 8) /* Memory free (2k pages) */
48 #define RPCR_DPLX 0x1000 /* Put PHY in full-duplex mode */
54 #define RPCR_LED_LINK_FDX 0x3 /* Full-duplex link detect */
146 #define CTRL_ODD 0x20 /* Frame has odd bytes count */
156 /* Length of status word + byte count + control bytes for packets */
/Zephyr-latest/include/zephyr/xen/public/
Dxen.h1 /* SPDX-License-Identifier: MIT */
33 #include "arch-arm.h"
147 * ` unsigned int count,
151 * @count: Size of the buffer to read/write
163 * * CONSOLEIO_read: Attempts to read up to @count characters from Xen
164 * console. The maximum buffer size (i.e. @count) supported is 2GB.
178 * DOMID_IO is used to restrict page-table updates to mapping I/O memory.
179 * Although no Foreign Domain need be specified to map I/O pages, DOMID_IO
182 * aren't adjusted on the I/O-mapping code path).
194 * - HYPERVISOR_mmu_update()'s, HYPERVISOR_mmuext_op()'s, or
[all …]
Dgrant_table.h1 /* SPDX-License-Identifier: MIT */
7 * page-ownership transfers.
44 * permissions other domains have on its pages. Entries in the grant
50 * This capability-based system allows shared-memory communications
62 /* Some rough guidelines on accessing and updating grant-table entries
63 * in a concurrency-safe manner. For more information, Linux contains a
65 …* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=drivers/xen/grant-table.c;…
67 * NB. WMB is a no-op on current-generation x86 processors. However, a
71 * 1. Write ent->domid.
72 * 2. Write ent->frame:
[all …]
/Zephyr-latest/drivers/mm/
Dmm_drv_intel_adsp_mtl_tlb.c4 * SPDX-License-Identifier: Apache-2.0
68 * @param vaddr Page-aligned virutal address.
73 return (POINTER_TO_UINT(vaddr) - CONFIG_KERNEL_VM_BASE) / in get_tlb_entry_idx()
85 uint32_t phys_offset = pa - L2_SRAM_BASE; in get_hpsram_bank_idx()
142 return -1; in sys_mm_drv_hpsram_pwr()
145 HPSRAM_REGS(bank_idx)->HSxPGCTL = !enable; in sys_mm_drv_hpsram_pwr()
148 while (HPSRAM_REGS(bank_idx)->HSxPGISTS == enable) { in sys_mm_drv_hpsram_pwr()
190 /* Make sure VA is page-aligned */ in sys_mm_drv_map_page()
192 ret = -EINVAL; in sys_mm_drv_map_page()
199 ret = -EINVAL; in sys_mm_drv_map_page()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dflash.h2 * Copyright (c) 2017-2024 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
36 size_t pages_count; /* count of pages sequence of the same size */
85 #define FLASH_ERASE_CAPS_UNSET (int)-1
110 return (p->caps.no_explicit_erase) ? 0 : FLASH_ERASE_C_EXPLICIT; in flash_params_get_erase_cap()
135 * the driver, with the driver responsible for ensuring the "write-protect"
136 * after the operation completes (successfully or not) matches the write-protect
146 * the driver, with the driver responsible for ensuring the "erase-protect"
147 * after the operation completes (successfully or not) matches the erase-protect
150 * The callback is optional for RAM non-volatile devices, which do not
[all …]
/Zephyr-latest/tests/drivers/flash/common/src/
Dmain.c2 * Copyright (c) 2020-2024 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
22 * fixed-partition nodes.
64 TC_PRINT("Test will run on device %s\n", flash_dev->name); in flash_driver_before()
71 erase_value = fparams->erase_value; in flash_driver_before()
80 page_info.size = TEST_AREA_MAX - TEST_AREA_OFFSET; in flash_driver_before()
116 /* Erase a nb of pages aligned to the EXPECTED_SIZE */ in flash_driver_before()
119 ((EXPECTED_SIZE + page_info.size - 1) in flash_driver_before()
136 /* Erase a nb of pages aligned to the EXPECTED_SIZE */ in ZTEST()
139 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/mspi/flash/src/
Dmain.c3 * SPDX-License-Identifier: Apache-2.0
61 pui8TxPtr[i] = (0xff - i) & 0xFF; in prepare_test_pattern()
78 size_t min_page_size = -1; in test_multi_sector_rw()
82 TC_PRINT("Perform test on multiple consequtive sectors on %s\n", flash_dev->name); in test_multi_sector_rw()
86 const struct flash_driver_api *api = flash_dev->api; in test_multi_sector_rw()
88 api->page_layout(flash_dev, &layout, &layout_size); in test_multi_sector_rw()
91 TC_PRINT("----pages-------size----\n"); in test_multi_sector_rw()
93 TC_PRINT("%2d: 0x%-8X 0x%-8x\n", i, layout[i].pages_count, in test_multi_sector_rw()
106 MIN(min_page_size, MSPI_FLASH_TEST_SIZE - i)); in test_multi_sector_rw()
164 int count = 0; in test_multi_sector_rw() local
[all …]
/Zephyr-latest/drivers/tee/optee/
Doptee.c4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/arch/arm64/arm-smccc.h>
29 * OP-TEE specific capabilities
115 return -EINVAL; in param_to_msg_param()
121 return -EINVAL; in param_to_msg_param()
124 switch (tp->attr) { in param_to_msg_param()
126 mtp->attr = OPTEE_MSG_ATTR_TYPE_NONE; in param_to_msg_param()
127 memset(&mtp->u, 0, sizeof(mtp->u)); in param_to_msg_param()
132 mtp->attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT + tp->attr - in param_to_msg_param()
134 mtp->u.value.a = tp->a; in param_to_msg_param()
[all …]
/Zephyr-latest/include/zephyr/storage/
Dflash_map.h2 * Copyright (c) 2017-2024 Nordic Semiconductor ASA
6 * SPDX-License-Identifier: Apache-2.0
51 * This structure represents a fixed-size partition on a flash device.
87 * This is used to pass data to be used to check flash integrity using SHA-256
120 * @return 0 on success, -EACCES if the flash_map is not available ,
121 * -ENOENT if @p ID is unknown, -ENODEV if there is no driver attached
154 return (fa != NULL && device_is_ready(fa->fa_dev)); in flash_area_device_is_ready()
161 * request. API has the same limitation regard read-block alignment and size
178 * request. API has the same limitation regard write-block alignment and size
195 * request. API has the same limitation regard erase-block alignment and size
[all …]
/Zephyr-latest/arch/arm/core/mmu/
Darm_mmu.c4 * This implementation supports the Short-descriptor translation
14 * ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition,
18 * SPDX-License-Identifier: Apache-2.0
25 #include <zephyr/linker/linker-defs.h>
39 /* Level 1 page table: always required, must be 16k-aligned */
58 /* Available L2 tables count & next free index for an L2 table request */
70 * cacheable, read / write and non-executable
95 /* Mark rodata segment cacheable, read only and non-executable */
104 /* Mark nocache segment read / write and non-executable */
119 * is performed whenever the MMU is (re-)enabled or changes to the
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_gecko.c4 * SPDX-License-Identifier: Apache-2.0
41 #define GET_GECKO_GPIO_INDEX(id) (DT_INST_REG_ADDR(id) - DT_REG_ADDR(DT_NODELABEL(gpioa))) \
48 * See https://www.silabs.com/documents/public/reference-manuals/EFM32WG-RM.pdf
49 * pages 972 and 982.
65 #define GECKO_GPIO_MODEH(pin, mode) (mode << ((pin - 8) * 4))
77 size_t count; member
99 data->ports[data->count++] = dev; in gpio_gecko_add_port()
106 const struct gpio_gecko_config *config = dev->config; in gpio_gecko_configure()
107 GPIO_Port_TypeDef gpio_index = config->gpio_index; in gpio_gecko_configure()
132 out = 1U; /* pull-up*/ in gpio_gecko_configure()
[all …]
/Zephyr-latest/samples/kernel/metairq_dispatch/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
43 /* A semaphore with an initial count, used to allow only one thread to
62 m.metairq_latency = k_cycle_get_32() - m.timestamp; in metairq_fn()
103 int64_t d = (int32_t) (array[i] - *mean); in calc_stats()
114 * metairq latency for the very first event of 7-8us. Maybe in record_latencies()
115 * it needs to fault in the our code pages in the host? in record_latencies()
117 if (IS_ENABLED(CONFIG_QEMU_TARGET) && m->seq == 0) { in record_latencies()
125 if (m->seq >= MAX_EVENTS) { in record_latencies()
129 int t = m->target; in record_latencies()
136 stats.mirq_latencies[atomic_inc(&stats.num_mirq)] = m->metairq_latency; in record_latencies()
[all …]
/Zephyr-latest/drivers/interrupt_controller/
Dintc_gicv3_its.c4 * SPDX-License-Identifier: Apache-2.0
22 * Implementation is designed for the PCIe MSI/MSI-X use-case in mind.
63 unsigned int cmp = 1 << (bits - 1); in fls_z()
70 bits--; in fls_z()
81 unsigned int count = WAIT_QUIESCENT; in its_force_quiescent() local
82 uint32_t reg = sys_read32(data->base + GITS_CTLR); in its_force_quiescent()
87 sys_write32(reg, data->base + GITS_CTLR); in its_force_quiescent()
95 count--; in its_force_quiescent()
96 if (!count) { in its_force_quiescent()
97 return -EBUSY; in its_force_quiescent()
[all …]
/Zephyr-latest/arch/x86/
Dgen_mmu.py5 # SPDX-License-Identifier: Apache-2.0
13 at early boot. These pages will have an identity mapping of the kernel
23 - By default, the Present, Write, and Execute Disable bits are
25 - The __text_region region will have Present and User bits set
26 - The __rodata_region region will have Present, User, and Execute
28 - On x86_64, the _locore region will have Present set and
34 - The double-mapping is used to transition the
38 - The mapping is always double-mapped at the top-level paging structure
40 with respect to the scope of top-level paging structure entries.
41 This allows the same second-level paging structure(s) to be used for
[all …]
/Zephyr-latest/doc/_scripts/
Dgen_devicetree_rest.py2 # SPDX-License-Identifier: Apache-2.0
26 GENERIC_OR_VENDOR_INDEPENDENT = 'Generic or vendor-independent'
31 # Base properties that have documentation in 'dt-important-props'.
59 # Load the vendor-prefixes.txt file. Return a dict mapping 'vnd'
65 # vnd A stand-in for a real vendor
67 # Gets split into a key 'vnd' and a value 'A stand-in for a real
77 logger.info('found %d vendor prefixes in %s', len(vnd2vendor) - 1,
92 # - The 'None' key maps to bindings with no vendor prefix
93 # in their compatibles, like 'gpio-keys'. This is the first key.
94 # - The (UNKNOWN_VENDOR,) key maps to bindings whose compatible
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
113 bool "Mesh-specific workqueue"
116 mesh-specific workqueue. This will ensure that messages are always sent.
117 The application needs to ensure the mesh-specific workqueue size is large
130 CONFIG_BT_BUF_CMD_TX_COUNT, the host returns -ENOBUFS immediately
237 bool "PB-ADV support"
262 int "Link Open and Transaction PDU retransmit count"
271 int "Link Ack and Transaction Ack retransmit count"
279 int "Link Close retransmit count"
299 bool "PB-GATT Server support"
[all …]
/Zephyr-latest/dts/arm/atmel/
Dsam3x.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
8 #include <zephyr/dt-bindings/i2c/i2c.h>
9 #include <zephyr/dt-bindings/clock/atmel_sam_pmc.h>
17 zephyr,flash-controller = &eefc;
21 #address-cells = <1>;
22 #size-cells = <0>;
26 compatible = "arm,cortex-m3";
33 compatible = "atmel,sam-pmc";
36 #clock-cells = <2>;
[all …]

12