/optee_os-3.20.0/core/drivers/tpm2/ |
A D | tpm2_ptp_fifo.c | 125 ret = ops->tx8(chip, TPM2_ACCESS(chip->locality), sizeof(buf), &buf); in tpm2_fifo_relinquish_locality() 129 chip->locality = -1; in tpm2_fifo_relinquish_locality() 140 return ops->tx8(chip, TPM2_STS(chip->locality), sizeof(buf), &buf); in tpm2_fifo_set_status() 149 ret = ops->rx8(chip, TPM2_STS(chip->locality), sizeof(*status), status); in tpm2_fifo_get_status() 199 ret = ops->rx32(chip, TPM2_STS(chip->locality), &burst); in tpm2_fifo_get_burstcount() 238 ret = chip->phy_ops->rx32(chip, TPM2_INT_ENABLE(chip->locality), in tpm2_fifo_init() 247 ret = chip->phy_ops->tx32(chip, TPM2_INT_ENABLE(chip->locality), flags); in tpm2_fifo_init() 280 if (!chip) in tpm2_fifo_send() 328 ret = ops->tx8(chip, TPM2_DATA_FIFO(chip->locality), in tpm2_fifo_send() 398 if (!chip) in tpm2_fifo_recv() [all …]
|
A D | tpm2_chip.c | 97 struct tpm2_caps *caps = &chip->capability; in tpm2_get_bank_info() 159 struct tpm2_caps *caps = &chip->capability; in tpm2_populate_capability() 163 ret = tpm2_get_bank_info(chip); in tpm2_populate_capability() 190 static void tpm2_dump_capability(struct tpm2_chip *chip) in tpm2_dump_capability() argument 192 struct tpm2_caps *caps __maybe_unused = &chip->capability; in tpm2_dump_capability() 209 if (!chip || !chip->ops) in tpm2_chip_register() 213 ret = chip->ops->init(chip); in tpm2_chip_register() 217 tpm2_device = chip; in tpm2_chip_register() 230 ret = tpm2_populate_capability(chip); in tpm2_chip_register() 232 tpm2_dump_capability(chip); in tpm2_chip_register() [all …]
|
/optee_os-3.20.0/core/drivers/ |
A D | versal_gpio.c | 133 io_write32(chip->base + off, val); in gpio_set_value() 186 struct versal_gpio_chip, chip); in do_get_value() 194 struct versal_gpio_chip, chip); in do_set_value() 224 if (chip->base) in versal_gpio_pmc_init() 229 chip->chip.ops = &versal_gpio_ops; in versal_gpio_pmc_init() 234 if (!chip->base) { in versal_gpio_pmc_init() 236 chip->chip.ops = NULL; in versal_gpio_pmc_init() 245 if (chip->base) in versal_gpio_ps_init() 250 chip->chip.ops = &versal_gpio_ops; in versal_gpio_ps_init() 255 if (!chip->base) { in versal_gpio_ps_init() [all …]
|
A D | sp805_wdt.c | 18 container_of(chip, struct sp805_wdt_data, chip); in chip_to_base() 26 container_of(chip, struct sp805_wdt_data, chip); in sp805_setload() 49 container_of(chip, struct sp805_wdt_data, chip); in sp805_config() 68 sp805_config(chip, false); in sp805_ping() 73 sp805_config(chip, true); in sp805_enable() 92 container_of(chip, struct sp805_wdt_data, chip); 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() 115 pd->chip.wdt_itr = wdt_itr; in sp805_register_itr_handler() [all …]
|
A D | sprd_uart.c | 44 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 47 container_of(chip, struct sprd_uart_data, chip); in chip_to_base() 52 static void sprd_uart_flush(struct serial_chip *chip) in sprd_uart_flush() argument 54 vaddr_t base = chip_to_base(chip); in sprd_uart_flush() 62 vaddr_t base = chip_to_base(chip); in sprd_uart_have_rx_data() 69 vaddr_t base = chip_to_base(chip); in sprd_uart_putc() 71 sprd_uart_flush(chip); in sprd_uart_putc() 75 static int sprd_uart_getchar(struct serial_chip *chip) in sprd_uart_getchar() argument 77 vaddr_t base = chip_to_base(chip); in sprd_uart_getchar() 79 while (!sprd_uart_have_rx_data(chip)) in sprd_uart_getchar() [all …]
|
A D | serial8250_uart.c | 35 container_of(chip, struct serial8250_uart_data, chip); in chip_to_base() 42 vaddr_t base = chip_to_base(chip); in serial8250_uart_flush() 55 vaddr_t base = chip_to_base(chip); in serial8250_uart_have_rx_data() 62 vaddr_t base = chip_to_base(chip); in serial8250_uart_getchar() 64 while (!serial8250_uart_have_rx_data(chip)) { in serial8250_uart_getchar() 73 vaddr_t base = chip_to_base(chip); in serial8250_uart_putc() 75 serial8250_uart_flush(chip); in serial8250_uart_putc() 95 pd->chip.ops = &serial8250_uart_ops; in serial8250_uart_init() 111 return &pd->chip; in serial8250_uart_dev_alloc() 120 container_of(chip, struct serial8250_uart_data, chip); in serial8250_uart_dev_init() [all …]
|
A D | cdns_uart.c | 59 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 62 container_of(chip, struct cdns_uart_data, chip); in chip_to_base() 67 static void cdns_uart_flush(struct serial_chip *chip) in cdns_uart_flush() argument 69 vaddr_t base = chip_to_base(chip); in cdns_uart_flush() 78 vaddr_t base = chip_to_base(chip); in cdns_uart_have_rx_data() 84 static int cdns_uart_getchar(struct serial_chip *chip) in cdns_uart_getchar() argument 86 vaddr_t base = chip_to_base(chip); in cdns_uart_getchar() 88 while (!cdns_uart_have_rx_data(chip)) in cdns_uart_getchar() 95 vaddr_t base = chip_to_base(chip); in cdns_uart_putc() 123 pd->chip.ops = &cdns_uart_ops; in cdns_uart_init() [all …]
|
A D | imx_lpuart.c | 20 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 23 container_of(chip, struct imx_uart_data, chip); in chip_to_base() 28 static int imx_lpuart_getchar(struct serial_chip *chip) in imx_lpuart_getchar() argument 31 vaddr_t base = chip_to_base(chip); in imx_lpuart_getchar() 44 static void imx_lpuart_putc(struct serial_chip *chip, int ch) in imx_lpuart_putc() argument 46 vaddr_t base = chip_to_base(chip); in imx_lpuart_putc() 63 pd->chip.ops = &imx_lpuart_ops; in imx_uart_init() 79 return &pd->chip; in imx_lpuart_dev_alloc() 86 container_of(chip, struct imx_uart_data, chip); in imx_lpuart_dev_init() 103 static void imx_lpuart_dev_free(struct serial_chip *chip) in imx_lpuart_dev_free() argument [all …]
|
A D | mvebu_uart.c | 57 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 60 container_of(chip, struct mvebu_uart_data, chip); in chip_to_base() 65 static void mvebu_uart_flush(struct serial_chip *chip) in mvebu_uart_flush() argument 67 vaddr_t base = chip_to_base(chip); in mvebu_uart_flush() 82 vaddr_t base = chip_to_base(chip); in mvebu_uart_have_rx_data() 87 static int mvebu_uart_getchar(struct serial_chip *chip) in mvebu_uart_getchar() argument 89 vaddr_t base = chip_to_base(chip); in mvebu_uart_getchar() 91 while (!mvebu_uart_have_rx_data(chip)) in mvebu_uart_getchar() 98 vaddr_t base = chip_to_base(chip); in mvebu_uart_putc() 125 pd->chip.ops = &mvebu_uart_ops; in mvebu_uart_init() [all …]
|
A D | hi16xx_uart.c | 61 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 64 container_of(chip, struct hi16xx_uart_data, chip); in chip_to_base() 69 static void hi16xx_uart_flush(struct serial_chip *chip) in hi16xx_uart_flush() argument 71 vaddr_t base = chip_to_base(chip); in hi16xx_uart_flush() 79 vaddr_t base = chip_to_base(chip); in hi16xx_uart_putc() 91 vaddr_t base = chip_to_base(chip); in hi16xx_uart_have_rx_data() 96 static int hi16xx_uart_getchar(struct serial_chip *chip) in hi16xx_uart_getchar() argument 98 vaddr_t base = chip_to_base(chip); in hi16xx_uart_getchar() 100 while (!hi16xx_uart_have_rx_data(chip)) in hi16xx_uart_getchar() 119 pd->chip.ops = &hi16xx_uart_ops; in hi16xx_uart_init() [all …]
|
A D | pl011.c | 80 container_of(chip, struct pl011_data, chip); in chip_to_base() 87 vaddr_t base = chip_to_base(chip); in pl011_flush() 103 vaddr_t base = chip_to_base(chip); in pl011_have_rx_data() 110 vaddr_t base = chip_to_base(chip); in pl011_getchar() 112 while (!pl011_have_rx_data(chip)) in pl011_getchar() 119 vaddr_t base = chip_to_base(chip); in pl011_putc() 143 pd->chip.ops = &pl011_ops; in pl011_init() 168 pl011_flush(&pd->chip); in pl011_init() 179 return &pd->chip; in pl011_dev_alloc() 185 struct pl011_data *pd = container_of(chip, struct pl011_data, chip); in pl011_dev_init() [all …]
|
A D | imx_uart.c | 86 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 89 container_of(chip, struct imx_uart_data, chip); in chip_to_base() 94 static void imx_uart_flush(struct serial_chip *chip) in imx_uart_flush() argument 96 vaddr_t base = chip_to_base(chip); in imx_uart_flush() 104 static int imx_uart_getchar(struct serial_chip *chip) in imx_uart_getchar() argument 106 vaddr_t base = chip_to_base(chip); in imx_uart_getchar() 116 vaddr_t base = chip_to_base(chip); in imx_uart_putc() 136 pd->chip.ops = &imx_uart_ops; in imx_uart_init() 152 return &pd->chip; in imx_uart_dev_alloc() 159 container_of(chip, struct imx_uart_data, chip); in imx_uart_dev_init() [all …]
|
A D | ls_gpio.c | 34 struct ls_gpio_chip_data *gc_data = container_of(chip, in gpio_get_value() 36 chip); in gpio_get_value() 59 struct ls_gpio_chip_data *gc_data = container_of(chip, in gpio_set_value() 61 chip); in gpio_set_value() 85 struct ls_gpio_chip_data *gc_data = container_of(chip, in gpio_get_direction() 87 chip); in gpio_get_direction() 110 struct ls_gpio_chip_data *gc_data = container_of(chip, in gpio_set_direction() 112 chip); in gpio_set_direction() 136 chip); in gpio_get_interrupt() 161 chip); in gpio_set_interrupt() [all …]
|
A D | amlogic_uart.c | 25 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 28 container_of(chip, struct amlogic_uart_data, chip); in chip_to_base() 33 static void amlogic_uart_flush(struct serial_chip *chip) in amlogic_uart_flush() argument 35 vaddr_t base = chip_to_base(chip); in amlogic_uart_flush() 41 static int amlogic_uart_getchar(struct serial_chip *chip) in amlogic_uart_getchar() argument 43 vaddr_t base = chip_to_base(chip); in amlogic_uart_getchar() 51 static void amlogic_uart_putc(struct serial_chip *chip, int ch) in amlogic_uart_putc() argument 53 vaddr_t base = chip_to_base(chip); in amlogic_uart_putc() 70 pd->chip.ops = &amlogic_uart_ops; in amlogic_uart_init()
|
A D | atmel_uart.c | 53 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 56 container_of(chip, struct atmel_uart_data, chip); in chip_to_base() 61 static void atmel_uart_flush(struct serial_chip *chip) in atmel_uart_flush() argument 63 vaddr_t base = chip_to_base(chip); in atmel_uart_flush() 69 static int atmel_uart_getchar(struct serial_chip *chip) in atmel_uart_getchar() argument 71 vaddr_t base = chip_to_base(chip); in atmel_uart_getchar() 79 static void atmel_uart_putc(struct serial_chip *chip, int ch) in atmel_uart_putc() argument 81 vaddr_t base = chip_to_base(chip); in atmel_uart_putc() 98 pd->chip.ops = &atmel_uart_ops; in atmel_uart_init()
|
A D | scif.c | 48 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 51 container_of(chip, struct scif_uart_data, chip); in chip_to_base() 56 static void scif_uart_flush(struct serial_chip *chip) in scif_uart_flush() argument 58 vaddr_t base = chip_to_base(chip); in scif_uart_flush() 64 static void scif_uart_putc(struct serial_chip *chip, int ch) in scif_uart_putc() argument 66 vaddr_t base = chip_to_base(chip); in scif_uart_putc() 87 pd->chip.ops = &scif_uart_ops; in scif_uart_init() 94 scif_uart_flush(&pd->chip); in scif_uart_init()
|
A D | stih_asc.c | 17 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 20 container_of(chip, struct stih_asc_pd, chip); in chip_to_base() 25 static void stih_asc_flush(struct serial_chip *chip) in stih_asc_flush() argument 27 vaddr_t base = chip_to_base(chip); in stih_asc_flush() 33 static void stih_asc_putc(struct serial_chip *chip, int ch) in stih_asc_putc() argument 35 vaddr_t base = chip_to_base(chip); in stih_asc_putc() 52 pd->chip.ops = &stih_asc_ops; in stih_asc_init()
|
A D | ns16550.c | 48 static void ns16550_flush(struct serial_chip *chip) in ns16550_flush() argument 51 container_of(chip, struct ns16550_data, chip); in ns16550_flush() 60 static void ns16550_putc(struct serial_chip *chip, int ch) in ns16550_putc() argument 63 container_of(chip, struct ns16550_data, chip); in ns16550_putc() 67 ns16550_flush(chip); in ns16550_putc() 85 pd->chip.ops = &ns16550_ops; in ns16550_init()
|
A D | stm32_uart.c | 52 pd = container_of(chip, struct stm32_uart_pdata, chip); in loc_chip_to_base() 57 static void loc_flush(struct serial_chip *chip) in loc_flush() argument 59 vaddr_t base = loc_chip_to_base(chip); in loc_flush() 67 static void loc_putc(struct serial_chip *chip, int ch) in loc_putc() argument 69 vaddr_t base = loc_chip_to_base(chip); in loc_putc() 81 vaddr_t base = loc_chip_to_base(chip); in loc_have_rx_data() 86 static int loc_getchar(struct serial_chip *chip) in loc_getchar() argument 88 vaddr_t base = loc_chip_to_base(chip); in loc_getchar() 90 while (!loc_have_rx_data(chip)) in loc_getchar() 108 pd->chip.ops = &stm32_uart_serial_ops; in stm32_uart_init() [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-hikey/ |
A D | spi_test.c | 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() 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() 200 pd.chip.ops->end(&pd.chip); in spi_test_with_registered_cs_cb() 225 pd022.cs_data.gpio_data.chip = &pd061.chip; in spi_test_with_builtin_cs_control() 239 pd022.chip.ops->configure(&pd022.chip); in spi_test_with_builtin_cs_control() 240 pd022.chip.ops->start(&pd022.chip); in spi_test_with_builtin_cs_control() [all …]
|
/optee_os-3.20.0/core/drivers/wdt/ |
A D | watchdog.c | 10 TEE_Result watchdog_register(struct wdt_chip *chip) in watchdog_register() argument 12 if (!chip->ops->start || !chip->ops->ping || !chip->ops->set_timeout) in watchdog_register() 15 wdt_chip = chip; in watchdog_register()
|
/optee_os-3.20.0/core/include/ |
A D | spi.h | 30 void (*configure)(struct spi_chip *chip); 31 void (*start)(struct spi_chip *chip); 32 enum spi_result (*txrx8)(struct spi_chip *chip, uint8_t *wdat, 34 enum spi_result (*txrx16)(struct spi_chip *chip, uint16_t *wdat, 36 void (*end)(struct spi_chip *chip); 37 void (*flushfifo)(struct spi_chip *chip);
|
A D | gpio.h | 29 enum gpio_dir (*get_direction)(struct gpio_chip *chip, 31 void (*set_direction)(struct gpio_chip *chip, unsigned int gpio_pin, 33 enum gpio_level (*get_value)(struct gpio_chip *chip, 35 void (*set_value)(struct gpio_chip *chip, unsigned int gpio_pin, 37 enum gpio_interrupt (*get_interrupt)(struct gpio_chip *chip, 39 void (*set_interrupt)(struct gpio_chip *chip, unsigned int gpio_pin,
|
/optee_os-3.20.0/core/include/drivers/ |
A D | tpm2_chip.h | 82 enum tpm2_result (*init)(struct tpm2_chip *chip); 83 enum tpm2_result (*end)(struct tpm2_chip *chip); 84 enum tpm2_result (*send)(struct tpm2_chip *chip, uint8_t *buf, 86 enum tpm2_result (*recv)(struct tpm2_chip *chip, uint8_t *buf, 92 enum tpm2_result (*rx32)(struct tpm2_chip *chip, uint32_t adr, 94 enum tpm2_result (*tx32)(struct tpm2_chip *chip, uint32_t adr, 96 enum tpm2_result (*rx8)(struct tpm2_chip *chip, uint32_t adr, 98 enum tpm2_result (*tx8)(struct tpm2_chip *chip, uint32_t adr, 102 enum tpm2_result tpm2_chip_register(struct tpm2_chip *chip); 103 enum tpm2_result tpm2_chip_unregister(struct tpm2_chip *chip);
|
/optee_os-3.20.0/core/arch/riscv/plat-spike/drivers/ |
A D | htif.c | 31 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument 34 container_of(chip, struct htif_console_data, chip); in chip_to_base() 48 static void htif_console_putc(struct serial_chip *chip, in htif_console_putc() argument 55 base = chip_to_base(chip); in htif_console_putc() 63 static void htif_console_flush(struct serial_chip *chip __unused) in htif_console_flush() 76 pd->chip.ops = &htif_console_ops; in htif_console_init()
|