Lines Matching refs:p
36 static void serial8250_em_serial_out_helper(struct uart_port *p, int offset, in serial8250_em_serial_out_helper() argument
41 writeb(value, p->membase); in serial8250_em_serial_out_helper()
46 writel(value, p->membase + ((offset + 1) << 2)); in serial8250_em_serial_out_helper()
49 writel(value, p->membase + (UART_FCR_EM_HW << 2)); in serial8250_em_serial_out_helper()
57 writel(value, p->membase + (offset << 2)); in serial8250_em_serial_out_helper()
62 static unsigned int serial8250_em_serial_in(struct uart_port *p, int offset) in serial8250_em_serial_in() argument
66 return readb(p->membase); in serial8250_em_serial_in()
72 return readl(p->membase + ((offset + 1) << 2)); in serial8250_em_serial_in()
74 return readl(p->membase + (UART_FCR_EM_HW << 2)); in serial8250_em_serial_in()
80 return readl(p->membase + (offset << 2)); in serial8250_em_serial_in()
85 static void serial8250_em_reg_update(struct uart_port *p, int off, int value) in serial8250_em_reg_update() argument
89 ier = serial8250_em_serial_in(p, UART_IER); in serial8250_em_reg_update()
90 fcr = serial8250_em_serial_in(p, UART_FCR_EM); in serial8250_em_reg_update()
91 lcr = serial8250_em_serial_in(p, UART_LCR); in serial8250_em_reg_update()
92 mcr = serial8250_em_serial_in(p, UART_MCR); in serial8250_em_reg_update()
93 hcr0 = serial8250_em_serial_in(p, UART_HCR0_EM); in serial8250_em_reg_update()
95 serial8250_em_serial_out_helper(p, UART_FCR_EM, fcr | in serial8250_em_reg_update()
98 serial8250_em_serial_out_helper(p, UART_HCR0_EM, hcr0 | in serial8250_em_reg_update()
100 serial8250_em_serial_out_helper(p, UART_HCR0_EM, hcr0 & in serial8250_em_reg_update()
115 serial8250_em_serial_out_helper(p, UART_IER, ier); in serial8250_em_reg_update()
116 serial8250_em_serial_out_helper(p, UART_FCR_EM, fcr); in serial8250_em_reg_update()
117 serial8250_em_serial_out_helper(p, UART_MCR, mcr); in serial8250_em_reg_update()
118 serial8250_em_serial_out_helper(p, UART_LCR, lcr); in serial8250_em_reg_update()
119 serial8250_em_serial_out_helper(p, UART_HCR0_EM, hcr0); in serial8250_em_reg_update()
122 static void serial8250_em_serial_out(struct uart_port *p, int offset, int value) in serial8250_em_serial_out() argument
130 serial8250_em_serial_out_helper(p, offset, value); in serial8250_em_serial_out()
133 serial8250_em_reg_update(p, UART_FCR_EM, value); in serial8250_em_serial_out()
137 serial8250_em_reg_update(p, offset, value); in serial8250_em_serial_out()