Lines Matching refs:bchan

272 W6692B_interrupt(struct IsdnCardState *cs, u_char bchan)  in W6692B_interrupt()  argument
280 bcs = (cs->bcs->channel == bchan) ? cs->bcs : (cs->bcs+1); in W6692B_interrupt()
281 val = cs->BC_Read_Reg(cs, bchan, W_B_EXIR); in W6692B_interrupt()
282 debugl1(cs, "W6692B chan %d B_EXIR 0x%02X", bchan, val); in W6692B_interrupt()
289 r = cs->BC_Read_Reg(cs, bchan, W_B_STAR); in W6692B_interrupt()
300 cs->BC_Write_Reg(cs, bchan, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RRST | W_B_CMDR_RACT); in W6692B_interrupt()
302 count = cs->BC_Read_Reg(cs, bchan, W_B_RBCL) & (W_B_FIFO_THRESH - 1); in W6692B_interrupt()
322 r = cs->BC_Read_Reg(cs, bchan, W_B_STAR); in W6692B_interrupt()
326 cs->BC_Write_Reg(cs, bchan, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RRST | W_B_CMDR_RACT); in W6692B_interrupt()
343 cs->BC_Write_Reg(cs, bchan, W_B_CMDR, W_B_CMDR_XRST | W_B_CMDR_RACT); in W6692B_interrupt()
361 r = cs->BC_Read_Reg(cs, bchan, W_B_STAR); in W6692B_interrupt()
365 cs->BC_Write_Reg(cs, bchan, W_B_CMDR, W_B_CMDR_XRST | W_B_CMDR_RACT); in W6692B_interrupt()
725 W6692Bmode(struct BCState *bcs, int mode, int bchan) in W6692Bmode() argument
731 '1' + bchan, mode, bchan); in W6692Bmode()
733 bcs->channel = bchan; in W6692Bmode()
734 bcs->hw.w6692.bchan = bchan; in W6692Bmode()
738 cs->BC_Write_Reg(cs, bchan, W_B_MODE, 0); in W6692Bmode()
741 cs->BC_Write_Reg(cs, bchan, W_B_MODE, W_B_MODE_MMS); in W6692Bmode()
744 cs->BC_Write_Reg(cs, bchan, W_B_MODE, W_B_MODE_ITF); in W6692Bmode()
745 cs->BC_Write_Reg(cs, bchan, W_B_ADM1, 0xff); in W6692Bmode()
746 cs->BC_Write_Reg(cs, bchan, W_B_ADM2, 0xff); in W6692Bmode()
750 cs->BC_Write_Reg(cs, bchan, W_B_CMDR, W_B_CMDR_RRST | in W6692Bmode()
752 cs->BC_Write_Reg(cs, bchan, W_B_EXIM, 0x00); in W6692Bmode()
958 ReadW6692B(struct IsdnCardState *cs, int bchan, u_char offset) in ReadW6692B() argument
960 return (inb(cs->hw.w6692.iobase + (bchan ? 0x40 : 0) + offset)); in ReadW6692B()
964 WriteW6692B(struct IsdnCardState *cs, int bchan, u_char offset, u_char value) in WriteW6692B() argument
966 outb(value, cs->hw.w6692.iobase + (bchan ? 0x40 : 0) + offset); in WriteW6692B()