Home
last modified time | relevance | path

Searched refs:mem_addr_t (Results 1 – 25 of 49) sorted by relevance

12

/Zephyr-Core-3.5.0/include/zephyr/arch/riscv/
Dsys_io.h28 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/
Dbitfield.c47 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/
Dsys_bitops.h24 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 …]
Dsys_io.h23 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/
Dsys_io.h37 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/
Dsys_io.h27 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/
Dsys-io-common.h23 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/
Dpower_domain_intel_adsp.c25 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/
Dpinctrl_imx.c39 (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/
Dintc_gicv3.c23 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 …]
Dintc_ioapic.c228 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()
Dintc_eirq_nxp_s32.c24 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), \
Dintc_loapic.c352 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/
Ddma_pl330.h153 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/
Darch.h155 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/
Ddevmem_service.c39 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/
Dsys_io.h21 typedef uintptr_t mem_addr_t; typedef
/Zephyr-Core-3.5.0/drivers/serial/
Duart_bcm2711.c63 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/
Dspi_oc_simple.h13 ((mem_addr_t) (info->base + \
Dspi_sifive.h20 #define SPI_REG(dev, offset) ((mem_addr_t) (SPI_CFG(dev)->base + (offset)))
/Zephyr-Core-3.5.0/drivers/hwspinlock/
Dsqn_hwspinlock.c27 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/
Duserspace.c280 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/
Devents.c181 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/
Dedac_ibecc.c22 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/
Dpwm_sifive.c21 #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()

12