/linux/drivers/isdn/hardware/mISDN/ |
H A D | isdnhdlc.c | 3 * isdnhdlc.c -- General purpose ISDN HDLC decoder. 23 MODULE_DESCRIPTION("General purpose ISDN HDLC decoder"); 40 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() [all …]
|
H A D | avmfritz.c | 129 struct hdlc_hw hdlc[2]; member 262 __write_ctrl_pci(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pci() argument 266 outl(hdlc->ctrl.ctrl, fc->addr + CHIP_WINDOW + HDLC_STATUS); in __write_ctrl_pci() 270 __write_ctrl_pciv2(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pciv2() argument 271 outl(hdlc->ctrl.ctrl, fc->addr + (channel == 2 ? AVM_HDLC_STATUS_2 : in __write_ctrl_pciv2() 278 struct hdlc_hw *hdlc; in write_ctrl() local 280 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in write_ctrl() 281 pr_debug("%s: hdlc %c wr%x ctrl %x\n", fc->name, '@' + bch->nr, in write_ctrl() 282 which, hdlc->ctrl.ctrl); in write_ctrl() 285 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl() [all …]
|
H A D | isdnhdlc.h | 3 * hdlc.h -- General purpose ISDN HDLC decoder. 5 * Implementation of a HDLC decoder/encoder in software. 6 * Necessary because some ISDN devices don't have HDLC 59 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,
|
/linux/drivers/net/wan/ |
H A D | hdlc.c | 3 * Generic HDLC support routines for Linux 8 * * raw IP-in-HDLC 9 * * Cisco HDLC 25 #include <linux/hdlc.h> 39 static const char *version = "HDLC support module revision 1.22"; 48 struct hdlc_device *hdlc; in hdlc_rcv() local 50 /* First make sure "dev" is an HDLC device */ in hdlc_rcv() 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() [all …]
|
H A D | Kconfig | 26 # Generic HDLC 27 config HDLC config 28 tristate "Generic HDLC layer" 35 <http://www.kernel.org/pub/linux/utils/net/hdlc/>. 36 Generic HDLC driver currently supports raw HDLC, Cisco HDLC, Frame 40 module will be called hdlc. 45 tristate "Raw HDLC support" 46 depends on HDLC 48 Generic HDLC driver supporting raw HDLC over WAN connections. 53 tristate "Raw HDLC Ethernet device support" [all …]
|
H A D | hdlc_fr.c | 3 * Generic HDLC support routines for Linux 35 #include <linux/hdlc.h> 162 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() [all …]
|
H A D | hdlc_x25.c | 3 * Generic HDLC support routines for Linux 11 #include <linux/hdlc.h> 34 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() [all …]
|
H A D | hdlc_cisco.c | 3 * Generic HDLC support routines for Linux 4 * Cisco HDLC support 10 #include <linux/hdlc.h> 61 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 [all …]
|
H A D | hdlc_raw.c | 3 * Generic HDLC support routines for Linux 4 * HDLC support 10 #include <linux/hdlc.h> 41 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() 111 MODULE_DESCRIPTION("Raw HDLC protocol support for generic HDLC");
|
H A D | hdlc_raw_eth.c | 3 * Generic HDLC support routines for Linux 4 * HDLC Ethernet emulation support 12 #include <linux/hdlc.h> 56 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() 131 MODULE_DESCRIPTION("Ethernet encapsulation support for generic HDLC");
|
H A D | fsl_qmc_hdlc.c | 3 * Freescale QMC HDLC Device Driver 18 #include <linux/hdlc.h> 594 chan_param.hdlc.max_rx_buf_size = HDLC_MAX_MRU + 4 + 8; in qmc_hdlc_open() 595 chan_param.hdlc.max_rx_frame_size = HDLC_MAX_MRU + 4; in qmc_hdlc_open() 596 chan_param.hdlc.is_crc32 = qmc_hdlc->is_crc32; in qmc_hdlc_open() 608 ret = qmc_hdlc_recv_queue(qmc_hdlc, desc, chan_param.hdlc.max_rx_buf_size); in qmc_hdlc_open() 713 hdlc_device *hdlc; in qmc_hdlc_probe() local 759 hdlc = dev_to_hdlc(qmc_hdlc->netdev); in qmc_hdlc_probe() 760 hdlc->attach = qmc_hdlc_attach; in qmc_hdlc_probe() 761 hdlc->xmit = qmc_hdlc_xmit; in qmc_hdlc_probe() [all …]
|
H A D | c101.c | 7 * For information see <https://www.kernel.org/pub/linux/utils/net/hdlc/> 25 #include <linux/hdlc.h> 302 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() 373 pr_warn("unable to register hdlc device\n"); in c101_run()
|
H A D | pci200syn.c | 7 * For information see <https://www.kernel.org/pub/linux/utils/net/hdlc/> 28 #include <linux/hdlc.h> 370 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() 386 pr_err("unable to register hdlc device\n"); in pci200_pci_init_one()
|
H A D | n2.c | 7 * For information see <https://www.kernel.org/pub/linux/utils/net/hdlc/> 13 * SDL Inc. PPP/HDLC/CISCO driver 31 #include <linux/hdlc.h> 437 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() 460 pr_warn("unable to register hdlc device\n"); in n2_run()
|
H A D | pc300too.c | 7 * For information see <https://www.kernel.org/pub/linux/utils/net/hdlc/>. 32 #include <linux/hdlc.h> 431 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() 452 pr_err("unable to register hdlc device\n"); in pc300_pci_init_one()
|
/linux/Documentation/networking/ |
H A D | generic-hdlc.rst | 4 Generic HDLC layer 10 Generic HDLC layer currently supports: 18 http://www.kernel.org/pub/linux/utils/net/hdlc/). 20 2. raw HDLC - either IP (IPv4) interface or Ethernet device emulation 21 3. Cisco HDLC 25 Generic HDLC is a protocol driver only - it needs a low-level driver 28 Ethernet device emulation (using HDLC or Frame-Relay PVC) is compatible 32 Make sure the hdlc.o and the hardware driver are loaded. It should 33 create a number of "hdlc" (hdlc0 etc) network devices, one for each 36 http://www.kernel.org/pub/linux/utils/net/hdlc/ [all …]
|
/linux/include/linux/ |
H A D | hdlc.h | 3 * Generic HDLC support routines for Linux 13 #include <linux/hdlc/ioctl.h> 14 #include <uapi/linux/hdlc.h> 16 /* This structure is a private property of HDLC protocols. 36 /* used by HDLC layer to take control over HDLC device from hw driver*/ 43 /* Things below are for HDLC layer internal use only */ 54 /* Exported from hdlc module */ 56 /* Called by hardware driver when a user requests HDLC service */ 89 /* Must be called by hardware driver when HDLC device is being opened */ 91 /* Must be called by hardware driver when HDLC device is being closed */ [all …]
|
/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/ |
H A D | fsl,cpm1-scc-qmc.yaml | 78 enum: [transparent, hdlc] 82 - hdlc: The channel handles HDLC frames 107 - fsl,mpc885-scc-qmc-hdlc 108 - fsl,mpc866-scc-qmc-hdlc 109 - const: fsl,cpm1-scc-qmc-hdlc 110 - const: fsl,qmc-hdlc 125 const: fsl,qmc-hdlc 184 compatible = "fsl,mpc885-scc-qmc-hdlc", 185 "fsl,cpm1-scc-qmc-hdlc", 186 "fsl,qmc-hdlc"; [all …]
|
H A D | fsl,qe-ucc-qmc.yaml | 78 - fsl,mpc8321-ucc-qmc-hdlc 79 - const: fsl,qe-ucc-qmc-hdlc 80 - const: fsl,qmc-hdlc 90 enum: [transparent, hdlc] 94 - hdlc: The channel handles HDLC frames 129 const: fsl,qmc-hdlc 188 compatible = "fsl,mpc8321-ucc-qmc-hdlc", 189 "fsl,qe-ucc-qmc-hdlc", 190 "fsl,qmc-hdlc"; 192 fsl,operational-mode = "hdlc";
|
H A D | fsl,ucc-hdlc.yaml | 4 $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml# 7 title: High-Level Data Link Control(HDLC) 9 description: HDLC part in Universal communication controllers (UCCs) 16 const: fsl,ucc-hdlc 41 description: Specify that hdlc is based on tdm-interface 107 HDLC address recognition. Set to zero to disable 120 compatible = "fsl,ucc-hdlc"; 136 compatible = "fsl,ucc-hdlc";
|
/linux/drivers/tty/ |
H A D | n_hdlc.c | 2 /* generic HDLC line discipline for Linux 16 * tty device drivers that support bit-synchronous HDLC communications. 18 * All HDLC data is frame oriented which means: 23 * a byte count in the range of 2-65535 bytes (2 is min HDLC frame 37 * The HDLC line discipline queues the receive frames in separate 53 * to be used for synchronous HDLC applications when used with 58 * (using standard line discipline N_TTY) and synchronous HDLC 64 * and frame orientation of HDLC communications. 103 * Buffers for individual HDLC frames 143 * HDLC buffer list manipulation functions [all …]
|
/linux/drivers/isdn/mISDN/ |
H A D | dsp_core.c | 145 * HDLC: 147 * It works quite the same as transparent, except that HDLC data is forwarded 150 * Conference cannot join, if one member is not hdlc. 300 if (dsp->hdlc) { in dsp_control_req() 354 if (dsp->hdlc) { in dsp_control_req() 374 if (dsp->hdlc) { in dsp_control_req() 389 if (dsp->hdlc) { in dsp_control_req() 406 if (dsp->hdlc) { in dsp_control_req() 456 if (dsp->hdlc) { in dsp_control_req() 470 if (dsp->hdlc) { in dsp_control_req() [all …]
|
/linux/drivers/greybus/ |
H A D | gb-beagleplay.c | 49 * @tx_work: hdlc transmit work 50 * @tx_producer_lock: hdlc transmit data producer lock. acquired when appending data to buffer. 51 * @tx_consumer_lock: hdlc transmit data consumer lock. acquired when sending data over uart. 52 * @tx_circ_buf: hdlc transmit circular buffer. 53 * @tx_crc: hdlc transmit crc-ccitt fcs 56 * @rx_buffer: hdlc frame receive buffer 57 * @rx_in_esc: hdlc rx flag to indicate ESC frame 109 * struct hdlc_greybus_frame - Structure to represent greybus HDLC frame payload 115 * The HDLC payload sent over UART for greybus address has cport preappended to greybus message 222 * hdlc_write() - Consume HDLC Buffer. [all …]
|
/linux/include/uapi/linux/ |
H A D | synclink.h | 150 unsigned long mode; /* Asynchronous or HDLC */ 153 /* HDLC Only */ 158 unsigned char addr_filter; /* receive HDLC address filter, 0xFF = disable */ 271 * MGSL_IOCTXABORT abort transmitting frame (HDLC) 274 * MGSL_LOOPTXDONE transmit in HDLC LoopMode done
|
H A D | if.h | 37 #include <linux/hdlc/ioctl.h> 142 /* For definitions see hdlc.h */ 151 /* For definitions see hdlc.h */ 152 #define IF_PROTO_HDLC 0x2000 /* raw HDLC protocol */ 154 #define IF_PROTO_CISCO 0x2002 /* Cisco HDLC protocol */ 159 #define IF_PROTO_HDLC_ETH 0x2007 /* raw HDLC, Ethernet emulation */
|