Lines Matching refs:protocol

96 	unsigned char		protocol;  member
172 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_setmode()
1037 if (hc->hw.protocol == ISDN_P_NT_S0) { in ph_state()
1179 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_int()
1237 mode_hfcpci(struct bchannel *bch, int bc, int protocol) in mode_hfcpci() argument
1246 bch->state, protocol, bch->nr, bc); in mode_hfcpci()
1258 } else if (test_bit(HFC_CFG_PCM, &hc->cfg) && (protocol > ISDN_P_NONE)) in mode_hfcpci()
1266 if (protocol != ISDN_P_NONE) { in mode_hfcpci()
1279 switch (protocol) { in mode_hfcpci()
1315 bch->state = protocol; in mode_hfcpci()
1350 bch->state = protocol; in mode_hfcpci()
1379 printk(KERN_DEBUG "prot not known %x\n", protocol); in mode_hfcpci()
1383 if ((protocol == ISDN_P_NONE) || in mode_hfcpci()
1384 (protocol == -1)) { /* init case */ in mode_hfcpci()
1430 set_hfcpci_rxtest(struct bchannel *bch, int protocol, int chan) in set_hfcpci_rxtest() argument
1437 bch->state, protocol, bch->nr, chan); in set_hfcpci_rxtest()
1444 switch (protocol) { in set_hfcpci_rxtest()
1446 bch->state = protocol; in set_hfcpci_rxtest()
1471 bch->state = protocol; in set_hfcpci_rxtest()
1490 printk(KERN_DEBUG "prot not known %x\n", protocol); in set_hfcpci_rxtest()
1554 ch->protocol = ISDN_P_NONE; in hfc_bctrl()
1598 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_l2l1D()
1619 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_l2l1D()
1683 ret = mode_hfcpci(bch, bch->nr, ch->protocol); in hfcpci_l2l1B()
1886 if (rq->protocol == ISDN_P_NONE) in open_dchannel()
1893 if (rq->protocol == ISDN_P_TE_S0) { in open_dchannel()
1898 hc->hw.protocol = rq->protocol; in open_dchannel()
1899 ch->protocol = rq->protocol; in open_dchannel()
1904 if (rq->protocol != ch->protocol) { in open_dchannel()
1905 if (hc->hw.protocol == ISDN_P_TE_S0) in open_dchannel()
1907 if (rq->protocol == ISDN_P_TE_S0) { in open_dchannel()
1912 hc->hw.protocol = rq->protocol; in open_dchannel()
1913 ch->protocol = rq->protocol; in open_dchannel()
1918 if (((ch->protocol == ISDN_P_NT_S0) && (hc->dch.state == 3)) || in open_dchannel()
1919 ((ch->protocol == ISDN_P_TE_S0) && (hc->dch.state == 7))) { in open_dchannel()
1936 if (rq->protocol == ISDN_P_NONE) in open_bchannel()
1941 bch->ch.protocol = rq->protocol; in open_bchannel()
1966 if ((rq->protocol == ISDN_P_TE_S0) || in hfc_dctrl()
1967 (rq->protocol == ISDN_P_NT_S0)) in hfc_dctrl()
2070 if (hc->hw.protocol == ISDN_P_TE_S0) in release_card()