Home
last modified time | relevance | path

Searched refs:dch (Results 1 – 17 of 17) sorted by relevance

/linux-4.19.296/drivers/isdn/hardware/mISDN/
Dw6692.c80 struct dchannel dch; member
95 card->dch.debug = debug; in _set_debug()
200 schedule_event(&card->dch, FLG_PHCHANGE); in W6692_new_ph()
204 W6692_ph_bh(struct dchannel *dch) in W6692_ph_bh() argument
206 struct w6692_hw *card = dch->hw; in W6692_ph_bh()
210 dch->state = 0; in W6692_ph_bh()
211 l1_event(dch->l1, HW_RESET_IND); in W6692_ph_bh()
214 dch->state = 3; in W6692_ph_bh()
215 l1_event(dch->l1, HW_DEACT_CNF); in W6692_ph_bh()
218 dch->state = 3; in W6692_ph_bh()
[all …]
DmISDNipac.c39 #define ReadISAC(is, o) (is->read_reg(is->dch.hw, o + is->off))
40 #define WriteISAC(is, o, v) (is->write_reg(is->dch.hw, o + is->off, v))
64 schedule_event(&isac->dch, FLG_PHCHANGE); in isac_ph_state_change()
68 isac_ph_state_bh(struct dchannel *dch) in isac_ph_state_bh() argument
70 struct isac_hw *isac = container_of(dch, struct isac_hw, dch); in isac_ph_state_bh()
75 dch->state = 0; in isac_ph_state_bh()
76 l1_event(dch->l1, HW_RESET_IND); in isac_ph_state_bh()
79 dch->state = 3; in isac_ph_state_bh()
80 l1_event(dch->l1, HW_DEACT_CNF); in isac_ph_state_bh()
84 dch->state = 3; in isac_ph_state_bh()
[all …]
Dhfcpci.c147 struct dchannel dch; member
467 struct dchannel *dch = &hc->dch; in receive_dmsg() local
482 if (dch->debug & DEBUG_HW_DCHANNEL) in receive_dmsg()
492 if (dch->debug & DEBUG_HW) in receive_dmsg()
507 dch->rx_skb = mI_alloc_skb(rcnt - 3, GFP_ATOMIC); in receive_dmsg()
508 if (!dch->rx_skb) { in receive_dmsg()
515 ptr = skb_put(dch->rx_skb, rcnt); in receive_dmsg()
537 recv_Dchannel(dch); in receive_dmsg()
678 struct dchannel *dch = &hc->dch; in hfcpci_fill_dfifo() local
684 if ((dch->debug & DEBUG_HW_DCHANNEL) && !(dch->debug & DEBUG_HW_DFIFO)) in hfcpci_fill_dfifo()
[all …]
Dhfcsusb.c262 struct dchannel *dch = &hw->dch; in hfcsusb_ph_info() local
266 dch->dev.nrbchan * sizeof(struct ph_info_ch), GFP_ATOMIC); in hfcsusb_ph_info()
267 phi->dch.ch.protocol = hw->protocol; in hfcsusb_ph_info()
268 phi->dch.ch.Flags = dch->Flags; in hfcsusb_ph_info()
269 phi->dch.state = dch->state; in hfcsusb_ph_info()
270 phi->dch.num_bch = dch->dev.nrbchan; in hfcsusb_ph_info()
271 for (i = 0; i < dch->dev.nrbchan; i++) { in hfcsusb_ph_info()
275 _queue_data(&dch->dev.D, MPH_INFORMATION_IND, MISDN_ID_ANY, in hfcsusb_ph_info()
276 sizeof(struct ph_info_dch) + dch->dev.nrbchan * in hfcsusb_ph_info()
288 struct dchannel *dch = container_of(dev, struct dchannel, dev); in hfcusb_l2l1D() local
[all …]
Dhfcmulti.c1622 struct dchannel *dch; in hfcmulti_leds() local
1637 dch = hc->chan[hc->dnum[0]].dch; in hfcmulti_leds()
1638 if (dch) { in hfcmulti_leds()
1682 dch = hc->chan[(i << 2) | 2].dch; in hfcmulti_leds()
1683 if (dch) { in hfcmulti_leds()
1684 state = dch->state; in hfcmulti_leds()
1685 if (dch->dev.D.protocol == ISDN_P_NT_S0) in hfcmulti_leds()
1746 dch = hc->chan[(i << 2) | 2].dch; in hfcmulti_leds()
1747 if (dch) { in hfcmulti_leds()
1748 state = dch->state; in hfcmulti_leds()
[all …]
Dspeedfax.c91 card->isac.dch.debug = debug; in _set_debug()
252 struct dchannel *dch = container_of(dev, struct dchannel, dev); in sfax_dctrl() local
253 struct sfax_hw *sf = dch->hw; in sfax_dctrl()
272 dch->dev.id, __builtin_return_address(0)); in sfax_dctrl()
363 mISDN_unregister_device(&card->isac.dch.dev); in release_card()
406 card->isac.dch.dev.D.ctrl = sfax_dctrl; in setup_instance()
407 card->isac.dch.dev.Bprotocols = in setup_instance()
410 set_channelmap(i + 1, card->isac.dch.dev.channelmap); in setup_instance()
412 &card->isac.dch.dev.bchannels); in setup_instance()
421 err = mISDN_register_device(&card->isac.dch.dev, in setup_instance()
[all …]
Davmfritz.c153 card->isac.dch.debug = debug; in _set_debug()
932 struct dchannel *dch = container_of(dev, struct dchannel, dev); in avm_dctrl() local
933 struct fritzcard *fc = dch->hw; in avm_dctrl()
951 pr_debug("%s: dev(%d) close from %p\n", fc->name, dch->dev.id, in avm_dctrl()
1027 mISDN_unregister_device(&card->isac.dch.dev); in release_card()
1056 card->isac.dch.dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | in setup_instance()
1058 card->isac.dch.dev.D.ctrl = avm_dctrl; in setup_instance()
1061 set_channelmap(i + 1, card->isac.dch.dev.channelmap); in setup_instance()
1071 list_add(&card->bch[i].ch.list, &card->isac.dch.dev.bchannels); in setup_instance()
1076 err = mISDN_register_device(&card->isac.dch.dev, &card->pdev->dev, in setup_instance()
[all …]
Dnetjet.c108 card->isac.dch.debug = debug; in _set_debug()
887 struct dchannel *dch = container_of(dev, struct dchannel, dev); in nj_dctrl() local
888 struct tiger_hw *card = dch->hw; in nj_dctrl()
906 pr_debug("%s: dev(%d) close from %p\n", card->name, dch->dev.id, in nj_dctrl()
973 if (device_is_registered(&card->isac.dch.dev.dev)) in nj_release()
974 mISDN_unregister_device(&card->isac.dch.dev); in nj_release()
1028 card->isac.dch.dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | in setup_instance()
1030 card->isac.dch.dev.D.ctrl = nj_dctrl; in setup_instance()
1033 set_channelmap(i + 1, card->isac.dch.dev.channelmap); in setup_instance()
1041 &card->isac.dch.dev.bchannels); in setup_instance()
[all …]
Dhfcsusb.h264 struct dchannel *dch; /* link to hfcsusb_t->dch */ member
273 struct dchannel dch; member
DmISDNinfineon.c241 card->ipac.isac.dch.debug = debug; in _set_debug()
882 mISDN_unregister_device(&card->ipac.isac.dch.dev); in release_card()
933 card->ipac.isac.dch.dev.Bprotocols = in setup_instance()
936 if (card->ipac.isac.dch.dev.Bprotocols == 0) in setup_instance()
939 err = mISDN_register_device(&card->ipac.isac.dch.dev, in setup_instance()
950 mISDN_unregister_device(&card->ipac.isac.dch.dev); in setup_instance()
Dipac.h28 struct dchannel dch; member
Dhfc_multi.h41 struct dchannel *dch; /* link if channel is a D-channel */ member
/linux-4.19.296/drivers/isdn/mISDN/
Dhwchannel.c25 struct dchannel *dch = container_of(ws, struct dchannel, workq); in dchannel_bh() local
29 if (test_and_clear_bit(FLG_RECVQUEUE, &dch->Flags)) { in dchannel_bh()
30 while ((skb = skb_dequeue(&dch->rqueue))) { in dchannel_bh()
31 if (likely(dch->dev.D.peer)) { in dchannel_bh()
32 err = dch->dev.D.recv(dch->dev.D.peer, skb); in dchannel_bh()
39 if (test_and_clear_bit(FLG_PHCHANGE, &dch->Flags)) { in dchannel_bh()
40 if (dch->phfunc) in dchannel_bh()
41 dch->phfunc(dch); in dchannel_bh()
220 recv_Dchannel(struct dchannel *dch) in recv_Dchannel() argument
224 if (dch->rx_skb->len < 2) { /* at least 2 for sapi / tei */ in recv_Dchannel()
[all …]
Dl1oip_core.c369 struct dchannel *dch; in l1oip_socket_recv() local
389 dch = hc->chan[channel].dch; in l1oip_socket_recv()
391 if (!dch && !bch) { in l1oip_socket_recv()
415 if (dch && len >= 2) { in l1oip_socket_recv()
416 dch->rx_skb = nskb; in l1oip_socket_recv()
417 recv_Dchannel(dch); in l1oip_socket_recv()
466 struct dchannel *dch = hc->chan[hc->d_idx].dch; in l1oip_socket_parse() local
599 if (!test_bit(FLG_ACTIVE, &dch->Flags)) { in l1oip_socket_parse()
603 test_and_set_bit(FLG_ACTIVE, &dch->Flags); in l1oip_socket_parse()
604 _queue_data(&dch->dev.D, PH_ACTIVATE_IND, MISDN_ID_ANY, 0, in l1oip_socket_parse()
[all …]
Dlayer1.c35 struct dchannel *dch; member
112 printk(KERN_DEBUG "%s: %pV\n", dev_name(&l1->dch->dev.dev), &vaf); in l1m_debug()
130 l1->dcb(l1->dch, HW_POWERUP_REQ); in l1_deact_cnf()
150 l1->dcb(l1->dch, INFO3_P8); in l1_power_up_s()
173 l1->dcb(l1->dch, INFO3_P8); in l1_info2_ind()
182 l1->dcb(l1->dch, INFO3_P8); in l1_info4_ind()
201 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer3()
202 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_timer3()
217 l1->dcb(l1->dch, PH_ACTIVATE_IND); in l1_timer_act()
228 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer_deact()
[all …]
Dl1oip.h33 struct dchannel *dch; member
/linux-4.19.296/include/linux/
DmISDNif.h325 struct ph_info_dch dch; member