Lines Matching refs:df

459 	struct dfifo	*df;  in receive_dmsg()  local
462 df = &((union fifo_area *)(hc->hw.fifos))->d_chan.d_rx; in receive_dmsg()
463 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg()
464 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg()
472 df->f1, df->f2, in receive_dmsg()
478 (df->data[le16_to_cpu(zp->z1)])) { in receive_dmsg()
484 df->data[le16_to_cpu(zp->z1)]); in receive_dmsg()
488 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg()
490 df->za[df->f2 & D_FREG_MASK].z2 = in receive_dmsg()
510 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg()
517 ptr1 = df->data; /* start of buffer */ in receive_dmsg()
520 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg()
522 df->za[df->f2 & D_FREG_MASK].z2 = cpu_to_le16(( in receive_dmsg()
667 struct dfifo *df; in hfcpci_fill_dfifo() local
678 df = &((union fifo_area *) (hc->hw.fifos))->d_chan.d_tx; in hfcpci_fill_dfifo()
682 df->f1, df->f2, in hfcpci_fill_dfifo()
683 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1)); in hfcpci_fill_dfifo()
684 fcnt = df->f1 - df->f2; /* frame count actually buffered */ in hfcpci_fill_dfifo()
697 maxlen = le16_to_cpu(df->za[df->f2 & D_FREG_MASK].z2) - in hfcpci_fill_dfifo()
698 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1) - 1; in hfcpci_fill_dfifo()
710 new_z1 = (le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1) + count) & in hfcpci_fill_dfifo()
712 new_f1 = ((df->f1 + 1) & D_FREG_MASK) | (D_FREG_MASK + 1); in hfcpci_fill_dfifo()
714 dst = df->data + le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1); in hfcpci_fill_dfifo()
715 maxlen = D_FIFO_SIZE - le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1); in hfcpci_fill_dfifo()
723 dst = df->data; /* start of buffer */ in hfcpci_fill_dfifo()
727 df->za[new_f1 & D_FREG_MASK].z1 = cpu_to_le16(new_z1); in hfcpci_fill_dfifo()
729 df->za[df->f1 & D_FREG_MASK].z1 = cpu_to_le16(new_z1); in hfcpci_fill_dfifo()
731 df->f1 = new_f1; /* next frame */ in hfcpci_fill_dfifo()