Lines Matching defs:rq
978 open_dchannel(struct l1oip *hc, struct dchannel *dch, struct channel_req *rq)
983 if (rq->protocol == ISDN_P_NONE)
986 (dch->dev.D.protocol != rq->protocol)) {
989 __func__, dch->dev.D.protocol, rq->protocol);
991 if (dch->dev.D.protocol != rq->protocol)
992 dch->dev.D.protocol = rq->protocol;
998 rq->ch = &dch->dev.D;
1005 open_bchannel(struct l1oip *hc, struct dchannel *dch, struct channel_req *rq)
1010 if (!test_channelmap(rq->adr.channel, dch->dev.channelmap))
1012 if (rq->protocol == ISDN_P_NONE)
1014 ch = rq->adr.channel; /* BRI: 1=B1 2=B2 PRI: 1..15,17.. */
1023 bch->ch.protocol = rq->protocol;
1024 rq->ch = &bch->ch;
1036 struct channel_req *rq;
1044 rq = arg;
1045 switch (rq->protocol) {
1052 err = open_dchannel(hc, dch, rq);
1060 err = open_dchannel(hc, dch, rq);
1063 err = open_bchannel(hc, dch, rq);