Lines Matching refs:dev
1640 if (dch->dev.D.protocol == ISDN_P_NT_S0) in hfcmulti_leds()
1704 if (dch->dev.D.protocol == ISDN_P_NT_S0) in hfcmulti_leds()
1751 if (dch->dev.D.protocol == ISDN_P_NT_S0) in hfcmulti_leds()
2562 dch->dev.D.protocol == ISDN_P_TE_S0) { in ph_state_irq()
2571 if (dch->dev.D.protocol == ISDN_P_NT_S0) in ph_state_irq()
3274 _queue_data(&dch->dev.D, cmd, MISDN_ID_ANY, 0, NULL, in hfcm_l1callback()
3279 _queue_data(&dch->dev.D, cmd, MISDN_ID_ANY, 0, NULL, in hfcm_l1callback()
3298 struct mISDNdevice *dev = container_of(ch, struct mISDNdevice, D); in handle_dmsg() local
3299 struct dchannel *dch = container_of(dev, struct dchannel, dev); in handle_dmsg()
3325 if (dch->dev.D.protocol != ISDN_P_TE_S0) { in handle_dmsg()
3359 if (dch->dev.D.protocol != ISDN_P_TE_S0) { in handle_dmsg()
3706 if (dch->dev.D.protocol == ISDN_P_TE_E1) { in ph_state_change()
3731 _queue_data(&dch->dev.D, PH_ACTIVATE_IND, in ph_state_change()
3739 _queue_data(&dch->dev.D, PH_DEACTIVATE_IND, in ph_state_change()
3744 if (dch->dev.D.protocol == ISDN_P_TE_S0) { in ph_state_change()
3800 _queue_data(&dch->dev.D, PH_DEACTIVATE_IND, in ph_state_change()
3809 _queue_data(&dch->dev.D, PH_ACTIVATE_IND, in ph_state_change()
3839 mode_hfcmulti(hc, dch->slot, dch->dev.D.protocol, in hfcmulti_initmode()
3880 if (dch->dev.D.protocol == ISDN_P_NT_E1) { in hfcmulti_initmode()
3946 mode_hfcmulti(hc, i, dch->dev.D.protocol, -1, 0, -1, 0); in hfcmulti_initmode()
3960 if (dch->dev.D.protocol == ISDN_P_NT_S0) { in hfcmulti_initmode()
3989 if ((dch->dev.D.protocol == ISDN_P_NT_S0) || in hfcmulti_initmode()
4024 dch->dev.id, __builtin_return_address(0)); in open_dchannel()
4027 if ((dch->dev.D.protocol != ISDN_P_NONE) && in open_dchannel()
4028 (dch->dev.D.protocol != rq->protocol)) { in open_dchannel()
4031 __func__, dch->dev.D.protocol, rq->protocol); in open_dchannel()
4033 if ((dch->dev.D.protocol == ISDN_P_TE_S0) && in open_dchannel()
4036 if (dch->dev.D.protocol != rq->protocol) { in open_dchannel()
4042 dch->dev.D.protocol = rq->protocol; in open_dchannel()
4048 _queue_data(&dch->dev.D, PH_ACTIVATE_IND, MISDN_ID_ANY, in open_dchannel()
4050 rq->ch = &dch->dev.D; in open_dchannel()
4063 if (!test_channelmap(rq->adr.channel, dch->dev.channelmap)) in open_bchannel()
4144 struct mISDNdevice *dev = container_of(ch, struct mISDNdevice, D); in hfcm_dctrl() local
4145 struct dchannel *dch = container_of(dev, struct dchannel, dev); in hfcm_dctrl()
4183 __func__, dch->dev.id, in hfcm_dctrl()
4511 if (dch->dev.D.protocol == ISDN_P_TE_S0) in release_port()
4518 mISDN_unregister_device(&dch->dev); in release_port()
4785 dch->dev.Dprotocols = (1 << ISDN_P_TE_E1) | (1 << ISDN_P_NT_E1); in init_e1_port()
4786 dch->dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | in init_e1_port()
4788 dch->dev.D.send = handle_dmsg; in init_e1_port()
4789 dch->dev.D.ctrl = hfcm_dctrl; in init_e1_port()
4820 list_add(&bch->ch.list, &dch->dev.bchannels); in init_e1_port()
4823 set_channelmap(bch->nr, dch->dev.channelmap); in init_e1_port()
4826 dch->dev.nrbchan = bcount; in init_e1_port()
4834 ret = mISDN_register_device(&dch->dev, &hc->pci_dev->dev, name); in init_e1_port()
4858 dch->dev.Dprotocols = (1 << ISDN_P_TE_S0) | (1 << ISDN_P_NT_S0); in init_multi_port()
4859 dch->dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | in init_multi_port()
4861 dch->dev.D.send = handle_dmsg; in init_multi_port()
4862 dch->dev.D.ctrl = hfcm_dctrl; in init_multi_port()
4863 dch->dev.nrbchan = 2; in init_multi_port()
4869 for (ch = 0; ch < dch->dev.nrbchan; ch++) { in init_multi_port()
4893 list_add(&bch->ch.list, &dch->dev.bchannels); in init_multi_port()
4896 set_channelmap(bch->nr, dch->dev.channelmap); in init_multi_port()
4905 if (dch->dev.D.protocol != ISDN_P_TE_S0) { in init_multi_port()
4946 ret = mISDN_register_device(&dch->dev, NULL, name); in init_multi_port()
4950 ret = mISDN_register_device(&dch->dev, &hc->pci_dev->dev, name); in init_multi_port()