Home
last modified time | relevance | path

Searched refs:chip (Results 1 – 25 of 87) sorted by relevance

1234

/optee_os/core/drivers/
A Dsp805_wdt.c18 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 Dserial8250_uart.c35 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 Dsprd_uart.c44 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 Dimx_lpuart.c20 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()
32 static int imx_lpuart_getchar(struct serial_chip *chip) in imx_lpuart_getchar() argument
35 vaddr_t base = chip_to_base(chip); in imx_lpuart_getchar()
48 static void imx_lpuart_putc(struct serial_chip *chip, int ch) in imx_lpuart_putc() argument
50 vaddr_t base = chip_to_base(chip); in imx_lpuart_putc()
68 pd->chip.ops = &imx_lpuart_ops; in imx_uart_init()
84 return &pd->chip; in imx_lpuart_dev_alloc()
91 container_of(chip, struct imx_uart_data, chip); in imx_lpuart_dev_init()
108 static void imx_lpuart_dev_free(struct serial_chip *chip) in imx_lpuart_dev_free() argument
[all …]
A Dpl011.c80 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 Dcdns_uart.c59 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 Dimx_uart.c86 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 Dls_gpio.c34 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 Dmvebu_uart.c57 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 Dhi16xx_uart.c61 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 Damlogic_uart.c25 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 Datmel_uart.c53 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 Dpl022_spi.c144 struct pl022_data *pd = container_of(chip, struct pl022_data, chip); in pl022_txrx8()
190 struct pl022_data *pd = container_of(chip, struct pl022_data, chip); in pl022_txrx16()
253 assert(pd->chip.ops); in pl022_sanity_check()
257 assert(pd->cs_data.gpio_data.chip); in pl022_sanity_check()
287 struct pl022_data *pd = container_of(chip, struct pl022_data, chip); in pl022_control_cs()
359 struct pl022_data *pd = container_of(chip, struct pl022_data, chip); in pl022_flush_fifo()
375 struct pl022_data *pd = container_of(chip, struct pl022_data, chip); in pl022_configure()
472 pl022_flush_fifo(chip); in pl022_configure()
477 struct pl022_data *pd = container_of(chip, struct pl022_data, chip); in pl022_start()
487 struct pl022_data *pd = container_of(chip, struct pl022_data, chip); in pl022_end()
[all …]
A Dscif.c48 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 Dstih_asc.c17 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 Dstm32_uart.c52 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 …]
A Dns16550.c48 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 Dgic.c75 static void gic_op_enable(struct itr_chip *chip, size_t it);
76 static void gic_op_disable(struct itr_chip *chip, size_t it);
248 gd->chip.ops = &gic_ops; in gic_init_base_addr()
251 gd->chip.dt_get_irq = gic_dt_get_irq; in gic_init_base_addr()
438 static void gic_op_add(struct itr_chip *chip, size_t it, in gic_op_add() argument
442 struct gic_data *gd = container_of(chip, struct gic_data, chip); in gic_op_add()
455 struct gic_data *gd = container_of(chip, struct gic_data, chip); in gic_op_enable()
465 struct gic_data *gd = container_of(chip, struct gic_data, chip); in gic_op_disable()
475 struct gic_data *gd = container_of(chip, struct gic_data, chip); in gic_op_raise_pi()
486 struct gic_data *gd = container_of(chip, struct gic_data, chip); in gic_op_raise_sgi()
[all …]
A Dls_dspi.c251 struct ls_dspi_data *data = container_of(chip, struct ls_dspi_data, in ls_dspi_txrx8()
252 chip); in ls_dspi_txrx8()
304 struct ls_dspi_data *data = container_of(chip, struct ls_dspi_data, in ls_dspi_txrx16()
305 chip); in ls_dspi_txrx16()
348 static void ls_dspi_start(struct spi_chip *chip) in ls_dspi_start() argument
351 chip); in ls_dspi_start()
361 static void ls_dspi_end(struct spi_chip *chip) in ls_dspi_end() argument
364 chip); in ls_dspi_end()
509 static void ls_dspi_configure(struct spi_chip *chip) in ls_dspi_configure() argument
512 chip); in ls_dspi_configure()
[all …]
/optee_os/core/arch/arm/plat-hikey/
A Dspi_test.c93 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/core/pta/bcm/
A Dwdt.c28 static void wd_isr_handler(struct wdt_chip *chip __unused) in wd_isr_handler()
54 wd_pd.chip.ops->start(&wd_pd.chip); in pta_wd_config()
72 wd_pd.chip.ops->start(&wd_pd.chip); in pta_wd_start()
90 wd_pd.chip.ops->ping(&wd_pd.chip); in pta_wd_ping()
108 wd_pd.chip.ops->stop(&wd_pd.chip); in pta_wd_stop()
129 wd_pd.chip.ops->set_timeout(&wd_pd.chip, timeout); in pta_wd_set_timeout()
/optee_os/core/include/
A Dgpio.h29 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,
A Dspi.h30 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);
/optee_os/core/include/drivers/
A Dwdt.h30 void (*start)(struct wdt_chip *chip);
31 void (*stop)(struct wdt_chip *chip);
32 void (*ping)(struct wdt_chip *chip);
33 TEE_Result (*set_timeout)(struct wdt_chip *chip, unsigned long timeout);
A Dserial.h19 void (*putc)(struct serial_chip *chip, int ch);
20 void (*flush)(struct serial_chip *chip);
21 bool (*have_rx_data)(struct serial_chip *chip);
22 int (*getchar)(struct serial_chip *chip);

Completed in 40 milliseconds

1234