Lines Matching refs:rq
1890 struct channel_req *rq) in open_dchannel() argument
1897 if (rq->protocol == ISDN_P_NONE) in open_dchannel()
1899 if (rq->adr.channel == 1) { in open_dchannel()
1904 if (rq->protocol == ISDN_P_TE_S0) { in open_dchannel()
1909 hc->hw.protocol = rq->protocol; in open_dchannel()
1910 ch->protocol = rq->protocol; in open_dchannel()
1915 if (rq->protocol != ch->protocol) { in open_dchannel()
1918 if (rq->protocol == ISDN_P_TE_S0) { in open_dchannel()
1923 hc->hw.protocol = rq->protocol; in open_dchannel()
1924 ch->protocol = rq->protocol; in open_dchannel()
1934 rq->ch = ch; in open_dchannel()
1941 open_bchannel(struct hfc_pci *hc, struct channel_req *rq) in open_bchannel() argument
1945 if (rq->adr.channel == 0 || rq->adr.channel > 2) in open_bchannel()
1947 if (rq->protocol == ISDN_P_NONE) in open_bchannel()
1949 bch = &hc->bch[rq->adr.channel - 1]; in open_bchannel()
1952 bch->ch.protocol = rq->protocol; in open_bchannel()
1953 rq->ch = &bch->ch; /* TODO: E-channel */ in open_bchannel()
1968 struct channel_req *rq; in hfc_dctrl() local
1976 rq = arg; in hfc_dctrl()
1977 if ((rq->protocol == ISDN_P_TE_S0) || in hfc_dctrl()
1978 (rq->protocol == ISDN_P_NT_S0)) in hfc_dctrl()
1979 err = open_dchannel(hc, ch, rq); in hfc_dctrl()
1981 err = open_bchannel(hc, rq); in hfc_dctrl()