Searched refs:cons_ptr (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/drivers/tty/serial/ |
H A D | ioc3_serial.c | 681 int prod_ptr, cons_ptr, total = 0; do_write() local 689 cons_ptr = readl(&port->ip_serial_regs->stcir) & PROD_CONS_MASK; do_write() 696 cons_ptr = (cons_ptr - (int)sizeof(struct ring_entry)) & PROD_CONS_MASK; do_write() 699 while ((prod_ptr != cons_ptr) && (len > 0)) { do_write() 723 ((cons_ptr - prod_ptr) & PROD_CONS_MASK) do_write() 1119 int prod_ptr, cons_ptr, total; do_read() local 1157 cons_ptr = port->ip_rx_cons; do_read() 1159 if (prod_ptr == cons_ptr) { do_read() 1187 if (prod_ptr == cons_ptr) { do_read() 1214 while ((prod_ptr != cons_ptr) && (len > 0)) { do_read() 1215 entry = (struct ring_entry *)((caddr_t) inring + cons_ptr); do_read() 1279 cons_ptr += (int)sizeof do_read() 1281 cons_ptr &= PROD_CONS_MASK; do_read() 1283 writel(cons_ptr, do_read() 1285 port->ip_rx_cons = cons_ptr; do_read() 1366 cons_ptr += (int)sizeof(struct ring_entry); do_read() 1367 cons_ptr &= PROD_CONS_MASK; do_read() 1372 writel(cons_ptr, &port->ip_serial_regs->srcir); do_read() 1373 port->ip_rx_cons = cons_ptr; do_read() 1378 if ((port->ip_flags & INPUT_HIGH) && (((prod_ptr - cons_ptr) do_read()
|
H A D | ioc4_serial.c | 1405 int prod_ptr, cons_ptr, total = 0; do_write() local 1413 cons_ptr = readl(&port->ip_serial_regs->stcir) & PROD_CONS_MASK; do_write() 1420 cons_ptr = (cons_ptr - (int)sizeof(struct ring_entry)) & PROD_CONS_MASK; do_write() 1423 while ((prod_ptr != cons_ptr) && (len > 0)) { do_write() 1447 ((cons_ptr - prod_ptr) & PROD_CONS_MASK) do_write() 2069 int prod_ptr, cons_ptr, total; do_read() local 2106 cons_ptr = port->ip_rx_cons; do_read() 2108 if (prod_ptr == cons_ptr) { do_read() 2137 if (prod_ptr == cons_ptr) { do_read() 2164 while ((prod_ptr != cons_ptr) && (len > 0)) { do_read() 2165 entry = (struct ring_entry *)((caddr_t)inring + cons_ptr); do_read() 2230 cons_ptr += (int)sizeof do_read() 2232 cons_ptr &= PROD_CONS_MASK; do_read() 2234 writel(cons_ptr, do_read() 2236 port->ip_rx_cons = cons_ptr; do_read() 2316 cons_ptr += (int)sizeof(struct ring_entry); do_read() 2317 cons_ptr &= PROD_CONS_MASK; do_read() 2322 writel(cons_ptr, &port->ip_serial_regs->srcir); do_read() 2323 port->ip_rx_cons = cons_ptr; do_read() 2328 if ((port->ip_flags & INPUT_HIGH) && (((prod_ptr - cons_ptr) do_read()
|
Completed in 76 milliseconds