Lines Matching refs:hscx

17 waitforCEC(struct IsdnCardState *cs, int hscx)  in waitforCEC()  argument
21 while ((READHSCX(cs, hscx, HSCX_STAR) & 0x04) && to) { in waitforCEC()
31 waitforXFW(struct IsdnCardState *cs, int hscx) in waitforXFW() argument
35 while (((READHSCX(cs, hscx, HSCX_STAR) & 0x44) != 0x40) && to) { in waitforXFW()
44 WriteHSCXCMDR(struct IsdnCardState *cs, int hscx, u_char data) in WriteHSCXCMDR() argument
46 waitforCEC(cs, hscx); in WriteHSCXCMDR()
47 WRITEHSCX(cs, hscx, HSCX_CMDR, data); in WriteHSCXCMDR()
61 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in hscx_empty_fifo()
64 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in hscx_empty_fifo()
65 bcs->hw.hscx.rcvidx = 0; in hscx_empty_fifo()
68 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in hscx_empty_fifo()
69 bcs->hw.hscx.rcvidx += count; in hscx_empty_fifo()
70 READHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in hscx_empty_fifo()
71 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in hscx_empty_fifo()
76 bcs->hw.hscx.hscx ? 'B' : 'A', count); in hscx_empty_fifo()
105 waitforXFW(cs, bcs->hw.hscx.hscx); in hscx_fill_fifo()
109 bcs->hw.hscx.count += count; in hscx_fill_fifo()
110 WRITEHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in hscx_fill_fifo()
111 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, more ? 0x8 : 0xa); in hscx_fill_fifo()
116 bcs->hw.hscx.hscx ? 'B' : 'A', count); in hscx_fill_fifo()
123 hscx_interrupt(struct IsdnCardState *cs, u_char val, u_char hscx) in hscx_interrupt() argument
126 struct BCState *bcs = cs->bcs + hscx; in hscx_interrupt()
135 r = READHSCX(cs, hscx, HSCX_RSTA); in hscx_interrupt()
159 WriteHSCXCMDR(cs, hscx, 0x80); in hscx_interrupt()
161 count = READHSCX(cs, hscx, HSCX_RBCL) & ( in hscx_interrupt()
166 if ((count = bcs->hw.hscx.rcvidx - 1) > 0) { in hscx_interrupt()
172 skb_put_data(skb, bcs->hw.hscx.rcvbuf, in hscx_interrupt()
178 bcs->hw.hscx.rcvidx = 0; in hscx_interrupt()
188 skb_put_data(skb, bcs->hw.hscx.rcvbuf, in hscx_interrupt()
192 bcs->hw.hscx.rcvidx = 0; in hscx_interrupt()
206 bcs->ackcnt += bcs->hw.hscx.count; in hscx_interrupt()
211 bcs->hw.hscx.count = 0; in hscx_interrupt()
216 bcs->hw.hscx.count = 0; in hscx_interrupt()
247 skb_push(bcs->tx_skb, bcs->hw.hscx.count); in hscx_int_main()
248 bcs->tx_cnt += bcs->hw.hscx.count; in hscx_int_main()
249 bcs->hw.hscx.count = 0; in hscx_int_main()
251 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x01); in hscx_int_main()
277 skb_push(bcs->tx_skb, bcs->hw.hscx.count); in hscx_int_main()
278 bcs->tx_cnt += bcs->hw.hscx.count; in hscx_int_main()
279 bcs->hw.hscx.count = 0; in hscx_int_main()
281 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x01); in hscx_int_main()