Searched refs:cons_ptr (Results 1 – 2 of 2) sorted by relevance
678 int prod_ptr, cons_ptr, total = 0; in do_write() local686 cons_ptr = readl(&port->ip_serial_regs->stcir) & PROD_CONS_MASK; in do_write()693 cons_ptr = (cons_ptr - (int)sizeof(struct ring_entry)) & PROD_CONS_MASK; in do_write()696 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_write()720 ((cons_ptr - prod_ptr) & PROD_CONS_MASK) in do_write()1116 int prod_ptr, cons_ptr, total; in do_read() local1154 cons_ptr = port->ip_rx_cons; in do_read()1156 if (prod_ptr == cons_ptr) { in do_read()1184 if (prod_ptr == cons_ptr) { in do_read()1211 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_read()[all …]
1407 int prod_ptr, cons_ptr, total = 0; in do_write() local1415 cons_ptr = readl(&port->ip_serial_regs->stcir) & PROD_CONS_MASK; in do_write()1422 cons_ptr = (cons_ptr - (int)sizeof(struct ring_entry)) & PROD_CONS_MASK; in do_write()1425 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_write()1449 ((cons_ptr - prod_ptr) & PROD_CONS_MASK) in do_write()2071 int prod_ptr, cons_ptr, total; in do_read() local2108 cons_ptr = port->ip_rx_cons; in do_read()2110 if (prod_ptr == cons_ptr) { in do_read()2139 if (prod_ptr == cons_ptr) { in do_read()2166 while ((prod_ptr != cons_ptr) && (len > 0)) { in do_read()[all …]