Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/isdn/i4l/
Disdnhdlc.c53 void isdnhdlc_rcv_init(struct isdnhdlc_vars *hdlc, u32 features) in isdnhdlc_rcv_init() argument
55 memset(hdlc, 0, sizeof(struct isdnhdlc_vars)); in isdnhdlc_rcv_init()
56 hdlc->state = HDLC_GET_DATA; in isdnhdlc_rcv_init()
58 hdlc->do_adapt56 = 1; in isdnhdlc_rcv_init()
60 hdlc->do_bitreverse = 1; in isdnhdlc_rcv_init()
64 void isdnhdlc_out_init(struct isdnhdlc_vars *hdlc, u32 features) in isdnhdlc_out_init() argument
66 memset(hdlc, 0, sizeof(struct isdnhdlc_vars)); in isdnhdlc_out_init()
68 hdlc->dchannel = 1; in isdnhdlc_out_init()
69 hdlc->state = HDLC_SEND_FIRST_FLAG; in isdnhdlc_out_init()
71 hdlc->dchannel = 0; in isdnhdlc_out_init()
[all …]
/Linux-v4.19/drivers/net/wan/
Dhdlc.c52 struct hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_rcv() local
59 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv()
60 return hdlc->proto->netif_rx(skb); in hdlc_rcv()
65 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_start_xmit() local
67 if (hdlc->proto->xmit) in hdlc_start_xmit()
68 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit()
70 return hdlc->xmit(skb, dev); /* call hardware driver directly */ in hdlc_start_xmit()
75 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_proto_start() local
76 if (hdlc->proto->start) in hdlc_proto_start()
77 hdlc->proto->start(dev); in hdlc_proto_start()
[all …]
Dhdlc_fr.c172 static inline struct frad_state* state(hdlc_device *hdlc) in state() argument
174 return(struct frad_state *)(hdlc->state); in state()
178 static inline struct pvc_device *find_pvc(hdlc_device *hdlc, u16 dlci) in find_pvc() argument
180 struct pvc_device *pvc = state(hdlc)->first_pvc; in find_pvc()
196 hdlc_device *hdlc = dev_to_hdlc(dev); in add_pvc() local
197 struct pvc_device *pvc, **pvc_p = &state(hdlc)->first_pvc; in add_pvc()
248 static inline void delete_unused_pvcs(hdlc_device *hdlc) in delete_unused_pvcs() argument
250 struct pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs()
353 hdlc_device *hdlc = dev_to_hdlc(pvc->frad); in pvc_open() local
354 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_open()
[all …]
Dhdlc_cisco.c69 static inline struct cisco_state* state(hdlc_device *hdlc) in state() argument
71 return (struct cisco_state *)hdlc->state; in state()
157 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_rx() local
158 struct cisco_state *st = state(hdlc); in cisco_rx()
286 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_start() local
287 struct cisco_state *st = state(hdlc); in cisco_start()
304 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_stop() local
305 struct cisco_state *st = state(hdlc); in cisco_stop()
335 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_ioctl() local
347 if (copy_to_user(cisco_s, &state(hdlc)->settings, size)) in cisco_ioctl()
[all …]
Dhdlc_raw.c44 hdlc_device *hdlc = dev_to_hdlc(dev); in raw_ioctl() local
56 if (copy_to_user(raw_s, hdlc->state, size)) in raw_ioctl()
76 result = hdlc->attach(dev, new_settings.encoding, in raw_ioctl()
85 memcpy(hdlc->state, &new_settings, size); in raw_ioctl()
Dhdlc_raw_eth.c59 hdlc_device *hdlc = dev_to_hdlc(dev); in raw_eth_ioctl() local
72 if (copy_to_user(raw_s, hdlc->state, size)) in raw_eth_ioctl()
92 result = hdlc->attach(dev, new_settings.encoding, in raw_eth_ioctl()
101 memcpy(hdlc->state, &new_settings, size); in raw_eth_ioctl()
Dhdlc_x25.c84 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_data_transmit() local
85 hdlc->xmit(skb, dev); /* Ignore return value :-( */ in x25_data_transmit()
192 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_ioctl() local
209 result=hdlc->attach(dev, ENCODING_NRZ,PARITY_CRC16_PR1_CCITT); in x25_ioctl()
Dfsl_ucc_hdlc.c342 hdlc_device *hdlc = dev_to_hdlc(dev); in ucc_hdlc_tx() local
343 struct ucc_hdlc_private *priv = (struct ucc_hdlc_private *)hdlc->priv; in ucc_hdlc_tx()
475 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_rx_done() local
533 if (hdlc->proto) in hdlc_rx_done()
652 hdlc_device *hdlc = dev_to_hdlc(dev); in uhdlc_open() local
653 struct ucc_hdlc_private *priv = hdlc->priv; in uhdlc_open()
1005 hdlc_device *hdlc; in ucc_hdlc_probe() local
1107 hdlc = dev_to_hdlc(dev); in ucc_hdlc_probe()
1110 hdlc->attach = ucc_hdlc_attach; in ucc_hdlc_probe()
1111 hdlc->xmit = ucc_hdlc_tx; in ucc_hdlc_probe()
Dc101.c312 hdlc_device *hdlc; in c101_run() local
369 hdlc = dev_to_hdlc(dev); in c101_run()
377 hdlc->attach = sca_attach; in c101_run()
378 hdlc->xmit = sca_xmit; in c101_run()
DKconfig106 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
111 module will be called hdlc.
176 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
190 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
212 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
227 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
243 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
264 simply use "alias hdlc* farsync" to indicate all of them.
Dpci200syn.c386 hdlc_device *hdlc = dev_to_hdlc(dev); in pci200_pci_init_one() local
395 hdlc->attach = sca_attach; in pci200_pci_init_one()
396 hdlc->xmit = sca_xmit; in pci200_pci_init_one()
Dpc300too.c447 hdlc_device *hdlc = dev_to_hdlc(dev); in pc300_pci_init_one() local
456 hdlc->attach = sca_attach; in pc300_pci_init_one()
457 hdlc->xmit = sca_xmit; in pc300_pci_init_one()
Dn2.c453 hdlc_device *hdlc = dev_to_hdlc(dev); in n2_run() local
470 hdlc->attach = sca_attach; in n2_run()
471 hdlc->xmit = sca_xmit; in n2_run()
Dwanxl.c768 hdlc_device *hdlc; in wanxl_pci_init_one() local
779 hdlc = dev_to_hdlc(dev); in wanxl_pci_init_one()
783 hdlc->attach = wanxl_attach; in wanxl_pci_init_one()
784 hdlc->xmit = wanxl_xmit; in wanxl_pci_init_one()
DMakefile9 obj-$(CONFIG_HDLC) += hdlc.o
/Linux-v4.19/drivers/isdn/hisax/
Davm_pci.c179 'A' + bcs->channel, which, bcs->hw.hdlc.ctrl.ctrl); in write_ctrl()
181 WriteHDLCPCI(bcs->cs, bcs->channel, HDLC_STATUS, bcs->hw.hdlc.ctrl.ctrl); in write_ctrl()
185 bcs->hw.hdlc.ctrl.sr.mode); in write_ctrl()
188 bcs->hw.hdlc.ctrl.sr.xml); in write_ctrl()
191 bcs->hw.hdlc.ctrl.sr.cmd); in write_ctrl()
199 int hdlc = bcs->channel; in modehdlc() local
203 'A' + hdlc, bcs->mode, mode, hdlc, bc); in modehdlc()
204 bcs->hw.hdlc.ctrl.ctrl = 0; in modehdlc()
214 bcs->hw.hdlc.ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
215 bcs->hw.hdlc.ctrl.sr.mode = HDLC_MODE_TRANS; in modehdlc()
[all …]
/Linux-v4.19/drivers/isdn/hardware/mISDN/
Davmfritz.c142 struct hdlc_hw hdlc[2]; member
274 __write_ctrl_pci(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pci() argument
278 outl(hdlc->ctrl.ctrl, fc->addr + CHIP_WINDOW + HDLC_STATUS); in __write_ctrl_pci()
282 __write_ctrl_pciv2(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pciv2() argument
283 outl(hdlc->ctrl.ctrl, fc->addr + (channel == 2 ? AVM_HDLC_STATUS_2 : in __write_ctrl_pciv2()
290 struct hdlc_hw *hdlc; in write_ctrl() local
292 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in write_ctrl()
294 which, hdlc->ctrl.ctrl); in write_ctrl()
297 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl()
300 __write_ctrl_pci(fc, hdlc, bch->nr); in write_ctrl()
[all …]
Dhfcsusb.c821 int hdlc = 0; in hfcsusb_rx_frame() local
843 hdlc = 1; in hfcsusb_rx_frame()
862 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in hfcsusb_rx_frame()
867 hdlc = 1; in hfcsusb_rx_frame()
899 if (hdlc) { in hfcsusb_rx_frame()
1174 errcode, hdlc, i; in tx_iso_complete() local
1191 hdlc = 1; in tx_iso_complete()
1195 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in tx_iso_complete()
1196 if (!tx_skb && !hdlc && in tx_iso_complete()
1277 if (hdlc) { in tx_iso_complete()
/Linux-v4.19/include/linux/isdn/
Dhdlc.h72 extern void isdnhdlc_rcv_init(struct isdnhdlc_vars *hdlc, u32 features);
74 extern int isdnhdlc_decode(struct isdnhdlc_vars *hdlc, const u8 *src,
77 extern void isdnhdlc_out_init(struct isdnhdlc_vars *hdlc, u32 features);
79 extern int isdnhdlc_encode(struct isdnhdlc_vars *hdlc, const u8 *src,
/Linux-v4.19/drivers/isdn/mISDN/
Ddsp_core.c301 if (dsp->hdlc) { in dsp_control_req()
355 if (dsp->hdlc) { in dsp_control_req()
375 if (dsp->hdlc) { in dsp_control_req()
390 if (dsp->hdlc) { in dsp_control_req()
407 if (dsp->hdlc) { in dsp_control_req()
457 if (dsp->hdlc) { in dsp_control_req()
471 if (dsp->hdlc) { in dsp_control_req()
504 if (dsp->hdlc) { in dsp_control_req()
525 if (dsp->hdlc) { in dsp_control_req()
535 if (dsp->hdlc) { in dsp_control_req()
[all …]
Ddsp_cmx.c959 if (member->dsp->hdlc) in dsp_cmx_hardware()
1123 if (dsp->hdlc && !member->dsp->hdlc) { in dsp_cmx_conf()
1129 if (!dsp->hdlc && member->dsp->hdlc) { in dsp_cmx_conf()
1669 if (dsp->hdlc)
1707 if (member->dsp->hdlc)
1736 if (dsp->hdlc)
/Linux-v4.19/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt48 - fsl,ucc-hdlc
50 Properties for fsl,ucc-hdlc:
61 Definition : Specify that hdlc is based on tdm-interface
105 compatible = "fsl,ucc-hdlc";
118 Example for hdlc without tdm interface:
121 compatible = "fsl,ucc-hdlc";
/Linux-v4.19/Documentation/networking/
Dgeneric-hdlc.txt11 http://www.kernel.org/pub/linux/utils/net/hdlc/).
24 Make sure the hdlc.o and the hardware driver are loaded. It should
25 create a number of "hdlc" (hdlc0 etc) network devices, one for each
27 http://www.kernel.org/pub/linux/utils/net/hdlc/
46 In Frame Relay mode, ifconfig master hdlc device up (without assigning
64 * hdlc - sets raw HDLC (IP-only) mode
69 * hdlc-eth - Ethernet device emulation using HDLC. Parity and encoding
132 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
/Linux-v4.19/include/linux/
Dhdlc.h107 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_type_trans() local
112 if (hdlc->proto->type_trans) in hdlc_type_trans()
113 return hdlc->proto->type_trans(skb, dev); in hdlc_type_trans()
/Linux-v4.19/arch/powerpc/boot/dts/fsl/
Dkmcent2.dts292 device_type = "hdlc";
293 compatible = "fsl,ucc-hdlc";
296 fsl,hdlc-bus;

12