Home
last modified time | relevance | path

Searched +full:addr +full:- +full:range (Results 1 – 25 of 195) sorted by relevance

12345678

/Zephyr-latest/include/zephyr/arch/
Dcache.h4 * SPDX-License-Identifier: Apache-2.0
31 * @brief Enable the d-cache
40 * @brief Disable the d-cache
49 * @brief Flush the d-cache
54 * @retval -ENOTSUP If not supported.
55 * @retval -errno Negative errno for other failures.
62 * @brief Invalidate the d-cache
67 * @retval -ENOTSUP If not supported.
68 * @retval -errno Negative errno for other failures.
75 * @brief Flush and Invalidate the d-cache
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dcache.h4 * SPDX-License-Identifier: Apache-2.0
31 * @brief Enable the d-cache
38 * @brief Disable the d-cache
45 * @brief Flush the d-cache
50 * @retval -ENOTSUP If not supported.
51 * @retval -errno Negative errno for other failures.
56 * @brief Invalidate the d-cache
61 * @retval -ENOTSUP If not supported.
62 * @retval -errno Negative errno for other failures.
67 * @brief Flush and Invalidate the d-cache
[all …]
/Zephyr-latest/arch/arm/include/cortex_m/
Dcmse.h4 * SPDX-License-Identifier: Apache-2.0
11 * CMSE API for Cortex-M23/M33 CPUs.
40 * Return the non-negative MPU region that the address maps to,
41 * or -EINVAL to indicate that an invalid MPU region was retrieved.
45 * - the function is called from privileged mode
46 * - the MPU is implemented and enabled
47 * - the given address matches a single, enabled MPU region
49 * @param addr The address for which the MPU region is requested
51 * @return a valid MPU region number or -EINVAL
53 int arm_cmse_mpu_region_get(uint32_t addr);
[all …]
/Zephyr-latest/include/zephyr/
Dcache.h5 * SPDX-License-Identifier: Apache-2.0
48 * @brief Enable the d-cache
61 * @brief Disable the d-cache
74 * @brief Enable the i-cache
87 * @brief Disable the i-cache
100 * @brief Flush the d-cache
105 * @retval -ENOTSUP If not supported.
106 * @retval -errno Negative errno for other failures.
113 return -ENOTSUP; in sys_cache_data_flush_all()
117 * @brief Flush the i-cache
[all …]
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dsol_pdu_rpl_cli.h4 * SPDX-License-Identifier: Apache-2.0
33 * PDU RPL server.The @c start param represents the start of range that server
34 * has cleared. The @c length param represents length of range cleared by server.
37 * @param addr Address of the sender.
38 * @param range_start Range start value.
39 * @param range_length Range length value.
41 void (*srpl_status)(struct bt_mesh_sol_pdu_rpl_cli *cli, uint16_t addr,
53 /** @brief Remove entries from Solicitation PDU RPL of addresses in given range.
63 * @param range_start Start of Unicast address range.
64 * @param range_len Length of Unicast address range. Valid values are 0x00 and 0x02
[all …]
/Zephyr-latest/include/zephyr/arch/x86/
Dintel_vtd.h3 * SPDX-License-Identifier: Apache-2.0
53 #define VTD_MTRR_FIX64K_00000_REG 0x120 /* Fixed-range MTRR for 64K_00000 */
54 #define VTD_MTRR_FIX16K_80000_REG 0x128 /* Fixed-range MTRR for 16K_80000 */
55 #define VTD_MTRR_FIX16K_A0000_REG 0x130 /* Fixed-range MTRR for 16K_A0000 */
56 #define VTD_MTRR_FIX4K_C0000_REG 0x138 /* Fixed-range MTRR for 4K_C0000 */
57 #define VTD_MTRR_FIX4K_C8000_REG 0x140 /* Fixed-range MTRR for 4K_C8000 */
58 #define VTD_MTRR_FIX4K_D0000_REG 0x148 /* Fixed-range MTRR for 4K_D0000 */
59 #define VTD_MTRR_FIX4K_D8000_REG 0x150 /* Fixed-range MTRR for 4K_D8000 */
60 #define VTD_MTRR_FIX4K_E0000_REG 0x158 /* Fixed-range MTRR for 4K_E0000 */
61 #define VTD_MTRR_FIX4K_E8000_REG 0x160 /* Fixed-range MTRR for 4K_E8000 */
[all …]
/Zephyr-latest/soc/mediatek/mt8xxx/
Dgen_img.py3 # SPDX-License-Identifier: Apache-2.0
31 # Returns the offset of a segment within the sram region, or -1 if it
38 def sram_off(addr): argument
40 if addr < 0x40000000 or addr >= 0x50000000:
41 return -1
42 block = addr & ~0xFFFFF
46 off = addr - sram_block
52 # or 0x90000000 with no more than 16M of range
53 def dram_off(addr): argument
54 if (addr >> 28 not in [6, 9]) or (addr & 0x0F000000 != 0):
[all …]
Dmtk_adsp_load.py3 # SPDX-License-Identifier: Apache-2.0
27 # specific SOC anyway), so it really doesn't matter and we hard-code
30 # (For future reference: in /proc/device-tree on current ChromeOS
33 # that device node, and the two dram areas are "memory-region"
35 # nodes under "/reserved-memory").
46 compat = readfile(glob("/proc/device-tree/**/adsp@*/compatible", recursive=True)[0], "r")
47 m = re.match(r'.*(mt\d{4})-dsp', compat)
54 # also refers by reference to reserved-memory regions of system
58 # (addr, size) tuple.
60 path = glob("/proc/device-tree/**/adsp@*/", recursive=True)[0]
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dsol_pdu_rpl_cli.c4 * SPDX-License-Identifier: Apache-2.0
30 uint16_t primary, range; in handle_status() local
35 if (buf->len > 3) { in handle_status()
36 return -EMSGSIZE; in handle_status()
39 range = net_buf_simple_pull_le16(buf); in handle_status()
40 primary = range >> 1; in handle_status()
42 return -EINVAL; in handle_status()
45 if (range & BIT(0)) { in handle_status()
46 if (buf->len == 0) { in handle_status()
47 return -EMSGSIZE; in handle_status()
[all …]
Dcdb.c4 * SPDX-License-Identifier: Apache-2.0
42 uint16_t addr; member
86 [0 ... (CONFIG_BT_MESH_CDB_NODE_COUNT - 1)] = {
87 .addr = BT_MESH_ADDR_UNASSIGNED,
91 [0 ... (CONFIG_BT_MESH_CDB_SUBNET_COUNT - 1)] = {
96 [0 ... (CONFIG_BT_MESH_CDB_APP_KEY_COUNT - 1)] = {
104 * Check if an address range from addr_start for addr_start + num_elem - 1 is
106 * available after the conflicting range and -EAGAIN will be returned.
110 uint16_t addr_end = addr_start + num_elem - 1; in addr_is_free()
117 return -EINVAL; in addr_is_free()
[all …]
/Zephyr-latest/samples/drivers/lcd_cyclonev_socdk/src/
Dcommands.h2 * SPDX-License-Identifier: Apache-2.0
6 * Reference: https://datasheetspdf.com/pdf-file/746090/Newhaven/NHD-0216K3Z-NSW-BBW/1
12 #define SET_CURSOR 0x45 /*1 byte param in range (0x00 - 0x4F) 2x16 display */
22 #define SET_CONTRAST 0x52 /* 1 byte param in range (1 - 50) 40 default */
23 #define SET_BACKLIGHT 0x53 /* 1 byte param in range (1 - 8) 1 default */
25 #define LD_CUSTOM_CHAR 0x54 /* 9 byte param 1st param: 1-byte */
27 /* Syntax prefix LD_CUSTOM_CHAR [addr] [d0 …d7]
30 * [addr] 1 byte Custom character address, 0 – 7
47 #define CHGE_RS232_BAUD 0x61 /* 1 byte param in range (1 - 8) */
62 #define CHGE_I2C_ADDR 0X62 /* 1 byte param in range (0x00 - 0xFE), LSB = 0 */
/Zephyr-latest/drivers/gpio/
Dgpio_altera_pio.c4 * SPDX-License-Identifier: Apache-2.0
42 const struct gpio_altera_config *cfg = dev->config; in gpio_pin_direction()
43 const int direction = cfg->direction; in gpio_pin_direction()
44 uintptr_t reg_base = cfg->reg_base; in gpio_pin_direction()
45 uint32_t addr; in gpio_pin_direction() local
49 return -EINVAL; in gpio_pin_direction()
54 return -EINVAL; in gpio_pin_direction()
57 addr = reg_base + ALTERA_AVALON_PIO_DIRECTION_OFFSET; in gpio_pin_direction()
59 pin_direction = sys_read32(addr); in gpio_pin_direction()
71 const struct gpio_altera_config *cfg = dev->config; in gpio_altera_configure()
[all …]
/Zephyr-latest/drivers/flash/
Dsoc_flash_numaker.c2 * SPDX-License-Identifier: Apache-2.0
37 uint32_t aprom_size = (FMC_APROM_END - FMC_APROM_BASE); in flash_numaker_is_range_valid()
45 if (offset >= aprom_size || len > aprom_size || (aprom_size - offset) < len) { in flash_numaker_is_range_valid()
59 * return -EINVAL erroneous code
64 struct flash_numaker_data *dev_data = dev->data; in flash_numaker_erase()
68 uint32_t addr = dev_data->flash_block_base + offset; in flash_numaker_erase() local
75 /* Validate range */ in flash_numaker_erase()
77 return -EINVAL; in flash_numaker_erase()
81 if (((addr % FMC_FLASH_PAGE_SIZE) != 0) || ((len % FMC_FLASH_PAGE_SIZE) != 0)) { in flash_numaker_erase()
82 return -EINVAL; in flash_numaker_erase()
[all …]
Dsoc_flash_numaker_rmc.c2 * SPDX-License-Identifier: Apache-2.0
40 uint32_t aprom_size = RMC_APROM_END - RMC_APROM_BASE; in flash_numaker_is_range_valid()
48 if (offset >= aprom_size || len > aprom_size || (aprom_size - offset) < len) { in flash_numaker_is_range_valid()
62 * return -EINVAL erroneous code
67 struct flash_numaker_data *dev_data = dev->data; in flash_numaker_erase()
71 uint32_t addr = dev_data->flash_block_base + offset; in flash_numaker_erase() local
78 /* Validate range */ in flash_numaker_erase()
80 return -EINVAL; in flash_numaker_erase()
84 if (((addr % RMC_FLASH_PAGE_SIZE) != 0) || ((len % RMC_FLASH_PAGE_SIZE) != 0)) { in flash_numaker_erase()
85 return -EINVAL; in flash_numaker_erase()
[all …]
Dflash_rpi_pico.c5 * SPDX-License-Identifier: Apache-2.0
44 * github.com/raspberrypi/pico-bootrom/blob/master/bootrom/program_flash_generic.c
46 * github.com/raspberrypi/pico-sdk/blob/master/src/rp2_common/hardware_flash/flash.c
100 const uint max_in_flight = 16 - 2; in __no_inline_not_in_flash_func()
109 tx_level = ssi_hw->txflr; in __no_inline_not_in_flash_func()
110 rx_level = ssi_hw->rxflr; in __no_inline_not_in_flash_func()
113 ssi->dr0 = (uint32_t) (tx ? *tx++ : 0); in __no_inline_not_in_flash_func()
114 --tx_count; in __no_inline_not_in_flash_func()
118 rxbyte = ssi->dr0; in __no_inline_not_in_flash_func()
121 --rx_skip; in __no_inline_not_in_flash_func()
[all …]
/Zephyr-latest/arch/x86/include/
Dkernel_arch_func.h3 * SPDX-License-Identifier: Apache-2.0
30 ret = arch_curr_cpu()->nested != 0; in arch_is_in_isr()
43 /* Setup ultra-minimal serial driver for printk() */
65 * @brief Check if a memory address range falls within the stack
67 * Given a memory address range, ensure that it falls within the bounds
70 * @param addr Starting address
71 * @param size Size of the region, or 0 if we just want to see if addr is
74 * @return true if addr/size region is not within the thread stack
76 bool z_x86_check_stack_bounds(uintptr_t addr, size_t size, uint16_t cs);
96 * Find a free IRQ vector at the specified priority, or return -1 if none left.
[all …]
/Zephyr-latest/drivers/usb/device/
Dusb_dc_sam0.c4 * SPDX-License-Identifier: Apache-2.0
63 uint8_t addr; member
80 UsbDevice *regs = &REGS->DEVICE; in usb_sam0_ep_isr()
81 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep]; in usb_sam0_ep_isr()
82 uint32_t intflag = endpoint->EPINTFLAG.reg; in usb_sam0_ep_isr()
84 endpoint->EPINTFLAG.reg = intflag; in usb_sam0_ep_isr()
88 data->ep_cb[0][ep](ep, USB_DC_EP_SETUP); in usb_sam0_ep_isr()
93 data->ep_cb[0][ep](ep, USB_DC_EP_DATA_OUT); in usb_sam0_ep_isr()
98 data->ep_cb[1][ep](ep | USB_SAM0_IN_EP, USB_DC_EP_DATA_IN); in usb_sam0_ep_isr()
100 if (data->addr != 0U) { in usb_sam0_ep_isr()
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_lan865x_priv.h4 * SPDX-License-Identifier: Apache-2.0
45 bool enable : 1; /* 1 - PLCA enable, 0 - CSMA/CD enable */
46 uint8_t node_id /* PLCA node id range: 0 to 254 */;
47 uint8_t node_count; /* PLCA node count range: 1 to 255 */
48 uint8_t burst_count; /* PLCA burst count range: 0x0 to 0xFF */
63 bool tx_cut_through_mode; /* 1 - tx cut through, 0 - Store and forward */
64 bool rx_cut_through_mode; /* 1 - rx cut through, 0 - Store and forward */
85 uint32_t addr, uint16_t val) in lan865x_update_dev_cfg_array() argument
88 if (cfg[i].address == addr) { in lan865x_update_dev_cfg_array()
/Zephyr-latest/arch/xtensa/include/
Dxtensa_stack.h4 * SPDX-License-Identifier: Apache-2.0
25 * Check if the memory region [@a addr, (@a addr + @a sz)) is within
27 * - Interrupt stack if servicing interrupts.
28 * - Privileged stack if in kernel mode doing syscalls.
29 * - Thread stack otherwise.
31 * @note When @ps == UINT32_MAX, it checks the whole range of stack
34 * @param addr Beginning address of memory region to check.
41 bool xtensa_is_outside_stack_bounds(uintptr_t addr, size_t sz, uint32_t ps);
/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/drivers/cache/
Dcache_aspeed.c4 * SPDX-License-Identifier: Apache-2.0
14 * 0: no-cache
28 #define CACHED_SRAM_END (CACHED_SRAM_ADDR + CACHED_SRAM_SIZE - 1)
33 #define DCACHE_INVALID(addr) (BIT(31) | ((addr & GENMASK(10, 0)) << 16)) argument
34 #define ICACHE_INVALID(addr) (BIT(15) | ((addr & GENMASK(10, 0)) << 0)) argument
44 #define CACHE_ALIGNED_ADDR(addr) \ argument
45 ((addr >> CACHE_LINE_SIZE_LOG2) << CACHE_LINE_SIZE_LOG2)
55 /* set all cache areas to no-cache by default */ in aspeed_cache_init()
59 max_bit = 8 * sizeof(uint32_t) - 1; in aspeed_cache_init()
70 * @param [IN] addr - start address to be invalidated
[all …]
/Zephyr-latest/arch/arm/core/cortex_a_r/
Dcache.c4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Cortex-A/R AArch32 L1-cache maintenance operations.
11 * This module implement the cache API for Cortex-A/R AArch32 cores using CMSIS.
12 * Only L1-cache maintenance operations is supported.
29 * @brief Get the smallest D-cache line size.
31 * Get the smallest D-cache line size of all the data and unified caches that
99 uintptr_t addr = (uintptr_t)start_addr; in arch_dcache_flush_range() local
100 uintptr_t end_addr = addr + size; in arch_dcache_flush_range()
104 addr &= ~(line_size - 1); in arch_dcache_flush_range()
106 while (addr < end_addr) { in arch_dcache_flush_range()
[all …]
/Zephyr-latest/include/zephyr/kernel/
Dmm.h4 * SPDX-License-Identifier: Apache-2.0
36 /** Write-through caching. Used by certain drivers. */
39 /** Full write-back caching. Any RAM mapped wants this. */
48 #define K_MEM_CACHE_MASK (BIT(3) - 1)
55 * Default is read-only, no user, no exec
60 /** Region will have read/write access (and not read-only) */
66 /** Region will be accessible to user mode (normally supervisor-only) */
111 * Such memory is guaranteed to never produce a page fault due to page-outs
112 * or copy-on-write once the mapping call has returned. Physical page frames
113 * will be pre-fetched as necessary and pinned.
[all …]
/Zephyr-latest/scripts/build/
Dgen_kobject_list.py5 # SPDX-License-Identifier: Apache-2.0
14 - That the memory address points to a kernel object
16 - The kernel object is of the expected type for the API being invoked
18 - The kernel object is of the expected initialization state
20 - The calling thread has sufficient permissions on the object
33 - A gperf script to generate the hash table mapping kernel object memory
35 object type, initialization state, and any object-specific data.
37 - A header file containing generated macros for validating driver instances
40 - A code fragment included by kernel.h with one enum constant for
43 - The inner cases of a switch/case C statement, included by
[all …]
/Zephyr-latest/arch/xtensa/core/
Dmpu.c4 * SPDX-License-Identifier: Apache-2.0
16 #include <zephyr/linker/linker-defs.h>
21 #include <xtensa/config/core-matmap.h>
22 #include <xtensa/config/core-isa.h>
45 * - Each MPU region is described by TWO entries:
51 * - The last entry is a special case as there is no more "next"
56 * - Current implementation has following limitations:
57 * - All enabled entries are grouped towards the end of the map.
58 * - Except the last entry which can be disabled. This is
62 * - No disabled MPU entries allowed in between.
[all …]

12345678