Lines Matching refs:protocol
110 unsigned char protocol; member
185 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_setmode()
1050 if (hc->hw.protocol == ISDN_P_NT_S0) { in ph_state()
1194 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_int()
1252 mode_hfcpci(struct bchannel *bch, int bc, int protocol) in mode_hfcpci() argument
1261 bch->state, protocol, bch->nr, bc); in mode_hfcpci()
1273 } else if (test_bit(HFC_CFG_PCM, &hc->cfg) && (protocol > ISDN_P_NONE)) in mode_hfcpci()
1281 if (protocol != ISDN_P_NONE) { in mode_hfcpci()
1294 switch (protocol) { in mode_hfcpci()
1329 bch->state = protocol; in mode_hfcpci()
1364 bch->state = protocol; in mode_hfcpci()
1393 printk(KERN_DEBUG "prot not known %x\n", protocol); in mode_hfcpci()
1397 if ((protocol == ISDN_P_NONE) || in mode_hfcpci()
1398 (protocol == -1)) { /* init case */ in mode_hfcpci()
1444 set_hfcpci_rxtest(struct bchannel *bch, int protocol, int chan) in set_hfcpci_rxtest() argument
1451 bch->state, protocol, bch->nr, chan); in set_hfcpci_rxtest()
1458 switch (protocol) { in set_hfcpci_rxtest()
1460 bch->state = protocol; in set_hfcpci_rxtest()
1485 bch->state = protocol; in set_hfcpci_rxtest()
1504 printk(KERN_DEBUG "prot not known %x\n", protocol); in set_hfcpci_rxtest()
1568 ch->protocol = ISDN_P_NONE; in hfc_bctrl()
1612 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_l2l1D()
1633 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_l2l1D()
1692 ret = mode_hfcpci(bch, bch->nr, ch->protocol); in hfcpci_l2l1B()
1897 if (rq->protocol == ISDN_P_NONE) 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()
1916 if (hc->hw.protocol == ISDN_P_TE_S0) 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()
1929 if (((ch->protocol == ISDN_P_NT_S0) && (hc->dch.state == 3)) || in open_dchannel()
1930 ((ch->protocol == ISDN_P_TE_S0) && (hc->dch.state == 7))) { in open_dchannel()
1947 if (rq->protocol == ISDN_P_NONE) in open_bchannel()
1952 bch->ch.protocol = rq->protocol; in open_bchannel()
1977 if ((rq->protocol == ISDN_P_TE_S0) || in hfc_dctrl()
1978 (rq->protocol == ISDN_P_NT_S0)) in hfc_dctrl()
2069 if (hc->hw.protocol == ISDN_P_TE_S0) in release_card()