Lines Matching refs:prod_ptr
675 int prod_ptr, cons_ptr, total = 0;
682 prod_ptr = port->ip_tx_prod;
693 while ((prod_ptr != cons_ptr) && (len > 0)) {
697 entry = (struct ring_entry *)((caddr_t) outring + prod_ptr);
717 ((cons_ptr - prod_ptr) & PROD_CONS_MASK)
724 prod_ptr += sizeof(struct ring_entry);
725 prod_ptr &= PROD_CONS_MASK;
738 writel(prod_ptr, &port->ip_serial_regs->stpir);
746 port->ip_tx_prod = prod_ptr;
1113 int prod_ptr, cons_ptr, total;
1149 prod_ptr = readl(&port->ip_serial_regs->srpir) & PROD_CONS_MASK;
1152 if (prod_ptr == cons_ptr) {
1171 prod_ptr = readl(&port->ip_serial_regs->srpir) & PROD_CONS_MASK;
1180 if (prod_ptr == cons_ptr) {
1189 /* SIGH. We have to reload the prod_ptr *again* since
1192 prod_ptr = readl(&port->ip_serial_regs->srpir)
1207 while ((prod_ptr != cons_ptr) && (len > 0)) {
1371 if ((port->ip_flags & INPUT_HIGH) && (((prod_ptr - cons_ptr)