Lines Matching defs:protocol

47 static int  hfcsusb_setup_bch(struct bchannel *bch, int protocol);
221 ret = hfcsusb_setup_bch(bch, ch->protocol);
255 phi->dch.ch.protocol = hw->protocol;
260 phi->bch[i].protocol = hw->bch[i].ch.protocol;
302 (hw->protocol == ISDN_P_NT_S0) ? "NT" : "TE");
304 if (hw->protocol == ISDN_P_NT_S0) {
328 if (hw->protocol == ISDN_P_NT_S0) {
424 if (rq->protocol == ISDN_P_NONE)
443 hw->protocol = rq->protocol;
444 if (rq->protocol == ISDN_P_TE_S0) {
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)))
475 if (rq->protocol == ISDN_P_NONE)
485 bch->ch.protocol = rq->protocol;
535 if ((rq->protocol == ISDN_P_TE_S0) ||
536 (rq->protocol == ISDN_P_NT_S0))
674 if (hw->protocol == ISDN_P_NT_S0)
676 else if (hw->protocol == ISDN_P_TE_S0)
684 hfcsusb_setup_bch(struct bchannel *bch, int protocol)
690 printk(KERN_DEBUG "%s: %s: protocol %x-->%x B%d\n",
691 hw->name, __func__, bch->state, protocol,
696 if (protocol > ISDN_P_NONE)
699 switch (protocol) {
712 bch->state = protocol;
716 bch->state = protocol;
722 hw->name, __func__, protocol);
726 if (protocol >= ISDN_P_NONE) {
734 sctrl = 0x40 + ((hw->protocol == ISDN_P_TE_S0) ? 0x00 : 0x04);
747 if (protocol > ISDN_P_NONE)
1359 if ((fifon == HFCUSB_D_TX) && (hw->protocol == ISDN_P_NT_S0)
1528 (hw->protocol == ISDN_P_TE_S0) ? "TE" : "NT");
1530 if (hw->protocol == ISDN_P_TE_S0) {
1588 (hw->protocol == ISDN_P_NT_S0) ? 0x08 : 0x09);
1761 if (hw->protocol == ISDN_P_TE_S0)
1821 ch->protocol = ISDN_P_NONE;