/Zephyr-Core-3.7.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.7.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.7.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.7.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.7.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.7.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() 51 pin_ctrl_flags, (mem_addr_t)mux_register); in pinctrl_configure_pins() 54 (mem_addr_t)mux_register); in pinctrl_configure_pins() 57 sys_write32(pin_ctrl_flags, (mem_addr_t)config_register); in pinctrl_configure_pins() 62 sys_write32(IOMUXC_PSMI_SSS(input_daisy), (mem_addr_t)input_register); in pinctrl_configure_pins() 68 (mem_addr_t)mux_register); in pinctrl_configure_pins() 71 (mem_addr_t)input_register); in pinctrl_configure_pins()
|
D | pinctrl_nxp_s32.c | 26 static mem_addr_t siul2_bases[] = { 33 mem_addr_t base; in pinctrl_configure_pin()
|
/Zephyr-Core-3.7.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.7.0/drivers/usb/udc/ |
D | udc_dwc2.c | 59 #define UDC_DWC2_EP_FIFO(base, idx) ((mem_addr_t)base + 0x1000 * (idx + 1)) 124 static mem_addr_t dwc2_get_dxepctl_reg(const struct device *dev, const uint8_t ep) in dwc2_get_dxepctl_reg() 130 return (mem_addr_t)&base->out_ep[ep_idx].doepctl; in dwc2_get_dxepctl_reg() 132 return (mem_addr_t)&base->in_ep[ep_idx].diepctl; in dwc2_get_dxepctl_reg() 140 mem_addr_t reg = (mem_addr_t)&base->in_ep[idx].dtxfsts; in dwc2_ftx_avail() 173 mem_addr_t grstctl_reg = (mem_addr_t)&base->grstctl; in dwc2_flush_rx_fifo() 183 mem_addr_t grstctl_reg = (mem_addr_t)&base->grstctl; in dwc2_flush_tx_fifo() 185 mem_addr_t diepctl_reg = (mem_addr_t)&base->in_ep[idx].diepctl; in dwc2_flush_tx_fifo() 203 dieptxf = sys_read32((mem_addr_t)&base->dieptxf[f_idx]); in dwc2_get_txfdep() 214 dieptxf = sys_read32((mem_addr_t)&base->dieptxf[f_idx]); in dwc2_get_txfaddr() [all …]
|
D | udc_dwc2_vendor_quirks.h | 66 mem_addr_t ggpio_reg = (mem_addr_t)&config->base->ggpio; in stm32f4_fsotg_enable_phy() 76 mem_addr_t ggpio_reg = (mem_addr_t)&config->base->ggpio; in stm32f4_fsotg_disable_phy()
|
/Zephyr-Core-3.7.0/drivers/power_domain/ |
D | power_domain_intel_adsp.c | 31 sys_write16(sys_read16((mem_addr_t)ACE_PWRCTL) | SPA_bit_mask, in pd_intel_adsp_set_power_enable() 32 (mem_addr_t)ACE_PWRCTL); in pd_intel_adsp_set_power_enable() 34 if (!WAIT_FOR(sys_read16((mem_addr_t)ACE_PWRSTS) & BIT(bits->CPA_bit), in pd_intel_adsp_set_power_enable() 50 sys_write16(sys_read16((mem_addr_t)ACE_PWRCTL) & ~(SPA_bit_mask), in pd_intel_adsp_set_power_enable() 51 (mem_addr_t)ACE_PWRCTL); in pd_intel_adsp_set_power_enable()
|
/Zephyr-Core-3.7.0/drivers/gpio/ |
D | gpio_iproc.c | 33 mem_addr_t base; 49 mem_addr_t base = cfg->base; in gpio_iproc_configure() 66 mem_addr_t base = cfg->base; in gpio_iproc_port_get_raw() 76 mem_addr_t base = cfg->base; in gpio_iproc_port_set_masked_raw() 88 mem_addr_t base = cfg->base; in gpio_iproc_port_set_bits_raw() 99 mem_addr_t base = cfg->base; in gpio_iproc_port_clear_bits_raw() 113 mem_addr_t base = cfg->base; in gpio_iproc_port_toggle_bits() 127 mem_addr_t base = cfg->base; in gpio_iproc_pin_interrupt_configure() 161 mem_addr_t base = cfg->base; in gpio_iproc_isr()
|
D | gpio_smartbond.c | 310 static void gpio_latch_inst(mem_addr_t data_reg, mem_addr_t mode_reg, mem_addr_t latch_reg, in gpio_latch_inst() 323 static void gpio_unlatch_inst(mem_addr_t data_reg, mem_addr_t mode_reg, mem_addr_t latch_reg, in gpio_unlatch_inst() 340 gpio_latch_inst((mem_addr_t)&config->data_regs->data, in gpio_latch() 341 (mem_addr_t)config->mode_regs, in gpio_latch() 342 (mem_addr_t)&config->latch_regs->reset, in gpio_latch() 351 gpio_unlatch_inst((mem_addr_t)&config->data_regs->data, in gpio_unlatch() 352 (mem_addr_t)config->mode_regs, in gpio_unlatch() 353 (mem_addr_t)&config->latch_regs->set, in gpio_unlatch()
|
/Zephyr-Core-3.7.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_plic.c | 72 mem_addr_t prio; 73 mem_addr_t irq_en; 74 mem_addr_t reg; 75 mem_addr_t trig; 116 static inline mem_addr_t get_context_en_addr(const struct device *dev, uint32_t cpu_num) in get_context_en_addr() 135 static inline mem_addr_t get_claim_complete_addr(const struct device *dev) in get_claim_complete_addr() 153 static inline mem_addr_t get_threshold_priority_addr(const struct device *dev, uint32_t cpu_num) in get_threshold_priority_addr() 202 mem_addr_t trig_addr = config->trig + local_irq_to_reg_offset(local_irq); in riscv_plic_irq_trig_val() 214 mem_addr_t en_addr = in plic_irq_enable_set_state() 271 mem_addr_t en_addr = config->irq_en + local_irq_to_reg_offset(local_irq); in riscv_plic_irq_is_enabled() [all …]
|
D | intc_ioapic.c | 220 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 225 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 230 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 239 sys_bitfield_set_bit((mem_addr_t) ioapic_suspend_buf, in store_flags() 249 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags() 254 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags() 259 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags() 264 if (sys_bitfield_test_bit((mem_addr_t) ioapic_suspend_buf, in restore_flags()
|
/Zephyr-Core-3.7.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.7.0/drivers/i2c/ |
D | i2c_bcm_iproc.c | 156 mem_addr_t base; 177 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_enable_disable() 191 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_reset_controller() 210 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_target_set_address() 230 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_target_init() 274 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_check_target_status() 306 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_target_read() 343 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_target_rx() 373 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_target_isr() 461 mem_addr_t base = DEV_BASE(dev); in iproc_i2c_target_register() [all …]
|
/Zephyr-Core-3.7.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.7.0/subsys/shell/modules/ |
D | devmem_service.c | 46 static int memory_dump(const struct shell *sh, mem_addr_t phys_addr, size_t size, uint8_t width) in memory_dump() 105 mem_addr_t addr = -1; in cmd_dump() 114 addr = (mem_addr_t)strtoul(optarg, NULL, 16); in cmd_dump() 260 static int memory_read(const struct shell *sh, mem_addr_t addr, uint8_t width) in memory_read() 288 static int memory_write(const struct shell *sh, mem_addr_t addr, uint8_t width, uint64_t value) in memory_write() 314 mem_addr_t phys_addr, addr; in cmd_devmem()
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | sys_io.h | 21 typedef uintptr_t mem_addr_t; typedef
|
/Zephyr-Core-3.7.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.7.0/drivers/spi/ |
D | spi_oc_simple.h | 13 ((mem_addr_t) (info->base + \
|
/Zephyr-Core-3.7.0/soc/nxp/s32/common/ |
D | mc_rgm.c | 60 #define REG_READ(r) sys_read32((mem_addr_t)(DT_INST_REG_ADDR(0) + (r))) 61 #define REG_WRITE(r, v) sys_write32((v), (mem_addr_t)(DT_INST_REG_ADDR(0) + (r)))
|