/optee_os-3.20.0/core/drivers/ |
A D | pl022_spi.c | 149 pd->data_size_bits); in pl022_txrx8() 194 pd->data_size_bits); in pl022_txrx16() 252 assert(pd); in pl022_sanity_check() 253 assert(pd->chip.ops); in pl022_sanity_check() 266 assert(pd->clk_hz); in pl022_sanity_check() 267 assert(pd->speed_hz && pd->speed_hz <= pd->clk_hz/2); in pl022_sanity_check() 269 assert(pd->data_size_bits == 8 || pd->data_size_bits == 16); in pl022_sanity_check() 345 pd->speed_hz, freq1); in pl022_calc_clk_divisors() 408 switch (pd->mode) { in pl022_configure() 444 if (pd->loopback) { in pl022_configure() [all …]
|
A D | stm32_uart.c | 107 pd->base.pa = base; in stm32_uart_init() 129 pd->pinctrl[n].pin); in register_non_secure_uart() 148 pd = calloc(1, sizeof(*pd)); in stm32_uart_init_from_dt_node() 149 if (!pd) in stm32_uart_init_from_dt_node() 153 pd->base.pa = info.reg; in stm32_uart_init_from_dt_node() 167 pd->base.va = (vaddr_t)phys_to_virt(pd->base.pa, in stm32_uart_init_from_dt_node() 183 pd->pinctrl = pinctrl_cfg; in stm32_uart_init_from_dt_node() 184 pd->pinctrl_count = count; in stm32_uart_init_from_dt_node() 186 if (pd->secure) in stm32_uart_init_from_dt_node() 187 register_secure_uart(pd); in stm32_uart_init_from_dt_node() [all …]
|
A D | ns16550.c | 50 struct ns16550_data *pd = in ns16550_flush() local 53 (UART_LSR << pd->reg_shift) + pd->io_width); in ns16550_flush() 55 while ((serial_in(base + (UART_LSR << pd->reg_shift), pd->io_width) & in ns16550_flush() 62 struct ns16550_data *pd = in ns16550_putc() local 64 vaddr_t base = io_pa_or_va(&pd->base, (UART_THR << pd->reg_shift) + in ns16550_putc() 65 pd->io_width); in ns16550_putc() 70 serial_out(base + (UART_THR << pd->reg_shift), pd->io_width, ch); in ns16550_putc() 82 pd->base.pa = base; in ns16550_init() 83 pd->io_width = io_width; in ns16550_init() 84 pd->reg_shift = reg_shift; in ns16550_init() [all …]
|
A D | sp805_wdt.c | 17 struct sp805_wdt_data *pd = in chip_to_base() local 25 struct sp805_wdt_data *pd = in sp805_setload() local 42 pd->load_val = load; in sp805_setload() 48 struct sp805_wdt_data *pd = in sp805_config() local 94 if (pd->itr_handler) in wdt_itr_cb() 95 pd->itr_handler(chip); in wdt_itr_cb() 107 assert(!pd->chip.wdt_itr); in sp805_register_itr_handler() 110 itr_flags, &pd->chip); in sp805_register_itr_handler() 133 assert(pd); in sp805_wdt_init() 134 pd->base.pa = base; in sp805_wdt_init() [all …]
|
A D | imx_lpuart.c | 22 struct imx_uart_data *pd = in chip_to_base() local 25 return io_pa_or_va(&pd->base, UART_SIZE); in chip_to_base() 62 pd->base.pa = base; in imx_uart_init() 63 pd->chip.ops = &imx_lpuart_ops; in imx_uart_init() 74 struct imx_uart_data *pd = calloc(1, sizeof(*pd)); in imx_lpuart_dev_alloc() local 76 if (!pd) in imx_lpuart_dev_alloc() 79 return &pd->chip; in imx_lpuart_dev_alloc() 85 struct imx_uart_data *pd = in imx_lpuart_dev_init() local 98 imx_uart_init(pd, pbase); in imx_lpuart_dev_init() 105 struct imx_uart_data *pd = in imx_lpuart_dev_free() local [all …]
|
A D | serial8250_uart.c | 34 struct serial8250_uart_data *pd = in chip_to_base() local 37 return io_pa_or_va(&pd->base, SERIAL8250_UART_REG_SIZE); in chip_to_base() 94 pd->base.pa = base; in serial8250_uart_init() 95 pd->chip.ops = &serial8250_uart_ops; in serial8250_uart_init() 107 struct serial8250_uart_data *pd = calloc(1, sizeof(*pd)); in serial8250_uart_dev_alloc() local 109 if (!pd) in serial8250_uart_dev_alloc() 111 return &pd->chip; in serial8250_uart_dev_alloc() 119 struct serial8250_uart_data *pd = in serial8250_uart_dev_init() local 137 serial8250_uart_init(pd, pbase, 0, 0); in serial8250_uart_dev_init() 144 struct serial8250_uart_data *pd = in serial8250_uart_dev_free() local [all …]
|
A D | imx_uart.c | 88 struct imx_uart_data *pd = in chip_to_base() local 91 return io_pa_or_va(&pd->base, USIZE); in chip_to_base() 135 pd->base.pa = base; in imx_uart_init() 136 pd->chip.ops = &imx_uart_ops; in imx_uart_init() 147 struct imx_uart_data *pd = calloc(1, sizeof(*pd)); in imx_uart_dev_alloc() local 149 if (!pd) in imx_uart_dev_alloc() 152 return &pd->chip; in imx_uart_dev_alloc() 158 struct imx_uart_data *pd = in imx_uart_dev_init() local 171 imx_uart_init(pd, pbase); in imx_uart_dev_init() 178 struct imx_uart_data *pd = in imx_uart_dev_free() local [all …]
|
A D | pl011.c | 79 struct pl011_data *pd = in chip_to_base() local 82 return io_pa_or_va(&pd->base, PL011_REG_SIZE); in chip_to_base() 142 pd->base.pa = pbase; in pl011_init() 143 pd->chip.ops = &pl011_ops; in pl011_init() 145 base = io_pa_or_va(&pd->base, PL011_REG_SIZE); in pl011_init() 168 pl011_flush(&pd->chip); in pl011_init() 175 struct pl011_data *pd = nex_calloc(1, sizeof(*pd)); in pl011_dev_alloc() local 177 if (!pd) in pl011_dev_alloc() 179 return &pd->chip; in pl011_dev_alloc() 202 pl011_init(pd, pbase, 0, 0); in pl011_dev_init() [all …]
|
A D | scif.c | 50 struct scif_uart_data *pd = in chip_to_base() local 53 return io_pa_or_va(&pd->base, SCIF_REG_SIZE); in chip_to_base() 82 void scif_uart_init(struct scif_uart_data *pd, paddr_t pbase) in scif_uart_init() argument 86 pd->base.pa = pbase; in scif_uart_init() 87 pd->chip.ops = &scif_uart_ops; in scif_uart_init() 89 base = io_pa_or_va(&pd->base, SCIF_REG_SIZE); in scif_uart_init() 94 scif_uart_flush(&pd->chip); in scif_uart_init()
|
A D | stih_asc.c | 19 struct stih_asc_pd *pd = in chip_to_base() local 22 return io_pa_or_va(&pd->base, STIH_ASC_REG_SIZE); in chip_to_base() 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() 52 pd->chip.ops = &stih_asc_ops; in stih_asc_init()
|
A D | mvebu_uart.c | 59 struct mvebu_uart_data *pd = in chip_to_base() local 62 return io_pa_or_va(&pd->base, UART_SIZE); in chip_to_base() 118 void mvebu_uart_init(struct mvebu_uart_data *pd, paddr_t pbase, in mvebu_uart_init() argument 124 pd->base.pa = pbase; in mvebu_uart_init() 125 pd->chip.ops = &mvebu_uart_ops; in mvebu_uart_init() 127 base = io_pa_or_va(&pd->base, UART_SIZE); in mvebu_uart_init() 144 mvebu_uart_flush(&pd->chip); in mvebu_uart_init()
|
A D | amlogic_uart.c | 27 struct amlogic_uart_data *pd = in chip_to_base() local 30 return io_pa_or_va(&pd->base, AML_UART_SIZE); in chip_to_base() 67 void amlogic_uart_init(struct amlogic_uart_data *pd, paddr_t base) in amlogic_uart_init() argument 69 pd->base.pa = base; in amlogic_uart_init() 70 pd->chip.ops = &amlogic_uart_ops; in amlogic_uart_init()
|
A D | sprd_uart.c | 46 struct sprd_uart_data *pd = in chip_to_base() local 49 return io_pa_or_va(&pd->base, UART_SIZE); in chip_to_base() 93 void sprd_uart_init(struct sprd_uart_data *pd, paddr_t base) in sprd_uart_init() argument 95 pd->base.pa = base; in sprd_uart_init() 96 pd->chip.ops = &sprd_uart_ops; in sprd_uart_init()
|
A D | atmel_uart.c | 55 struct atmel_uart_data *pd = in chip_to_base() local 58 return io_pa_or_va(&pd->base, ATMEL_UART_SIZE); in chip_to_base() 95 void atmel_uart_init(struct atmel_uart_data *pd, paddr_t base) in atmel_uart_init() argument 97 pd->base.pa = base; in atmel_uart_init() 98 pd->chip.ops = &atmel_uart_ops; in atmel_uart_init()
|
A D | cdns_uart.c | 61 struct cdns_uart_data *pd = in chip_to_base() local 64 return io_pa_or_va(&pd->base, CDNS_UART_SIZE); in chip_to_base() 119 void cdns_uart_init(struct cdns_uart_data *pd, paddr_t base, uint32_t uart_clk, in cdns_uart_init() argument 122 pd->base.pa = base; in cdns_uart_init() 123 pd->chip.ops = &cdns_uart_ops; in cdns_uart_init() 132 cdns_uart_flush(&pd->chip); in cdns_uart_init()
|
A D | hi16xx_uart.c | 63 struct hi16xx_uart_data *pd = in chip_to_base() local 66 return io_pa_or_va(&pd->base, HI16XX_UART_REG_SIZE); in chip_to_base() 113 void hi16xx_uart_init(struct hi16xx_uart_data *pd, paddr_t base, in hi16xx_uart_init() argument 118 pd->base.pa = base; in hi16xx_uart_init() 119 pd->chip.ops = &hi16xx_uart_ops; in hi16xx_uart_init() 139 hi16xx_uart_flush(&pd->chip); in hi16xx_uart_init()
|
A D | lpc_uart.c | 15 struct lpc_uart_data *pd = in chip_to_base() local 18 return io_pa_or_va(&pd->base, LPC_SIZE); in chip_to_base() 102 void lpc_uart_init(struct lpc_uart_data *pd, paddr_t base, in lpc_uart_init() argument 105 pd->base.pa = base; in lpc_uart_init() 106 pd->chip.ops = &lpc_uart_ops; in lpc_uart_init()
|
/optee_os-3.20.0/core/arch/arm/plat-hikey/ |
A D | spi_test.c | 29 pl061_init(&pd); in spi_cs_callback() 93 pd.chip.ops->configure(&pd.chip); in spi_test_with_manual_cs_control() 94 pd.chip.ops->start(&pd.chip); in spi_test_with_manual_cs_control() 105 res = pd.chip.ops->txrx8(&pd.chip, tx, rx, len); in spi_test_with_manual_cs_control() 124 res = pd.chip.ops->txrx8(&pd.chip, tx, rx, len); in spi_test_with_manual_cs_control() 142 res = pd.chip.ops->txrx8(&pd.chip, tx, rx, len); in spi_test_with_manual_cs_control() 154 pd.chip.ops->end(&pd.chip); in spi_test_with_manual_cs_control() 183 pd.chip.ops->configure(&pd.chip); in spi_test_with_registered_cs_cb() 184 pd.chip.ops->start(&pd.chip); in spi_test_with_registered_cs_cb() 188 res = pd.chip.ops->txrx8(&pd.chip, tx, rx, len); in spi_test_with_registered_cs_cb() [all …]
|
/optee_os-3.20.0/core/arch/riscv/plat-spike/drivers/ |
A D | htif.c | 33 struct htif_console_data *pd = in chip_to_base() local 36 return io_pa_or_va(&pd->base, HTIF_REG_SIZE); in chip_to_base() 73 void htif_console_init(struct htif_console_data *pd, paddr_t pbase) in htif_console_init() argument 75 pd->base.pa = pbase; in htif_console_init() 76 pd->chip.ops = &htif_console_ops; in htif_console_init()
|
/optee_os-3.20.0/lib/libutils/isoc/ |
A D | qsort.c | 78 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in qsort() local 105 pc = pd = (char *)a + (n - 1) * es; in qsort() 118 swap(pc, pd); in qsort() 119 pd -= es; in qsort() 140 r = min(pd - pc, pn - pd - (int)es); in qsort() 144 if ((r = pd - pc) > (int)es) { in qsort()
|
/optee_os-3.20.0/core/arch/riscv/kernel/ |
A D | sbi_console.c | 53 static void sbi_console_init(struct sbi_console_data *pd) in sbi_console_init() argument 55 pd->chip.ops = &sbi_console_ops; in sbi_console_init()
|
/optee_os-3.20.0/core/include/drivers/ |
A D | sp805_wdt.h | 52 TEE_Result sp805_wdt_init(struct sp805_wdt_data *pd, paddr_t base, 65 TEE_Result sp805_register_itr_handler(struct sp805_wdt_data *pd,
|
A D | imx_uart.h | 40 void imx_uart_init(struct imx_uart_data *pd, paddr_t base);
|
A D | amlogic_uart.h | 14 void amlogic_uart_init(struct amlogic_uart_data *pd, paddr_t base);
|
A D | atmel_uart.h | 39 void atmel_uart_init(struct atmel_uart_data *pd, paddr_t base);
|