Searched refs:cons_ptr (Results 1 – 2 of 2) sorted by relevance
681 int prod_ptr, cons_ptr, total = 0; in do_write() local689 cons_ptr = readl(&port->ip_serial_regs->stcir) & PROD_CONS_MASK; in do_write()696 cons_ptr = (cons_ptr - (int)sizeof(struct ring_entry)) & PROD_CONS_MASK; in do_write()699 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_write()723 ((cons_ptr - prod_ptr) & PROD_CONS_MASK) in do_write()1119 int prod_ptr, cons_ptr, total; in do_read() local1157 cons_ptr = port->ip_rx_cons; in do_read()1159 if (prod_ptr == cons_ptr) { in do_read()1187 if (prod_ptr == cons_ptr) { in do_read()1214 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_read()[all …]
1404 int prod_ptr, cons_ptr, total = 0; in do_write() local1412 cons_ptr = readl(&port->ip_serial_regs->stcir) & PROD_CONS_MASK; in do_write()1419 cons_ptr = (cons_ptr - (int)sizeof(struct ring_entry)) & PROD_CONS_MASK; in do_write()1422 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_write()1446 ((cons_ptr - prod_ptr) & PROD_CONS_MASK) in do_write()2068 int prod_ptr, cons_ptr, total; in do_read() local2105 cons_ptr = port->ip_rx_cons; in do_read()2107 if (prod_ptr == cons_ptr) { in do_read()2136 if (prod_ptr == cons_ptr) { in do_read()2163 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_read()[all …]