Lines Matching refs:ch
196 hfcusb_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb)
198 struct bchannel *bch = container_of(ch, struct bchannel, ch);
221 ret = hfcsusb_setup_bch(bch, ch->protocol);
225 _queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
230 _queue_data(ch, PH_DEACTIVATE_IND, MISDN_ID_ANY,
255 phi->dch.ch.protocol = hw->protocol;
256 phi->dch.ch.Flags = dch->Flags;
260 phi->bch[i].protocol = hw->bch[i].ch.protocol;
274 hfcusb_l2l1D(struct mISDNchannel *ch, struct sk_buff *skb)
276 struct mISDNdevice *dev = container_of(ch, struct mISDNdevice, D);
294 queue_ch_frame(ch, PH_DATA_CNF, hh->id, NULL);
415 open_dchannel(struct hfcsusb *hw, struct mISDNchannel *ch,
450 ch->protocol = rq->protocol;
453 if (rq->protocol != ch->protocol)
457 if (((ch->protocol == ISDN_P_NT_S0) && (hw->dch.state == 3)) ||
458 ((ch->protocol == ISDN_P_TE_S0) && (hw->dch.state == 7)))
459 _queue_data(ch, PH_ACTIVATE_IND, MISDN_ID_ANY,
461 rq->ch = ch;
485 bch->ch.protocol = rq->protocol;
486 rq->ch = &bch->ch;
521 hfc_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
523 struct mISDNdevice *dev = container_of(ch, struct mISDNdevice, D);
537 err = open_dchannel(hw, ch, rq);
1803 hfc_bctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
1805 struct bchannel *bch = container_of(ch, struct bchannel, ch);
1821 ch->protocol = ISDN_P_NONE;
1822 ch->peer = NULL;
1868 hw->bch[i].ch.send = hfcusb_l2l1B;
1869 hw->bch[i].ch.ctrl = hfc_bctrl;
1870 hw->bch[i].ch.nr = i + 1;
1871 list_add(&hw->bch[i].ch.list, &hw->dch.dev.bchannels);