Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/drivers/net/wan/
Dhdlc.c60 struct hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_rcv() local
67 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv()
68 return hdlc->proto->netif_rx(skb); in hdlc_rcv()
73 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_start_xmit() local
75 if (hdlc->proto->xmit) in hdlc_start_xmit()
76 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit()
78 return hdlc->xmit(skb, dev); /* call hardware driver directly */ in hdlc_start_xmit()
83 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_proto_start() local
84 if (hdlc->proto->start) in hdlc_proto_start()
85 hdlc->proto->start(dev); in hdlc_proto_start()
[all …]
Dhdlc_fr.c171 static inline struct frad_state* state(hdlc_device *hdlc) in state() argument
173 return(struct frad_state *)(hdlc->state); in state()
177 static inline struct pvc_device *find_pvc(hdlc_device *hdlc, u16 dlci) in find_pvc() argument
179 struct pvc_device *pvc = state(hdlc)->first_pvc; in find_pvc()
195 hdlc_device *hdlc = dev_to_hdlc(dev); in add_pvc() local
196 struct pvc_device *pvc, **pvc_p = &state(hdlc)->first_pvc; in add_pvc()
247 static inline void delete_unused_pvcs(hdlc_device *hdlc) in delete_unused_pvcs() argument
249 struct pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs()
352 hdlc_device *hdlc = dev_to_hdlc(pvc->frad); in pvc_open() local
353 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_open()
[all …]
Dhdlc_cisco.c68 static inline struct cisco_state* state(hdlc_device *hdlc) in state() argument
70 return (struct cisco_state *)hdlc->state; in state()
156 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_rx() local
157 struct cisco_state *st = state(hdlc); in cisco_rx()
263 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_timer() local
264 struct cisco_state *st = state(hdlc); in cisco_timer()
288 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_start() local
289 struct cisco_state *st = state(hdlc); in cisco_start()
307 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_stop() local
308 struct cisco_state *st = state(hdlc); in cisco_stop()
[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
71 if (copy_to_user(raw_s, hdlc->state, size)) in raw_eth_ioctl()
91 result = hdlc->attach(dev, new_settings.encoding, in raw_eth_ioctl()
100 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()
Dc101.c313 hdlc_device *hdlc; in c101_run() local
370 hdlc = dev_to_hdlc(dev); in c101_run()
378 hdlc->attach = sca_attach; in c101_run()
379 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.c387 hdlc_device *hdlc = dev_to_hdlc(dev); in pci200_pci_init_one() local
396 hdlc->attach = sca_attach; in pci200_pci_init_one()
397 hdlc->xmit = sca_xmit; in pci200_pci_init_one()
Dn2.c454 hdlc_device *hdlc = dev_to_hdlc(dev); in n2_run() local
471 hdlc->attach = sca_attach; in n2_run()
472 hdlc->xmit = sca_xmit; in n2_run()
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()
DMakefile8 obj-$(CONFIG_HDLC) += hdlc.o
Dwanxl.c769 hdlc_device *hdlc; in wanxl_pci_init_one() local
780 hdlc = dev_to_hdlc(dev); in wanxl_pci_init_one()
784 hdlc->attach = wanxl_attach; in wanxl_pci_init_one()
785 hdlc->xmit = wanxl_xmit; in wanxl_pci_init_one()
Dixp4xx_hss.c1333 hdlc_device *hdlc; in hss_init_one() local
1350 hdlc = dev_to_hdlc(dev); in hss_init_one()
1351 hdlc->attach = hss_hdlc_attach; in hss_init_one()
1352 hdlc->xmit = hss_hdlc_xmit; in hss_init_one()
Dhdlc_ppp.c651 hdlc_device *hdlc = dev_to_hdlc(dev); in ppp_ioctl() local
671 result = hdlc->attach(dev, ENCODING_NRZ,PARITY_CRC16_PR1_CCITT); in ppp_ioctl()
Ddscc4.c922 hdlc_device *hdlc = dev_to_hdlc(d); in dscc4_found1() local
935 hdlc->xmit = dscc4_start_xmit; in dscc4_found1()
936 hdlc->attach = dscc4_hdlc_attach; in dscc4_found1()
Dfarsync.c2496 hdlc_device *hdlc; in fst_add_one() local
2509 hdlc = dev_to_hdlc(dev); in fst_add_one()
2526 hdlc->attach = fst_attach; in fst_add_one()
2527 hdlc->xmit = fst_start_xmit; in fst_add_one()
/linux-4.4.14/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()
213 bcs->hw.hdlc.ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
214 bcs->hw.hdlc.ctrl.sr.mode = HDLC_MODE_TRANS; in modehdlc()
[all …]
Dhisax.h524 struct hdlc_hw hdlc; member
/linux-4.4.14/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
842 hdlc = 1; in hfcsusb_rx_frame()
861 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in hfcsusb_rx_frame()
866 hdlc = 1; in hfcsusb_rx_frame()
898 if (hdlc) { in hfcsusb_rx_frame()
1171 errcode, hdlc, i; in tx_iso_complete() local
1187 hdlc = 1; in tx_iso_complete()
1191 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in tx_iso_complete()
1192 if (!tx_skb && !hdlc && in tx_iso_complete()
1273 if (hdlc) { in tx_iso_complete()
/linux-4.4.14/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-4.4.14/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()
1670 if (dsp->hdlc)
1708 if (member->dsp->hdlc)
1737 if (dsp->hdlc)
Ddsp.h187 int hdlc; /* if mode is hdlc */ member
/linux-4.4.14/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/>.
D00-INDEX93 generic-hdlc.txt
/linux-4.4.14/include/linux/
Dhdlc.h109 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_type_trans() local
114 if (hdlc->proto->type_trans) in hdlc_type_trans()
115 return hdlc->proto->type_trans(skb, dev); in hdlc_type_trans()
/linux-4.4.14/Documentation/isdn/
DREADME.sc186 - please open the isdn-hdlc file in the examples directory and follow along...
195 iii) set the Layer 2 protocol to hdlc
244 iii) set the Layer 2 protocol to hdlc and the Layer 3 protocol to
DREADME.HiSax559 /sbin/isdnctrl l2_prot isdn0 hdlc
612 /sbin/isdnctrl l2_prot isdn0 hdlc
621 /sbin/isdnctrl l2_prot isdn0s hdlc
DREADME488 to do "hdlc"
508 (With the ICN-driver and the HiSax-driver, "x75i" and "hdlc" is available.
/linux-4.4.14/include/uapi/linux/
DKbuild7 header-y += hdlc/
143 header-y += hdlc.h
/linux-4.4.14/drivers/char/pcmcia/
Dsynclink_cs.c4281 hdlc_device *hdlc; in hdlcdev_init() local
4301 hdlc = dev_to_hdlc(dev); in hdlcdev_init()
4302 hdlc->attach = hdlcdev_attach; in hdlcdev_init()
4303 hdlc->xmit = hdlcdev_xmit; in hdlcdev_init()
/linux-4.4.14/drivers/tty/
Dsynclink_gt.c1794 hdlc_device *hdlc; in hdlcdev_init() local
1815 hdlc = dev_to_hdlc(dev); in hdlcdev_init()
1816 hdlc->attach = hdlcdev_attach; in hdlcdev_init()
1817 hdlc->xmit = hdlcdev_xmit; in hdlcdev_init()
Dsynclinkmp.c1913 hdlc_device *hdlc; in hdlcdev_init() local
1934 hdlc = dev_to_hdlc(dev); in hdlcdev_init()
1935 hdlc->attach = hdlcdev_attach; in hdlcdev_init()
1936 hdlc->xmit = hdlcdev_xmit; in hdlcdev_init()
Dsynclink.c8009 hdlc_device *hdlc; in hdlcdev_init() local
8030 hdlc = dev_to_hdlc(dev); in hdlcdev_init()
8031 hdlc->attach = hdlcdev_attach; in hdlcdev_init()
8032 hdlc->xmit = hdlcdev_xmit; in hdlcdev_init()
/linux-4.4.14/
DMAINTAINERS4669 W: http://www.kernel.org/pub/linux/utils/net/hdlc/
4673 F: drivers/net/wan/hdlc*