Lines Matching refs:cip
40 if (cs->hw.hfcD.cip != reg) { in ReadReg()
41 cs->hw.hfcD.cip = reg; in ReadReg()
57 if (cs->hw.hfcD.cip != reg) { in WriteReg()
58 cs->hw.hfcD.cip = reg; in WriteReg()
114 u_char cip; in SelFiFo() local
119 case 0: cip = HFCB_FIFO | HFCB_Z1 | HFCB_SEND | HFCB_B1; in SelFiFo()
121 case 1: cip = HFCB_FIFO | HFCB_Z1 | HFCB_REC | HFCB_B1; in SelFiFo()
123 case 2: cip = HFCB_FIFO | HFCB_Z1 | HFCB_SEND | HFCB_B2; in SelFiFo()
125 case 3: cip = HFCB_FIFO | HFCB_Z1 | HFCB_REC | HFCB_B2; in SelFiFo()
127 case 4: cip = HFCD_FIFO | HFCD_Z1 | HFCD_SEND; in SelFiFo()
129 case 5: cip = HFCD_FIFO | HFCD_Z1 | HFCD_REC; in SelFiFo()
137 cs->BC_Write_Reg(cs, HFCD_DATA, cip, 0); in SelFiFo()
190 u_char stat, cip; in hfc_empty_fifo() local
198 cip = HFCB_FIFO | HFCB_FIFO_OUT | HFCB_REC | HFCB_CHANNEL(bcs->channel); in hfc_empty_fifo()
201 ReadReg(cs, HFCD_DATA_NODEB, cip); in hfc_empty_fifo()
207 cip = HFCB_FIFO | HFCB_FIFO_OUT | HFCB_REC | HFCB_CHANNEL(bcs->channel); in hfc_empty_fifo()
212 ReadReg(cs, HFCD_DATA_NODEB, cip); in hfc_empty_fifo()
219 cip = HFCB_FIFO | HFCB_FIFO_OUT | HFCB_REC | HFCB_CHANNEL(bcs->channel); in hfc_empty_fifo()
223 *ptr = ReadReg(cs, HFCD_DATA_NODEB, cip); in hfc_empty_fifo()
234 chksum = (ReadReg(cs, HFCD_DATA, cip) << 8); in hfc_empty_fifo()
236 chksum += ReadReg(cs, HFCD_DATA, cip); in hfc_empty_fifo()
238 stat = ReadReg(cs, HFCD_DATA, cip); in hfc_empty_fifo()
266 u_char cip; in hfc_fill_fifo() local
273 cip = HFCB_FIFO | HFCB_F1 | HFCB_SEND | HFCB_CHANNEL(bcs->channel); in hfc_fill_fifo()
275 bcs->hw.hfc.f1 = ReadReg(cs, HFCD_DATA, cip); in hfc_fill_fifo()
277 cip = HFCB_FIFO | HFCB_F2 | HFCB_SEND | HFCB_CHANNEL(bcs->channel); in hfc_fill_fifo()
279 bcs->hw.hfc.f2 = ReadReg(cs, HFCD_DATA, cip); in hfc_fill_fifo()
303 cip = HFCB_FIFO | HFCB_FIFO_IN | HFCB_SEND | HFCB_CHANNEL(bcs->channel); in hfc_fill_fifo()
307 WriteReg(cs, HFCD_DATA_NODEB, cip, bcs->tx_skb->data[idx++]); in hfc_fill_fifo()
311 WriteReg(cs, HFCD_DATA_NODEB, cip, bcs->tx_skb->data[idx]); in hfc_fill_fifo()
355 u_char f1, f2, cip; in main_rec_2bds0() local
366 cip = HFCB_FIFO | HFCB_F1 | HFCB_REC | HFCB_CHANNEL(bcs->channel); in main_rec_2bds0()
368 f1 = ReadReg(cs, HFCD_DATA, cip); in main_rec_2bds0()
369 cip = HFCB_FIFO | HFCB_F2 | HFCB_REC | HFCB_CHANNEL(bcs->channel); in main_rec_2bds0()
371 f2 = ReadReg(cs, HFCD_DATA, cip); in main_rec_2bds0()
592 u_char stat, cip, f1, f2; in receive_dmsg() local
602 cip = HFCD_FIFO | HFCD_F1 | HFCD_REC; in receive_dmsg()
604 f1 = cs->readisac(cs, cip) & 0xf; in receive_dmsg()
605 cip = HFCD_FIFO | HFCD_F2 | HFCD_REC; in receive_dmsg()
607 f2 = cs->readisac(cs, cip) & 0xf; in receive_dmsg()
619 cip = HFCD_FIFO | HFCD_FIFO_OUT | HFCD_REC; in receive_dmsg()
626 ReadReg(cs, HFCD_DATA_NODEB, cip); in receive_dmsg()
633 ReadReg(cs, HFCD_DATA_NODEB, cip); in receive_dmsg()
639 *ptr = ReadReg(cs, HFCD_DATA_NODEB, cip); in receive_dmsg()
653 chksum = (ReadReg(cs, HFCD_DATA, cip) << 8); in receive_dmsg()
655 chksum += ReadReg(cs, HFCD_DATA, cip); in receive_dmsg()
657 stat = ReadReg(cs, HFCD_DATA, cip); in receive_dmsg()
676 cip = HFCD_FIFO | HFCD_F2_INC | HFCD_REC; in receive_dmsg()
678 stat = ReadReg(cs, HFCD_DATA, cip); in receive_dmsg()
680 cip = HFCD_FIFO | HFCD_F2 | HFCD_REC; in receive_dmsg()
682 f2 = cs->readisac(cs, cip) & 0xf; in receive_dmsg()
693 u_char cip; in hfc_fill_dfifo() local
701 cip = HFCD_FIFO | HFCD_F1 | HFCD_SEND; in hfc_fill_dfifo()
703 cs->hw.hfcD.f1 = ReadReg(cs, HFCD_DATA, cip) & 0xf; in hfc_fill_dfifo()
705 cip = HFCD_FIFO | HFCD_F2 | HFCD_SEND; in hfc_fill_dfifo()
706 cs->hw.hfcD.f2 = ReadReg(cs, HFCD_DATA, cip) & 0xf; in hfc_fill_dfifo()
729 cip = HFCD_FIFO | HFCD_FIFO_IN | HFCD_SEND; in hfc_fill_dfifo()
733 WriteReg(cs, HFCD_DATA_NODEB, cip, cs->tx_skb->data[idx++]); in hfc_fill_dfifo()
737 WriteReg(cs, HFCD_DATA_NODEB, cip, cs->tx_skb->data[idx]); in hfc_fill_dfifo()