Lines Matching refs:bch
118 return &(card->bch[channel]); in find_channel()
1056 if (!(card->bch = (eicon_chan *) kmalloc(sizeof(eicon_chan) * (card->nchannels + 1) in eicon_alloccard()
1064 memset((char *)&card->bch[j], 0, sizeof(eicon_chan)); in eicon_alloccard()
1065 card->bch[j].statectrl = 0; in eicon_alloccard()
1066 card->bch[j].l2prot = ISDN_PROTO_L2_X75I; in eicon_alloccard()
1067 card->bch[j].l3prot = ISDN_PROTO_L3_TRANS; in eicon_alloccard()
1068 card->bch[j].e.D3Id = 0; in eicon_alloccard()
1069 card->bch[j].e.B2Id = 0; in eicon_alloccard()
1070 card->bch[j].e.Req = 0; in eicon_alloccard()
1071 card->bch[j].No = j; in eicon_alloccard()
1072 card->bch[j].tskb1 = NULL; in eicon_alloccard()
1073 card->bch[j].tskb2 = NULL; in eicon_alloccard()
1074 skb_queue_head_init(&card->bch[j].e.X); in eicon_alloccard()
1075 skb_queue_head_init(&card->bch[j].e.R); in eicon_alloccard()
1085 kfree(card->bch); in eicon_alloccard()
1092 kfree(card->bch); in eicon_alloccard()
1100 kfree(card->bch); in eicon_alloccard()
1107 card->bch[j].de.RBuffer = (DBUFFER *)&card->dbuf[j]; in eicon_alloccard()
1109 card->bch[j].be.RBuffer = (DBUFFER *)&card->dbuf[j+(card->nchannels+1)]; in eicon_alloccard()
1112 card->bch[j].de.X = (BUFFERS *)&card->sbuf[j]; in eicon_alloccard()
1114 card->bch[j].be.X = (BUFFERS *)&card->sbuf[j+(card->nchannels+1)]; in eicon_alloccard()
1117 card->bch[j].de.X->P = (char *)&card->sbufp[j * 270]; in eicon_alloccard()
1119 card->bch[j].be.X->P = (char *)&card->sbufp[(j+(card->nchannels+1)) * 270]; in eicon_alloccard()
1197 skb_queue_purge(&card->bch[i].e.X); in eicon_freecard()
1198 skb_queue_purge(&card->bch[i].e.R); in eicon_freecard()
1211 kfree(card->bch); in eicon_freecard()