Lines Matching refs:chip
77 static vaddr_t chip_to_base(struct serial_chip *chip) in chip_to_base() argument
80 container_of(chip, struct pl011_data, chip); in chip_to_base()
85 static void pl011_flush(struct serial_chip *chip) in pl011_flush() argument
87 vaddr_t base = chip_to_base(chip); in pl011_flush()
101 static bool pl011_have_rx_data(struct serial_chip *chip) in pl011_have_rx_data() argument
103 vaddr_t base = chip_to_base(chip); in pl011_have_rx_data()
108 static int pl011_getchar(struct serial_chip *chip) in pl011_getchar() argument
110 vaddr_t base = chip_to_base(chip); in pl011_getchar()
112 while (!pl011_have_rx_data(chip)) in pl011_getchar()
117 static void pl011_putc(struct serial_chip *chip, int ch) in pl011_putc() argument
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()
182 static int pl011_dev_init(struct serial_chip *chip, const void *fdt, int offs, in pl011_dev_init() argument
185 struct pl011_data *pd = container_of(chip, struct pl011_data, chip); in pl011_dev_init()
207 static void pl011_dev_free(struct serial_chip *chip) in pl011_dev_free() argument
209 struct pl011_data *pd = container_of(chip, struct pl011_data, chip); in pl011_dev_free()