/Zephyr-Core-3.5.0/include/zephyr/arch/riscv/ |
D | sys_io.h | 28 extern uint8_t z_soc_sys_read8(mem_addr_t addr); 29 extern void z_soc_sys_write8(uint8_t data, mem_addr_t addr); 30 extern uint16_t z_soc_sys_read16(mem_addr_t addr); 31 extern void z_soc_sys_write16(uint16_t data, mem_addr_t addr); 32 extern uint32_t z_soc_sys_read32(mem_addr_t addr); 33 extern void z_soc_sys_write32(uint32_t data, mem_addr_t addr); 34 extern uint64_t z_soc_sys_read64(mem_addr_t addr); 35 extern void z_soc_sys_write64(uint64_t data, mem_addr_t addr); 37 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() 42 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/common/src/ |
D | bitfield.c | 47 sys_set_bit((mem_addr_t)&b1, bit); in ZTEST() 52 zassert_true(sys_test_bit((mem_addr_t)&b1, bit), in ZTEST() 55 sys_clear_bit((mem_addr_t)&b1, bit); in ZTEST() 58 zassert_false(sys_test_bit((mem_addr_t)&b1, bit), in ZTEST() 62 zassert_false(sys_test_and_set_bit((mem_addr_t)&b1, bit), in ZTEST() 68 zassert_true(sys_test_and_set_bit((mem_addr_t)&b1, bit), in ZTEST() 74 zassert_true(sys_test_and_clear_bit((mem_addr_t)&b1, bit), in ZTEST() 79 zassert_false(sys_test_and_clear_bit((mem_addr_t)&b1, bit), in ZTEST() 87 sys_bitfield_set_bit((mem_addr_t)b2, bit); in ZTEST() 91 zassert_true(sys_bitfield_test_bit((mem_addr_t)b2, bit), in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/arch/common/ |
D | sys_bitops.h | 24 static ALWAYS_INLINE void sys_set_bit(mem_addr_t addr, unsigned int bit) in sys_set_bit() 31 static ALWAYS_INLINE void sys_clear_bit(mem_addr_t addr, unsigned int bit) in sys_clear_bit() 38 static ALWAYS_INLINE int sys_test_bit(mem_addr_t addr, unsigned int bit) in sys_test_bit() 45 static ALWAYS_INLINE void sys_set_bits(mem_addr_t addr, unsigned int mask) in sys_set_bits() 52 static ALWAYS_INLINE void sys_clear_bits(mem_addr_t addr, unsigned int mask) in sys_clear_bits() 60 void sys_bitfield_set_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_set_bit() 69 void sys_bitfield_clear_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_clear_bit() 75 int sys_bitfield_test_bit(mem_addr_t addr, unsigned int bit) in sys_bitfield_test_bit() 81 int sys_test_and_set_bit(mem_addr_t addr, unsigned int bit) in sys_test_and_set_bit() 92 int sys_test_and_clear_bit(mem_addr_t addr, unsigned int bit) in sys_test_and_clear_bit() [all …]
|
D | sys_io.h | 23 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() 28 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() 33 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() 38 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() 43 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() 48 static ALWAYS_INLINE void sys_write32(uint32_t data, mem_addr_t addr) in sys_write32() 53 static ALWAYS_INLINE uint64_t sys_read64(mem_addr_t addr) in sys_read64() 58 static ALWAYS_INLINE void sys_write64(uint64_t data, mem_addr_t addr) in sys_write64()
|
/Zephyr-Core-3.5.0/include/zephyr/arch/arm64/ |
D | sys_io.h | 37 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() 47 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() 53 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() 63 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() 69 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() 79 static ALWAYS_INLINE void sys_write32(uint32_t data, mem_addr_t addr) in sys_write32() 85 static ALWAYS_INLINE uint64_t sys_read64(mem_addr_t addr) in sys_read64() 95 static ALWAYS_INLINE void sys_write64(uint64_t data, mem_addr_t addr) in sys_write64()
|
/Zephyr-Core-3.5.0/include/zephyr/arch/arm/cortex_a_r/ |
D | sys_io.h | 27 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() 37 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() 43 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() 53 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() 59 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() 69 static ALWAYS_INLINE void sys_write32(uint32_t data, mem_addr_t addr) in sys_write32() 75 static ALWAYS_INLINE uint64_t sys_read64(mem_addr_t addr) in sys_read64()
|
/Zephyr-Core-3.5.0/include/zephyr/arch/arc/ |
D | sys-io-common.h | 23 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() 34 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() 41 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() 52 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() 59 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() 70 static ALWAYS_INLINE void sys_write32(uint32_t data, mem_addr_t addr) in sys_write32()
|
/Zephyr-Core-3.5.0/drivers/power_domain/ |
D | power_domain_intel_adsp.c | 25 sys_write16(sys_read16((mem_addr_t)&ACE_DfPMCCU.dfpwrctl) | SPA_bit_mask, in pd_intel_adsp_set_power_enable() 26 (mem_addr_t)&ACE_DfPMCCU.dfpwrctl); in pd_intel_adsp_set_power_enable() 28 if (!WAIT_FOR(sys_read16((mem_addr_t)&ACE_DfPMCCU.dfpwrsts) & BIT(bits->CPA_bit), in pd_intel_adsp_set_power_enable() 33 sys_write16(sys_read16((mem_addr_t)&ACE_DfPMCCU.dfpwrctl) & ~(SPA_bit_mask), in pd_intel_adsp_set_power_enable() 34 (mem_addr_t)&ACE_DfPMCCU.dfpwrctl); in pd_intel_adsp_set_power_enable()
|
/Zephyr-Core-3.5.0/drivers/pinctrl/ |
D | pinctrl_imx.c | 39 (mem_addr_t)mux_register); in pinctrl_configure_pins() 42 (mem_addr_t)input_register); in pinctrl_configure_pins() 46 (mem_addr_t)config_register); in pinctrl_configure_pins() 52 (mem_addr_t)mux_register); in pinctrl_configure_pins() 55 (mem_addr_t)input_register); in pinctrl_configure_pins()
|
/Zephyr-Core-3.5.0/drivers/interrupt_controller/ |
D | intc_gicv3.c | 23 mem_addr_t gic_rdists[CONFIG_MP_MAX_NUM_CPUS]; 47 static inline mem_addr_t gic_get_rdist(void) in gic_get_rdist() 59 mem_addr_t base; in gic_wait_rwp() 115 mem_addr_t addr = IROUTER(GET_DIST_BASE(intid), intid); in arm_gic_write_irouter() 139 mem_addr_t base = GET_DIST_BASE(intid); in arm_gic_irq_set_priority() 298 static void gicv3_rdist_enable(mem_addr_t rdist) in gicv3_rdist_enable() 325 static void gicv3_rdist_setup_lpis(mem_addr_t rdist) in gicv3_rdist_setup_lpis() 380 mem_addr_t base = gic_get_rdist() + GICR_SGI_BASE_OFF; in gicv3_cpuif_init() 439 mem_addr_t base = GIC_DIST_BASE; in gicv3_dist_init() 544 static inline uint64_t arm_gic_get_typer(mem_addr_t addr) in arm_gic_get_typer() [all …]
|
D | intc_ioapic.c | 228 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 233 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 238 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 247 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 257 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags() 262 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags() 267 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags() 272 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags()
|
D | intc_eirq_nxp_s32.c | 24 mem_addr_t disr0; 25 mem_addr_t direr0; 204 .disr0 = (mem_addr_t)DT_REG_ADDR_BY_NAME(EIRQ_NXP_S32_NODE(n), disr0), \ 205 .direr0 = (mem_addr_t)DT_REG_ADDR_BY_NAME(EIRQ_NXP_S32_NODE(n), direr0), \
|
D | intc_loapic.c | 352 sys_bitfield_set_bit((mem_addr_t)loapic_suspend_buf, in loapic_suspend() 381 if (sys_bitfield_test_bit((mem_addr_t) loapic_suspend_buf, in loapic_resume()
|
/Zephyr-Core-3.5.0/drivers/dma/ |
D | dma_pl330.h | 153 mem_addr_t dma_exec_addr; 162 mem_addr_t mcode_base; 163 mem_addr_t reg_base; 165 mem_addr_t control_reg_base;
|
/Zephyr-Core-3.5.0/include/zephyr/arch/x86/ |
D | arch.h | 155 static ALWAYS_INLINE void sys_set_bit(mem_addr_t addr, unsigned int bit) in sys_set_bit() 163 static ALWAYS_INLINE void sys_clear_bit(mem_addr_t addr, unsigned int bit) in sys_clear_bit() 170 static ALWAYS_INLINE int sys_test_bit(mem_addr_t addr, unsigned int bit) in sys_test_bit() 182 static ALWAYS_INLINE int sys_test_and_set_bit(mem_addr_t addr, in sys_test_and_set_bit() 195 static ALWAYS_INLINE int sys_test_and_clear_bit(mem_addr_t addr, in sys_test_and_clear_bit()
|
/Zephyr-Core-3.5.0/subsys/shell/modules/ |
D | devmem_service.c | 39 static int memory_dump(const struct shell *sh, mem_addr_t phys_addr, size_t size, uint8_t width) in memory_dump() 106 mem_addr_t addr = -1; in cmd_dump() 112 addr = (mem_addr_t)strtoul(optarg, NULL, 16); in cmd_dump() 258 static int memory_read(const struct shell *sh, mem_addr_t addr, uint8_t width) in memory_read() 286 static int memory_write(const struct shell *sh, mem_addr_t addr, uint8_t width, uint64_t value) in memory_write() 312 mem_addr_t phys_addr, addr; in cmd_devmem()
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | sys_io.h | 21 typedef uintptr_t mem_addr_t; typedef
|
/Zephyr-Core-3.5.0/drivers/serial/ |
D | uart_bcm2711.c | 63 mem_addr_t uart_addr; 70 static bool bcm2711_mu_lowlevel_can_getc(mem_addr_t base) in bcm2711_mu_lowlevel_can_getc() 75 static bool bcm2711_mu_lowlevel_can_putc(mem_addr_t base) in bcm2711_mu_lowlevel_can_putc() 80 static void bcm2711_mu_lowlevel_putc(mem_addr_t base, uint8_t ch) in bcm2711_mu_lowlevel_putc() 90 static void bcm2711_mu_lowlevel_init(mem_addr_t base, bool skip_baudrate_config, in bcm2711_mu_lowlevel_init()
|
/Zephyr-Core-3.5.0/drivers/spi/ |
D | spi_oc_simple.h | 13 ((mem_addr_t) (info->base + \
|
D | spi_sifive.h | 20 #define SPI_REG(dev, offset) ((mem_addr_t) (SPI_CFG(dev)->base + (offset)))
|
/Zephyr-Core-3.5.0/drivers/hwspinlock/ |
D | sqn_hwspinlock.c | 27 static inline mem_addr_t get_lock_addr(const struct device *dev, uint32_t id) in get_lock_addr() 29 return (mem_addr_t)(DEVICE_MMIO_GET(dev) + id * sizeof(uint32_t)); in get_lock_addr()
|
/Zephyr-Core-3.5.0/kernel/ |
D | userspace.c | 280 sys_bitfield_clear_bit((mem_addr_t)_thread_idx_map, in thread_idx_alloc() 311 sys_bitfield_set_bit((mem_addr_t)_thread_idx_map, tidx); in thread_idx_free() 532 sys_bitfield_clear_bit((mem_addr_t)&ko->perms, index); in unref_check() 586 if (sys_bitfield_test_bit((mem_addr_t)&ko->perms, ctx->parent_id) && in wordlist_cb() 588 sys_bitfield_set_bit((mem_addr_t)&ko->perms, ctx->child_id); in wordlist_cb() 610 sys_bitfield_set_bit((mem_addr_t)&ko->perms, index); in z_thread_perms_set() 619 sys_bitfield_clear_bit((mem_addr_t)&ko->perms, index); in z_thread_perms_clear() 650 return sys_bitfield_test_bit((mem_addr_t)&ko->perms, index); in thread_perms_test()
|
/Zephyr-Core-3.5.0/drivers/xen/ |
D | events.c | 181 sys_bitfield_set_bit((mem_addr_t) s->evtchn_mask, port); in mask_event_channel() 194 sys_bitfield_clear_bit((mem_addr_t) s->evtchn_mask, port); in unmask_event_channel() 203 sys_bitfield_clear_bit((mem_addr_t) s->evtchn_pending, port); in clear_event_channel()
|
/Zephyr-Core-3.5.0/drivers/edac/ |
D | edac_ibecc.c | 22 mem_addr_t mchbar; 35 mem_addr_t reg_addr = data->mchbar + reg; in ibecc_write_reg64() 43 mem_addr_t reg_addr = data->mchbar + reg; in ibecc_read_reg64() 53 mem_addr_t reg_addr = data->mchbar + reg; in ibecc_write_reg32()
|
/Zephyr-Core-3.5.0/drivers/pwm/ |
D | pwm_sifive.c | 21 #define PWM_REG(z_config, _offset) ((mem_addr_t) ((z_config)->base + _offset)) 62 static inline void sys_set_mask(mem_addr_t addr, uint32_t mask, uint32_t value) in sys_set_mask()
|