Lines Matching refs:cs
130 debugl1(struct IsdnCardState *cs, char *fmt, ...) in debugl1() argument
136 sprintf(tmp, "Card%d ", cs->cardnr + 1); in debugl1()
137 VHiSax_putstatus(cs, tmp, fmt, args); in debugl1()
146 struct IsdnCardState *cs = st->l1.hardware; in l1m_debug() local
150 sprintf(tmp, "Card%d ", cs->cardnr + 1); in l1m_debug()
151 VHiSax_putstatus(cs, tmp, fmt, args); in l1m_debug()
156 L1activated(struct IsdnCardState *cs) in L1activated() argument
160 st = cs->stlist; in L1activated()
171 L1deactivated(struct IsdnCardState *cs) in L1deactivated() argument
175 st = cs->stlist; in L1deactivated()
177 if (test_bit(FLG_L1_DBUSY, &cs->HW_Flags)) in L1deactivated()
182 test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags); in L1deactivated()
186 DChannel_proc_xmt(struct IsdnCardState *cs) in DChannel_proc_xmt() argument
190 if (cs->tx_skb) in DChannel_proc_xmt()
193 stptr = cs->stlist; in DChannel_proc_xmt()
204 DChannel_proc_rcv(struct IsdnCardState *cs) in DChannel_proc_rcv() argument
207 struct PStack *stptr = cs->stlist; in DChannel_proc_rcv()
213 while ((skb = skb_dequeue(&cs->rq))) { in DChannel_proc_rcv()
215 if (cs->debug & L1_DEB_LAPD) in DChannel_proc_rcv()
216 Logl2Frame(cs, skb, "PH_DATA", 1); in DChannel_proc_rcv()
218 stptr = cs->stlist; in DChannel_proc_rcv()
220 debugl1(cs, "D-channel frame too short(%d)", skb->len); in DChannel_proc_rcv()
225 debugl1(cs, "D-channel frame wrong EA0/EA1"); in DChannel_proc_rcv()
231 if (cs->debug & DEB_DLOG_HEX) in DChannel_proc_rcv()
232 LogFrame(cs, skb->data, skb->len); in DChannel_proc_rcv()
233 if (cs->debug & DEB_DLOG_VERBOSE) in DChannel_proc_rcv()
234 dlogframe(cs, skb, 1); in DChannel_proc_rcv()
276 debugl1(bcs->cs, "BC_BUSY Error"); in BChannel_proc_xmt()
334 HiSax_addlist(struct IsdnCardState *cs, in HiSax_addlist() argument
337 st->next = cs->stlist; in HiSax_addlist()
338 cs->stlist = st; in HiSax_addlist()
342 HiSax_rmlist(struct IsdnCardState *cs, in HiSax_rmlist() argument
348 if (cs->stlist == st) in HiSax_rmlist()
349 cs->stlist = st->next; in HiSax_rmlist()
351 p = cs->stlist; in HiSax_rmlist()
362 init_bcstate(struct IsdnCardState *cs, int bc) in init_bcstate() argument
364 struct BCState *bcs = cs->bcs + bc; in init_bcstate()
366 bcs->cs = cs; in init_bcstate()
442 Logl2Frame(struct IsdnCardState *cs, struct sk_buff *skb, char *buf, int dir) in Logl2Frame() argument
449 debugl1(cs, "Address not LAPD"); in Logl2Frame()
451 debugl1(cs, "%s %s: %s%c (sapi %d, tei %d)", in Logl2Frame()
803 struct IsdnCardState *cs = (struct IsdnCardState *) st->l1.hardware; in dch_l2l1() local
812 if (cs->debug) in dch_l2l1()
813 debugl1(cs, "PH_ACTIVATE_REQ %s", in dch_l2l1()
824 debugl1(cs, "PH_TEST_LOOP B1"); in dch_l2l1()
826 debugl1(cs, "PH_TEST_LOOP B2"); in dch_l2l1()
828 debugl1(cs, "PH_TEST_LOOP DISABLED"); in dch_l2l1()
832 if (cs->debug) in dch_l2l1()
833 debugl1(cs, "dch_l2l1 msg %04X unhandled", pr); in dch_l2l1()
839 l1_msg(struct IsdnCardState *cs, int pr, void *arg) { in l1_msg() argument
842 st = cs->stlist; in l1_msg()
869 if (cs->debug) in l1_msg()
870 debugl1(cs, "%s %04X unhandled", __func__, pr); in l1_msg()
890 setstack_HiSax(struct PStack *st, struct IsdnCardState *cs) in setstack_HiSax() argument
892 st->l1.hardware = cs; in setstack_HiSax()
893 st->protocol = cs->protocol; in setstack_HiSax()
898 if (test_bit(FLG_HW_L1_UINT, &cs->HW_Flags)) { in setstack_HiSax()
904 st->l1.l1m.debug = cs->debug; in setstack_HiSax()
911 st->l1.stlistp = &(cs->stlist); in setstack_HiSax()
913 if (cs->setstack_d) in setstack_HiSax()
914 cs->setstack_d(st, cs); in setstack_HiSax()
920 struct IsdnCardState *cs = st->l1.hardware; in setstack_l1_B() local
924 st->l1.l1m.debug = cs->debug; in setstack_l1_B()