Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 163) sorted by relevance

1234567

/optee_os/core/drivers/
A Dtzc400.c73 vaddr_t base; member
218 assert(base); in tzc_init()
219 tzc.base = base; in tzc_init()
267 assert(tzc.base && cfg); in tzc_configure_region()
291 tzc_write_region_base_low(tzc.base, region, addr_low(cfg->base)); in tzc_configure_region()
292 tzc_write_region_base_high(tzc.base, region, addr_high(cfg->base)); in tzc_configure_region()
316 cfg->base = reg_pair_to_64(tzc_read_region_base_high(tzc.base, region), in tzc_get_region_config()
332 assert(tzc.base); in tzc_set_action()
348 assert(tzc.base); in tzc_enable_filters()
375 assert(tzc.base); in tzc_disable_filters()
[all …]
A Dtzc380.c48 vaddr_t base; member
93 void tzc_init(vaddr_t base) in tzc_init() argument
97 assert(base); in tzc_init()
98 tzc.base = base; in tzc_init()
141 vaddr_t base __maybe_unused = core_mmu_get_va(tzc.base, in tzc_fail_dump()
155 vaddr_t base = core_mmu_get_va(tzc.base, MEM_AREA_IO_SEC, in tzc_int_clear() local
158 io_write32(base + INT_CLEAR, 0); in tzc_int_clear()
182 assert(tzc.base); in tzc_configure_region()
204 assert(tzc.base); in tzc_set_action()
216 assert(tzc.base); in tzc_get_action()
[all …]
A Dhi16xx_uart.c71 vaddr_t base = chip_to_base(chip); in hi16xx_uart_flush() local
79 vaddr_t base = chip_to_base(chip); in hi16xx_uart_putc() local
86 io_write32(base + UART_THR, ch & 0xFF); in hi16xx_uart_putc()
91 vaddr_t base = chip_to_base(chip); in hi16xx_uart_have_rx_data() local
98 vaddr_t base = chip_to_base(chip); in hi16xx_uart_getchar() local
102 return io_read32(base + UART_RBR) & 0xFF; in hi16xx_uart_getchar()
118 pd->base.pa = base; in hi16xx_uart_init()
125 io_write32(base + UART_LCR, UART_LCR_DLAB); in hi16xx_uart_init()
128 io_write32(base + UART_DLL, freq_div & 0xFF); in hi16xx_uart_init()
134 io_write32(base + UART_LCR, UART_LCR_DLS8); in hi16xx_uart_init()
[all …]
A Dmvebu_uart.c67 vaddr_t base = chip_to_base(chip); in mvebu_uart_flush() local
82 vaddr_t base = chip_to_base(chip); in mvebu_uart_have_rx_data() local
89 vaddr_t base = chip_to_base(chip); in mvebu_uart_getchar() local
98 vaddr_t base = chip_to_base(chip); in mvebu_uart_putc() local
107 io_write32(base + UART_TX_REG, ch); in mvebu_uart_putc()
121 vaddr_t base; in mvebu_uart_init() local
124 pd->base.pa = pbase; in mvebu_uart_init()
127 base = io_pa_or_va(&pd->base, UART_SIZE); in mvebu_uart_init()
135 io_write32(base + UART_POSSR_REG, 0); in mvebu_uart_init()
138 io_write32(base + UART_CTRL_REG, in mvebu_uart_init()
[all …]
A Dpl011.c87 vaddr_t base = chip_to_base(chip); in pl011_flush() local
103 vaddr_t base = chip_to_base(chip); in pl011_have_rx_data() local
110 vaddr_t base = chip_to_base(chip); in pl011_getchar() local
114 return io_read32(base + UART_DR) & 0xff; in pl011_getchar()
119 vaddr_t base = chip_to_base(chip); in pl011_putc() local
126 io_write32(base + UART_DR, ch); in pl011_putc()
140 vaddr_t base; in pl011_init() local
142 pd->base.pa = pbase; in pl011_init()
145 base = io_pa_or_va(&pd->base, PL011_REG_SIZE); in pl011_init()
148 io_write32(base + UART_RSR_ECR, 0); in pl011_init()
[all …]
A Dcdns_uart.c64 return io_pa_or_va(&pd->base, CDNS_UART_SIZE); in chip_to_base()
69 vaddr_t base = chip_to_base(chip); in cdns_uart_flush() local
71 while (!(io_read32(base + CDNS_UART_CHANNEL_STATUS) & in cdns_uart_flush()
78 vaddr_t base = chip_to_base(chip); in cdns_uart_have_rx_data() local
86 vaddr_t base = chip_to_base(chip); in cdns_uart_getchar() local
90 return io_read32(base + CDNS_UART_FIFO) & 0xff; in cdns_uart_getchar()
95 vaddr_t base = chip_to_base(chip); in cdns_uart_putc() local
98 while (io_read32(base + CDNS_UART_CHANNEL_STATUS) & in cdns_uart_putc()
103 io_write32(base + CDNS_UART_FIFO, ch); in cdns_uart_putc()
122 pd->base.pa = base; in cdns_uart_init()
[all …]
A Damlogic_uart.c30 return io_pa_or_va(&pd->base, AML_UART_SIZE); in chip_to_base()
35 vaddr_t base = chip_to_base(chip); in amlogic_uart_flush() local
37 while (!(io_read32(base + AML_UART_STATUS) & AML_UART_TX_EMPTY)) in amlogic_uart_flush()
43 vaddr_t base = chip_to_base(chip); in amlogic_uart_getchar() local
45 if (io_read32(base + AML_UART_STATUS) & AML_UART_RX_EMPTY) in amlogic_uart_getchar()
48 return io_read32(base + AML_UART_RFIFO) & 0xff; in amlogic_uart_getchar()
53 vaddr_t base = chip_to_base(chip); in amlogic_uart_putc() local
55 while (io_read32(base + AML_UART_STATUS) & AML_UART_TX_FULL) in amlogic_uart_putc()
58 io_write32(base + AML_UART_WFIFO, ch); in amlogic_uart_putc()
67 void amlogic_uart_init(struct amlogic_uart_data *pd, paddr_t base) in amlogic_uart_init() argument
[all …]
A Datmel_uart.c58 return io_pa_or_va(&pd->base, ATMEL_UART_SIZE); in chip_to_base()
63 vaddr_t base = chip_to_base(chip); in atmel_uart_flush() local
65 while (!(io_read32(base + ATMEL_UART_SR) & ATMEL_SR_TXEMPTY)) in atmel_uart_flush()
71 vaddr_t base = chip_to_base(chip); in atmel_uart_getchar() local
73 while (io_read32(base + ATMEL_UART_SR) & ATMEL_SR_RXRDY) in atmel_uart_getchar()
76 return io_read32(base + ATMEL_UART_RHR); in atmel_uart_getchar()
81 vaddr_t base = chip_to_base(chip); in atmel_uart_putc() local
83 while (!(io_read32(base + ATMEL_UART_SR) & ATMEL_SR_TXRDY)) in atmel_uart_putc()
86 io_write32(base + ATMEL_UART_THR, ch); in atmel_uart_putc()
95 void atmel_uart_init(struct atmel_uart_data *pd, paddr_t base) in atmel_uart_init() argument
[all …]
A Dscif.c53 return io_pa_or_va(&pd->base, SCIF_REG_SIZE); in chip_to_base()
58 vaddr_t base = chip_to_base(chip); in scif_uart_flush() local
60 while (!(io_read16(base + SCIF_SCFSR) & SCFSR_TEND)) in scif_uart_flush()
66 vaddr_t base = chip_to_base(chip); in scif_uart_putc() local
69 while ((io_read16(base + SCIF_SCFDR) >> SCFDR_T_SHIFT) >= in scif_uart_putc()
72 io_write8(base + SCIF_SCFTDR, ch); in scif_uart_putc()
73 io_clrbits16(base + SCIF_SCFSR, SCFSR_TEND | SCFSR_TDFE); in scif_uart_putc()
84 vaddr_t base; in scif_uart_init() local
86 pd->base.pa = pbase; in scif_uart_init()
89 base = io_pa_or_va(&pd->base, SCIF_REG_SIZE); in scif_uart_init()
[all …]
A Dsprd_uart.c49 return io_pa_or_va(&pd->base, UART_SIZE); in chip_to_base()
54 vaddr_t base = chip_to_base(chip); in sprd_uart_flush() local
56 while (io_read32(base + UART_STS1) & STS1_TXF_CNT_MASK) in sprd_uart_flush()
62 vaddr_t base = chip_to_base(chip); in sprd_uart_have_rx_data() local
64 return !!(io_read32(base + UART_STS1) & STS1_RXF_CNT_MASK); in sprd_uart_have_rx_data()
69 vaddr_t base = chip_to_base(chip); in sprd_uart_putc() local
72 io_write32(base + UART_TXD, ch); in sprd_uart_putc()
77 vaddr_t base = chip_to_base(chip); in sprd_uart_getchar() local
82 return io_read32(base + UART_RXD) & 0xff; in sprd_uart_getchar()
93 void sprd_uart_init(struct sprd_uart_data *pd, paddr_t base) in sprd_uart_init() argument
[all …]
A Dsp805_wdt.c20 return io_pa_or_va(&pd->base, WDT_SIZE); in chip_to_base()
50 vaddr_t base = chip_to_base(chip); in sp805_config() local
53 io_write32(base + WDT_LOAD_OFFSET, pd->load_val); in sp805_config()
57 io_write32(base + WDT_CONTROL_OFFSET, in sp805_config()
60 io_write32(base + WDT_LOCK_OFFSET, WDT_LOCK_KEY); in sp805_config()
63 (void)io_read32(base + WDT_LOCK_OFFSET); in sp805_config()
78 vaddr_t base = chip_to_base(chip); in sp805_disable() local
81 io_write32(base + WDT_CONTROL_OFFSET, 0); in sp805_disable()
82 io_write32(base + WDT_LOCK_OFFSET, WDT_LOCK_KEY); in sp805_disable()
85 (void)io_read32(base + WDT_LOCK_OFFSET); in sp805_disable()
[all …]
A Dstm32_i2c.c317 vaddr_t base = get_base(hi2c); in save_cfg() local
332 vaddr_t base = get_base(hi2c); in restore_cfg() local
659 vaddr_t base = get_base(hi2c); in i2c_config_analog_filter() local
763 vaddr_t base = 0; in stm32_i2c_init() local
777 base = get_base(hi2c); in stm32_i2c_init()
791 io_write32(base + I2C_OAR1, in stm32_i2c_init()
795 io_write32(base + I2C_OAR1, in stm32_i2c_init()
799 io_write32(base + I2C_CR2, 0); in stm32_i2c_init()
814 io_write32(base + I2C_OAR2, in stm32_i2c_init()
1448 io_write32(base + I2C_CR2, in stm32_i2c_is_device_ready()
[all …]
A Dstm32_uart.c54 return io_pa_or_va(&pd->base, 1); in loc_chip_to_base()
59 vaddr_t base = loc_chip_to_base(chip); in loc_flush() local
69 vaddr_t base = loc_chip_to_base(chip); in loc_putc() local
76 io_write32(base + UART_REG_TDR, ch); in loc_putc()
81 vaddr_t base = loc_chip_to_base(chip); in loc_have_rx_data() local
88 vaddr_t base = loc_chip_to_base(chip); in loc_getchar() local
93 return io_read32(base + UART_REG_RDR) & 0xff; in loc_getchar()
107 pd->base.pa = base; in stm32_uart_init()
116 stm32mp_register_secure_periph_iomem(pd->base.pa); in register_secure_uart()
153 pd->base.pa = info.reg; in stm32_uart_init_from_dt_node()
[all …]
A Dimx_rngb.c64 struct io_pa_va base; member
69 .base.pa = RNGB_BASE,
80 status = io_read32(rng->base.va + RNG_SR); in wait_for_irq()
90 io_setbits32(rng->base.va + RNG_CR, in irq_clear()
92 io_setbits32(rng->base.va + RNG_CMD, in irq_clear()
98 io_clrbits32(rng->base.va + RNG_CR, in irq_unmask()
122 rngb.base.pa, rngb.size); in map_controller_static()
123 if (!rngb.base.va) in map_controller_static()
163 rngb.base.pa = virt_to_phys((void *)rngb.base.va); in map_controller()
181 status = io_read32(rngb.base.va + RNG_SR); in crypto_rng_read()
[all …]
A Dimx_uart.c91 return io_pa_or_va(&pd->base, USIZE); in chip_to_base()
96 vaddr_t base = chip_to_base(chip); in imx_uart_flush() local
99 while (!(io_read32(base + UTS) & UTS_TXEMPTY)) in imx_uart_flush()
100 if (!(io_read32(base + UCR1) & UCR1_UARTEN)) in imx_uart_flush()
106 vaddr_t base = chip_to_base(chip); in imx_uart_getchar() local
108 while (io_read32(base + UTS) & UTS_RXEMPTY) in imx_uart_getchar()
116 vaddr_t base = chip_to_base(chip); in imx_uart_putc() local
119 while (io_read32(base + UTS) & UTS_TXFULL) in imx_uart_putc()
120 if (!(io_read32(base + UCR1) & UCR1_UARTEN)) in imx_uart_putc()
123 io_write32(base + UTXD, ch); in imx_uart_putc()
[all …]
A Dstm32_etzpc.c76 struct io_pa_va base; member
108 vaddr_t base = etzpc_base(); in etzpc_configure_decprot() local
128 vaddr_t base = etzpc_base(); in etzpc_get_decprot() local
143 vaddr_t base = etzpc_base(); in etzpc_lock_decprot() local
157 vaddr_t base = etzpc_base(); in etzpc_get_lock_decprot() local
167 vaddr_t base = etzpc_base(); in etzpc_configure_tzma() local
182 vaddr_t base = etzpc_base(); in etzpc_get_tzma() local
192 vaddr_t base = etzpc_base(); in etzpc_lock_tzma() local
205 vaddr_t base = etzpc_base(); in etzpc_get_lock_tzma() local
297 dev->base.pa = pbase; in init_device_from_hw_config()
[all …]
A Dimx_lpuart.c25 return io_pa_or_va(&pd->base, UART_SIZE); in chip_to_base()
35 vaddr_t base = chip_to_base(chip); in imx_lpuart_getchar() local
37 while (io_read32(base + STAT) & STAT_RDRF) in imx_lpuart_getchar()
40 ch = io_read32(base + DATA) & 0x3ff; in imx_lpuart_getchar()
42 if (io_read32(base + STAT) & STAT_OR) in imx_lpuart_getchar()
43 io_write32(base + STAT, STAT_OR); in imx_lpuart_getchar()
50 vaddr_t base = chip_to_base(chip); in imx_lpuart_putc() local
52 while (!(io_read32(base + STAT) & STAT_TDRE)) in imx_lpuart_putc()
55 io_write32(base + DATA, ch); in imx_lpuart_putc()
65 void imx_uart_init(struct imx_uart_data *pd, paddr_t base) in imx_uart_init() argument
[all …]
A Dpl022_spi.c172 rdat[j++] = io_read8(pd->base + SSPDR); in pl022_txrx8()
234 io_read8(pd->base + SSPPeriphID0), in pl022_print_peri_id()
235 io_read8(pd->base + SSPPeriphID1), in pl022_print_peri_id()
236 io_read8(pd->base + SSPPeriphID2), in pl022_print_peri_id()
237 io_read8(pd->base + SSPPeriphID3)); in pl022_print_peri_id()
244 io_read8(pd->base + SSPPCellID0), in pl022_print_cell_id()
245 io_read8(pd->base + SSPPCellID1), in pl022_print_cell_id()
246 io_read8(pd->base + SSPPCellID2), in pl022_print_cell_id()
247 io_read8(pd->base + SSPPCellID3)); in pl022_print_cell_id()
273 io_read8(pd->base + SSPB2BTRANS)); in pl022_sanity_check()
[all …]
A Dstih_asc.c22 return io_pa_or_va(&pd->base, STIH_ASC_REG_SIZE); in chip_to_base()
27 vaddr_t base = chip_to_base(chip); in stih_asc_flush() local
29 while (!(io_read32(base + ASC_STATUS) & ASC_STATUS_TX_EMPTY)) in stih_asc_flush()
35 vaddr_t base = chip_to_base(chip); in stih_asc_putc() local
37 while (!(io_read32(base + ASC_STATUS) & ASC_STATUS_TX_HALF_EMPTY)) in stih_asc_putc()
40 io_write32(base + ASC_TXBUFFER, ch); in stih_asc_putc()
49 void stih_asc_init(struct stih_asc_pd *pd, vaddr_t base) in stih_asc_init() argument
51 pd->base.pa = base; in stih_asc_init()
A Dserial8250_uart.c37 return io_pa_or_va(&pd->base, SERIAL8250_UART_REG_SIZE); in chip_to_base()
42 vaddr_t base = chip_to_base(chip); in serial8250_uart_flush() local
45 uint32_t state = io_read32(base + UART_LSR); in serial8250_uart_flush()
55 vaddr_t base = chip_to_base(chip); in serial8250_uart_have_rx_data() local
57 return (io_read32(base + UART_LSR) & LSR_DR); in serial8250_uart_have_rx_data()
62 vaddr_t base = chip_to_base(chip); in serial8250_uart_getchar() local
68 return io_read32(base + UART_RHR) & 0xff; in serial8250_uart_getchar()
73 vaddr_t base = chip_to_base(chip); in serial8250_uart_putc() local
78 io_write32(base + UART_THR, ch); in serial8250_uart_putc()
89 void serial8250_uart_init(struct serial8250_uart_data *pd, paddr_t base, in serial8250_uart_init() argument
[all …]
A Dns16550.c52 vaddr_t base = io_pa_or_va(&pd->base, in ns16550_flush() local
55 while ((serial_in(base + (UART_LSR << pd->reg_shift), pd->io_width) & in ns16550_flush()
64 vaddr_t base = io_pa_or_va(&pd->base, (UART_THR << pd->reg_shift) + in ns16550_putc() local
70 serial_out(base + (UART_THR << pd->reg_shift), pd->io_width, ch); in ns16550_putc()
79 void ns16550_init(struct ns16550_data *pd, paddr_t base, uint8_t io_width, in ns16550_init() argument
82 pd->base.pa = base; in ns16550_init()
/optee_os/core/arch/arm/plat-bcm/
A Dbcm_elog.c15 vaddr_t base = 0; in bcm_elog_putchar() local
17 base = io_pa_or_va(&elog->base, elog->max_size); in bcm_elog_putchar()
19 offset = io_read32(base + BCM_ELOG_OFF_OFFSET); in bcm_elog_putchar()
20 len = io_read32(base + BCM_ELOG_LEN_OFFSET); in bcm_elog_putchar()
21 io_write8(base + offset, ch); in bcm_elog_putchar()
33 io_write32(base + BCM_ELOG_LEN_OFFSET, len); in bcm_elog_putchar()
40 vaddr_t base = 0; in bcm_elog_init() local
42 elog->base.pa = pa_base; in bcm_elog_init()
45 base = io_pa_or_va(&elog->base, BCM_ELOG_HEADER_LEN); in bcm_elog_init()
52 val = io_read32(base + BCM_ELOG_SIG_OFFSET); in bcm_elog_init()
[all …]
/optee_os/lib/libutils/isoc/newlib/
A Dstrtoul.c158 _DEFUN (_strtoul, (nptr, endptr, base),
161 int base)
180 if ((base == 0 || base == 16) &&
184 base = 16;
186 if (base == 0)
187 base = c == '0' ? 8 : 10;
197 if (c >= base)
203 acc *= base;
219 _DEFUN (strtoul, (s, ptr, base),
222 int base)
[all …]
/optee_os/core/drivers/clk/sam/
A Dat91_main.c34 vaddr_t base; member
51 io_clrsetbits32(osc->base + AT91_CKGR_MOR, in pmc_main_rc_osc_enable()
70 io_clrsetbits32(osc->base + AT91_CKGR_MOR, in pmc_main_rc_osc_disable()
105 osc->base = pmc->base; in pmc_register_main_rc_osc()
140 io_write32(pmc->base + AT91_CKGR_MOR, mor); in pmc_main_osc_enable()
181 io_clrsetbits32(pmc->base + AT91_CKGR_MOR, in pmc_register_main_osc()
213 mcfr = io_read32(base + AT91_CKGR_MCFR); in clk_main_get_rate()
231 while (!clk_sam9x5_main_ready(pmc->base)) in clk_sam9x5_main_enable()
234 return clk_main_probe_frequency(pmc->base); in clk_sam9x5_main_enable()
262 io_clrsetbits32(pmc->base + AT91_CKGR_MOR, in clk_sam9x5_main_set_parent()
[all …]
/optee_os/core/arch/arm/plat-stm32mp1/
A Dplat_tzc400.c36 static bool tzc_region_is_non_secure(unsigned int i, vaddr_t base, size_t size) in tzc_region_is_non_secure() argument
45 return region_cfg.base == base && region_cfg.top == (base + size - 1) && in tzc_region_is_non_secure()
51 static bool tzc_region_is_secure(unsigned int i, vaddr_t base, size_t size) in tzc_region_is_secure() argument
59 return region_cfg.base == base && region_cfg.top == (base + size - 1) && in tzc_region_is_secure()
67 void *base = phys_to_virt(TZC_BASE, MEM_AREA_IO_SEC, 1); in init_stm32mp1_tzc() local
75 assert(base); in init_stm32mp1_tzc()
77 tzc_init((vaddr_t)base); in init_stm32mp1_tzc()

Completed in 33 milliseconds

1234567