Lines Matching refs:protocol

48 static int  hfcsusb_setup_bch(struct bchannel *bch, int protocol);
222 ret = hfcsusb_setup_bch(bch, ch->protocol); in hfcusb_l2l1B()
256 phi->dch.ch.protocol = hw->protocol; in hfcsusb_ph_info()
261 phi->bch[i].protocol = hw->bch[i].ch.protocol; in hfcsusb_ph_info()
303 (hw->protocol == ISDN_P_NT_S0) ? "NT" : "TE"); in hfcusb_l2l1D()
305 if (hw->protocol == ISDN_P_NT_S0) { in hfcusb_l2l1D()
329 if (hw->protocol == ISDN_P_NT_S0) { in hfcusb_l2l1D()
425 if (rq->protocol == ISDN_P_NONE) in open_dchannel()
444 hw->protocol = rq->protocol; in open_dchannel()
445 if (rq->protocol == ISDN_P_TE_S0) { in open_dchannel()
451 ch->protocol = rq->protocol; in open_dchannel()
454 if (rq->protocol != ch->protocol) in open_dchannel()
458 if (((ch->protocol == ISDN_P_NT_S0) && (hw->dch.state == 3)) || in open_dchannel()
459 ((ch->protocol == ISDN_P_TE_S0) && (hw->dch.state == 7))) in open_dchannel()
476 if (rq->protocol == ISDN_P_NONE) in open_bchannel()
486 bch->ch.protocol = rq->protocol; in open_bchannel()
536 if ((rq->protocol == ISDN_P_TE_S0) || in hfc_dctrl()
537 (rq->protocol == ISDN_P_NT_S0)) in hfc_dctrl()
675 if (hw->protocol == ISDN_P_NT_S0) in ph_state()
677 else if (hw->protocol == ISDN_P_TE_S0) in ph_state()
685 hfcsusb_setup_bch(struct bchannel *bch, int protocol) in hfcsusb_setup_bch() argument
692 hw->name, __func__, bch->state, protocol, in hfcsusb_setup_bch()
697 if (protocol > ISDN_P_NONE) in hfcsusb_setup_bch()
700 switch (protocol) { in hfcsusb_setup_bch()
713 bch->state = protocol; in hfcsusb_setup_bch()
717 bch->state = protocol; in hfcsusb_setup_bch()
723 hw->name, __func__, protocol); in hfcsusb_setup_bch()
727 if (protocol >= ISDN_P_NONE) { in hfcsusb_setup_bch()
735 sctrl = 0x40 + ((hw->protocol == ISDN_P_TE_S0) ? 0x00 : 0x04); in hfcsusb_setup_bch()
748 if (protocol > ISDN_P_NONE) in hfcsusb_setup_bch()
1360 if ((fifon == HFCUSB_D_TX) && (hw->protocol == ISDN_P_NT_S0) in tx_iso_complete()
1529 (hw->protocol == ISDN_P_TE_S0) ? "TE" : "NT"); in setPortMode()
1531 if (hw->protocol == ISDN_P_TE_S0) { in setPortMode()
1589 (hw->protocol == ISDN_P_NT_S0) ? 0x08 : 0x09); in reset_hfcsusb()
1762 if (hw->protocol == ISDN_P_TE_S0) in release_hw()
1822 ch->protocol = ISDN_P_NONE; in hfc_bctrl()