Home
last modified time | relevance | path

Searched refs:hdlc (Results 1 – 25 of 26) sorted by relevance

12

/drivers/isdn/hardware/mISDN/
Disdnhdlc.c40 void isdnhdlc_rcv_init(struct isdnhdlc_vars *hdlc, u32 features) in isdnhdlc_rcv_init() argument
42 memset(hdlc, 0, sizeof(struct isdnhdlc_vars)); in isdnhdlc_rcv_init()
43 hdlc->state = HDLC_GET_DATA; in isdnhdlc_rcv_init()
45 hdlc->do_adapt56 = 1; in isdnhdlc_rcv_init()
47 hdlc->do_bitreverse = 1; in isdnhdlc_rcv_init()
51 void isdnhdlc_out_init(struct isdnhdlc_vars *hdlc, u32 features) in isdnhdlc_out_init() argument
53 memset(hdlc, 0, sizeof(struct isdnhdlc_vars)); in isdnhdlc_out_init()
55 hdlc->dchannel = 1; in isdnhdlc_out_init()
56 hdlc->state = HDLC_SEND_FIRST_FLAG; in isdnhdlc_out_init()
58 hdlc->dchannel = 0; in isdnhdlc_out_init()
[all …]
Davmfritz.c129 struct hdlc_hw hdlc[2]; member
261 __write_ctrl_pci(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pci() argument
265 outl(hdlc->ctrl.ctrl, fc->addr + CHIP_WINDOW + HDLC_STATUS); in __write_ctrl_pci()
269 __write_ctrl_pciv2(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pciv2() argument
270 outl(hdlc->ctrl.ctrl, fc->addr + (channel == 2 ? AVM_HDLC_STATUS_2 : in __write_ctrl_pciv2()
277 struct hdlc_hw *hdlc; in write_ctrl() local
279 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in write_ctrl()
281 which, hdlc->ctrl.ctrl); in write_ctrl()
284 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl()
287 __write_ctrl_pci(fc, hdlc, bch->nr); in write_ctrl()
[all …]
Disdnhdlc.h59 extern void isdnhdlc_rcv_init(struct isdnhdlc_vars *hdlc, u32 features);
61 extern int isdnhdlc_decode(struct isdnhdlc_vars *hdlc, const u8 *src,
64 extern void isdnhdlc_out_init(struct isdnhdlc_vars *hdlc, u32 features);
66 extern int isdnhdlc_encode(struct isdnhdlc_vars *hdlc, const u8 *src,
Dhfcsusb.c811 int hdlc = 0; in hfcsusb_rx_frame() local
833 hdlc = 1; in hfcsusb_rx_frame()
852 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in hfcsusb_rx_frame()
857 hdlc = 1; in hfcsusb_rx_frame()
889 if (hdlc) { in hfcsusb_rx_frame()
1164 errcode, hdlc, i; in tx_iso_complete() local
1181 hdlc = 1; in tx_iso_complete()
1185 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in tx_iso_complete()
1186 if (!tx_skb && !hdlc && in tx_iso_complete()
1267 if (hdlc) { in tx_iso_complete()
/drivers/net/wan/
Dhdlc.c48 struct hdlc_device *hdlc; in hdlc_rcv() local
56 hdlc = dev_to_hdlc(dev); in hdlc_rcv()
63 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv()
64 return hdlc->proto->netif_rx(skb); in hdlc_rcv()
69 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_start_xmit() local
71 if (hdlc->proto->xmit) in hdlc_start_xmit()
72 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit()
74 return hdlc->xmit(skb, dev); /* call hardware driver directly */ in hdlc_start_xmit()
80 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_proto_start() local
82 if (hdlc->proto->start) in hdlc_proto_start()
[all …]
Dhdlc_fr.c162 static inline struct frad_state *state(hdlc_device *hdlc) in state() argument
164 return (struct frad_state *)(hdlc->state); in state()
167 static inline struct pvc_device *find_pvc(hdlc_device *hdlc, u16 dlci) in find_pvc() argument
169 struct pvc_device *pvc = state(hdlc)->first_pvc; in find_pvc()
184 hdlc_device *hdlc = dev_to_hdlc(dev); in add_pvc() local
185 struct pvc_device *pvc, **pvc_p = &state(hdlc)->first_pvc; in add_pvc()
233 static inline void delete_unused_pvcs(hdlc_device *hdlc) in delete_unused_pvcs() argument
235 struct pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs()
331 hdlc_device *hdlc = dev_to_hdlc(pvc->frad); in pvc_open() local
333 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_open()
[all …]
Dhdlc_x25.c34 static struct x25_state *state(hdlc_device *hdlc) in state() argument
36 return hdlc->state; in state()
105 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_data_transmit() local
113 hdlc->xmit(skb, dev); /* Ignore return value :-( */ in x25_data_transmit()
118 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_xmit() local
119 struct x25_state *x25st = state(hdlc); in x25_xmit()
189 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_open() local
190 struct x25_state *x25st = state(hdlc); in x25_open()
202 if (state(hdlc)->settings.dce) in x25_open()
205 if (state(hdlc)->settings.modulo == 128) in x25_open()
[all …]
Dhdlc_cisco.c61 static inline struct cisco_state *state(hdlc_device *hdlc) in state() argument
63 return (struct cisco_state *)hdlc->state; in state()
143 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_rx() local
144 struct cisco_state *st = state(hdlc); in cisco_rx()
268 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_start() local
269 struct cisco_state *st = state(hdlc); in cisco_start()
284 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_stop() local
285 struct cisco_state *st = state(hdlc); in cisco_stop()
314 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_ioctl() local
326 if (copy_to_user(cisco_s, &state(hdlc)->settings, size)) in cisco_ioctl()
[all …]
Dhdlc_raw.c41 hdlc_device *hdlc = dev_to_hdlc(dev); in raw_ioctl() local
53 if (copy_to_user(raw_s, hdlc->state, size)) in raw_ioctl()
73 result = hdlc->attach(dev, new_settings.encoding, in raw_ioctl()
82 memcpy(hdlc->state, &new_settings, size); in raw_ioctl()
Dhdlc_raw_eth.c56 hdlc_device *hdlc = dev_to_hdlc(dev); in raw_eth_ioctl() local
69 if (copy_to_user(raw_s, hdlc->state, size)) in raw_eth_ioctl()
89 result = hdlc->attach(dev, new_settings.encoding, in raw_eth_ioctl()
98 memcpy(hdlc->state, &new_settings, size); in raw_eth_ioctl()
DKconfig35 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
40 module will be called hdlc.
105 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
119 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
141 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
156 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
172 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
193 simply use "alias hdlc* farsync" to indicate all of them.
Dfsl_ucc_hdlc.c354 hdlc_device *hdlc = dev_to_hdlc(dev); in ucc_hdlc_tx() local
355 struct ucc_hdlc_private *priv = (struct ucc_hdlc_private *)hdlc->priv; in ucc_hdlc_tx()
524 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_rx_done() local
595 if (hdlc->proto) in hdlc_rx_done()
710 hdlc_device *hdlc = dev_to_hdlc(dev); in uhdlc_open() local
711 struct ucc_hdlc_private *priv = hdlc->priv; in uhdlc_open()
1123 hdlc_device *hdlc; in ucc_hdlc_probe() local
1231 hdlc = dev_to_hdlc(dev); in ucc_hdlc_probe()
1235 hdlc->attach = ucc_hdlc_attach; in ucc_hdlc_probe()
1236 hdlc->xmit = ucc_hdlc_tx; in ucc_hdlc_probe()
Dc101.c302 hdlc_device *hdlc; in c101_run() local
359 hdlc = dev_to_hdlc(dev); in c101_run()
367 hdlc->attach = sca_attach; in c101_run()
368 hdlc->xmit = sca_xmit; in c101_run()
Dpci200syn.c370 hdlc_device *hdlc = dev_to_hdlc(dev); in pci200_pci_init_one() local
380 hdlc->attach = sca_attach; in pci200_pci_init_one()
381 hdlc->xmit = sca_xmit; in pci200_pci_init_one()
Dpc300too.c431 hdlc_device *hdlc = dev_to_hdlc(dev); in pc300_pci_init_one() local
441 hdlc->attach = sca_attach; in pc300_pci_init_one()
442 hdlc->xmit = sca_xmit; in pc300_pci_init_one()
Dn2.c437 hdlc_device *hdlc = dev_to_hdlc(dev); in n2_run() local
454 hdlc->attach = sca_attach; in n2_run()
455 hdlc->xmit = sca_xmit; in n2_run()
Dwanxl.c765 hdlc_device *hdlc; in wanxl_pci_init_one() local
777 hdlc = dev_to_hdlc(dev); in wanxl_pci_init_one()
781 hdlc->attach = wanxl_attach; in wanxl_pci_init_one()
782 hdlc->xmit = wanxl_xmit; in wanxl_pci_init_one()
DMakefile9 obj-$(CONFIG_HDLC) += hdlc.o
Dixp4xx_hss.c1396 hdlc_device *hdlc; in ixp4xx_hss_probe() local
1497 hdlc = dev_to_hdlc(ndev); in ixp4xx_hss_probe()
1498 hdlc->attach = hss_hdlc_attach; in ixp4xx_hss_probe()
1499 hdlc->xmit = hss_hdlc_xmit; in ixp4xx_hss_probe()
Dhdlc_ppp.c660 hdlc_device *hdlc = dev_to_hdlc(dev); in ppp_ioctl() local
680 result = hdlc->attach(dev, ENCODING_NRZ, in ppp_ioctl()
Dfarsync.c2422 hdlc_device *hdlc; in fst_add_one() local
2436 hdlc = dev_to_hdlc(dev); in fst_add_one()
2453 hdlc->attach = fst_attach; in fst_add_one()
2454 hdlc->xmit = fst_start_xmit; in fst_add_one()
/drivers/isdn/mISDN/
Ddsp_core.c299 if (dsp->hdlc) { in dsp_control_req()
353 if (dsp->hdlc) { in dsp_control_req()
373 if (dsp->hdlc) { in dsp_control_req()
388 if (dsp->hdlc) { in dsp_control_req()
405 if (dsp->hdlc) { in dsp_control_req()
455 if (dsp->hdlc) { in dsp_control_req()
469 if (dsp->hdlc) { in dsp_control_req()
502 if (dsp->hdlc) { in dsp_control_req()
523 if (dsp->hdlc) { in dsp_control_req()
533 if (dsp->hdlc) { in dsp_control_req()
[all …]
Ddsp_cmx.c948 if (member->dsp->hdlc) in dsp_cmx_hardware()
1112 if (dsp->hdlc && !member->dsp->hdlc) { in dsp_cmx_conf()
1118 if (!dsp->hdlc && member->dsp->hdlc) { in dsp_cmx_conf()
1658 if (dsp->hdlc)
1696 if (member->dsp->hdlc)
1725 if (dsp->hdlc)
Ddsp.h187 int hdlc; /* if mode is hdlc */ member
/drivers/soc/fsl/qe/
Dqmc.c286 if ((param->hdlc.max_rx_buf_size % 4) || in qmc_chan_set_param()
287 (param->hdlc.max_rx_buf_size < 8)) in qmc_chan_set_param()
291 param->hdlc.max_rx_buf_size - 8); in qmc_chan_set_param()
293 param->hdlc.max_rx_frame_size); in qmc_chan_set_param()
294 if (param->hdlc.is_crc32) { in qmc_chan_set_param()

12