Lines Matching refs:hfc

29 				      (cs->hw.hfc.cip & 3));  in WaitForBusy()
61 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) in GetFreeFifoBytes()
62 return (bcs->cs->hw.hfc.fifosize); in GetFreeFifoBytes()
63 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; in GetFreeFifoBytes()
65 s += bcs->cs->hw.hfc.fifosize; in GetFreeFifoBytes()
66 s = bcs->cs->hw.hfc.fifosize - s; in GetFreeFifoBytes()
93 if ((cip & 0xc3) != (cs->hw.hfc.cip & 0xc3)) { in hfc_clear_fifo()
111 rcnt += cs->hw.hfc.fifosize; in hfc_clear_fifo()
251 if ((cip & 0xc3) != (cs->hw.hfc.cip & 0xc3)) { in hfc_fill_fifo()
257 bcs->hw.hfc.f1 = cs->BC_Read_Reg(cs, HFC_DATA, cip); in hfc_fill_fifo()
260 bcs->hw.hfc.f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); in hfc_fill_fifo()
261 bcs->hw.hfc.send[bcs->hw.hfc.f1] = ReadZReg(bcs, HFC_Z1 | HFC_SEND | HFC_CHANNEL(bcs->channel)); in hfc_fill_fifo()
264 bcs->channel, bcs->hw.hfc.f1, bcs->hw.hfc.f2, in hfc_fill_fifo()
265 bcs->hw.hfc.send[bcs->hw.hfc.f1]); in hfc_fill_fifo()
266 fcnt = bcs->hw.hfc.f1 - bcs->hw.hfc.f2; in hfc_fill_fifo()
282 count += cs->hw.hfc.fifosize; in hfc_fill_fifo()
337 if ((cip & 0xc3) != (cs->hw.hfc.cip & 0xc3)) { in main_irq_hfc()
361 rcnt += cs->hw.hfc.fifosize; in main_irq_hfc()
412 cs->hw.hfc.ctmt &= ~1; in mode_hfc()
413 cs->hw.hfc.isac_spcr &= ~0x03; in mode_hfc()
416 cs->hw.hfc.ctmt &= ~2; in mode_hfc()
417 cs->hw.hfc.isac_spcr &= ~0x0c; in mode_hfc()
421 cs->hw.hfc.ctmt &= ~(1 << bc); /* set HDLC mode */ in mode_hfc()
422 cs->BC_Write_Reg(cs, HFC_STATUS, cs->hw.hfc.ctmt, cs->hw.hfc.ctmt); in mode_hfc()
425 cs->hw.hfc.ctmt |= 1; in mode_hfc()
426 cs->hw.hfc.isac_spcr &= ~0x03; in mode_hfc()
427 cs->hw.hfc.isac_spcr |= 0x02; in mode_hfc()
429 cs->hw.hfc.ctmt |= 2; in mode_hfc()
430 cs->hw.hfc.isac_spcr &= ~0x0c; in mode_hfc()
431 cs->hw.hfc.isac_spcr |= 0x08; in mode_hfc()
436 cs->hw.hfc.ctmt &= ~1; in mode_hfc()
437 cs->hw.hfc.isac_spcr &= ~0x03; in mode_hfc()
438 cs->hw.hfc.isac_spcr |= 0x02; in mode_hfc()
440 cs->hw.hfc.ctmt &= ~2; in mode_hfc()
441 cs->hw.hfc.isac_spcr &= ~0x0c; in mode_hfc()
442 cs->hw.hfc.isac_spcr |= 0x08; in mode_hfc()
446 cs->BC_Write_Reg(cs, HFC_STATUS, cs->hw.hfc.ctmt, cs->hw.hfc.ctmt); in mode_hfc()
447 cs->writeisac(cs, ISAC_SPCR, cs->hw.hfc.isac_spcr); in mode_hfc()
560 bcs->hw.hfc.send = kmalloc_array(32, sizeof(unsigned int), GFP_ATOMIC); in init_send()
561 if (!bcs->hw.hfc.send) { in init_send()
567 bcs->hw.hfc.send[i] = 0x1fff; in init_send()
587 kfree(cs->bcs[0].hw.hfc.send); in releasehfc()
588 cs->bcs[0].hw.hfc.send = NULL; in releasehfc()
589 kfree(cs->bcs[1].hw.hfc.send); in releasehfc()
590 cs->bcs[1].hw.hfc.send = NULL; in releasehfc()