Lines Matching refs:prod_ptr
1404 int prod_ptr, cons_ptr, total = 0;
1411 prod_ptr = port->ip_tx_prod;
1422 while ((prod_ptr != cons_ptr) && (len > 0)) {
1426 entry = (struct ring_entry *)((caddr_t) outring + prod_ptr);
1446 ((cons_ptr - prod_ptr) & PROD_CONS_MASK)
1454 prod_ptr += sizeof(struct ring_entry);
1455 prod_ptr &= PROD_CONS_MASK;
1468 writel(prod_ptr, &port->ip_serial_regs->stpir);
1476 port->ip_tx_prod = prod_ptr;
2068 int prod_ptr, cons_ptr, total;
2103 prod_ptr = readl(&port->ip_serial_regs->srpir) & PROD_CONS_MASK;
2106 if (prod_ptr == cons_ptr) {
2125 prod_ptr = readl(&port->ip_serial_regs->srpir)
2135 if (prod_ptr == cons_ptr) {
2144 /* SIGH. We have to reload the prod_ptr *again* since
2147 prod_ptr = readl(&port->ip_serial_regs->srpir)
2162 while ((prod_ptr != cons_ptr) && (len > 0)) {
2326 if ((port->ip_flags & INPUT_HIGH) && (((prod_ptr - cons_ptr)