Home
last modified time | relevance | path

Searched full:hdlc (Results 1 – 25 of 207) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/
Disdnhdlc.c3 * 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 …]
Disdnhdlc.h3 * 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,
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()
280 pr_debug("%s: hdlc %c wr%x ctrl %x\n", fc->name, '@' + bch->nr, in write_ctrl()
281 which, hdlc->ctrl.ctrl); in write_ctrl()
284 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl()
[all …]
/kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/
Disdnhdlc.c3 * 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 …]
Disdnhdlc.h3 * 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,
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()
280 pr_debug("%s: hdlc %c wr%x ctrl %x\n", fc->name, '@' + bch->nr, in write_ctrl()
281 which, hdlc->ctrl.ctrl); in write_ctrl()
284 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl()
[all …]
/kernel/linux/linux-5.10/drivers/net/wan/
Dhdlc.c3 * Generic HDLC support routines for Linux
8 * * raw IP-in-HDLC
9 * * Cisco HDLC
25 #include <linux/hdlc.h>
40 static const char* version = "HDLC support module revision 1.22";
49 struct hdlc_device *hdlc; in hdlc_rcv() local
51 /* First make sure "dev" is an HDLC device */ in hdlc_rcv()
57 hdlc = dev_to_hdlc(dev); in hdlc_rcv()
64 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv()
65 return hdlc->proto->netif_rx(skb); in hdlc_rcv()
[all …]
DKconfig29 depends on ISA && m && ISA_DMA_API && INET && HDLC && VIRT_TO_BUS
33 256Kbps, supporting PPP and Cisco HDLC.
41 depends on ISA && m && ISA_DMA_API && HDLC && VIRT_TO_BUS
48 character device, synchronous PPP network device, or the Cisco HDLC
65 depends on PCI && VIRT_TO_BUS && HDLC
91 depends on ISA && m && ISA_DMA_API && INET && HDLC && VIRT_TO_BUS
98 # Generic HDLC
99 config HDLC config
100 tristate "Generic HDLC layer"
107 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
[all …]
Dhdlc_fr.c3 * Generic HDLC support routines for Linux
35 #include <linux/hdlc.h>
169 static inline struct frad_state* state(hdlc_device *hdlc) in state() argument
171 return(struct frad_state *)(hdlc->state); in state()
175 static inline struct pvc_device *find_pvc(hdlc_device *hdlc, u16 dlci) in find_pvc() argument
177 struct pvc_device *pvc = state(hdlc)->first_pvc; in find_pvc()
193 hdlc_device *hdlc = dev_to_hdlc(dev); in add_pvc() local
194 struct pvc_device *pvc, **pvc_p = &state(hdlc)->first_pvc; in add_pvc()
245 static inline void delete_unused_pvcs(hdlc_device *hdlc) in delete_unused_pvcs() argument
247 struct pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs()
[all …]
Dhdlc_x25.c3 * Generic HDLC support routines for Linux
11 #include <linux/hdlc.h>
32 static struct x25_state *state(hdlc_device *hdlc) in state() argument
34 return hdlc->state; in state()
95 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_data_transmit() local
103 hdlc->xmit(skb, dev); /* Ignore return value :-( */ in x25_data_transmit()
110 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_xmit() local
111 struct x25_state *x25st = state(hdlc); in x25_xmit()
181 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_open() local
182 struct x25_state *x25st = state(hdlc); in x25_open()
[all …]
Dhdlc_raw.c3 * 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");
Dhdlc_cisco.c3 * Generic HDLC support routines for Linux
4 * Cisco HDLC support
10 #include <linux/hdlc.h>
66 static inline struct cisco_state* state(hdlc_device *hdlc) in state() argument
68 return (struct cisco_state *)hdlc->state; in state()
155 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_rx() local
156 struct cisco_state *st = state(hdlc); in cisco_rx()
283 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_start() local
284 struct cisco_state *st = state(hdlc); in cisco_start()
301 hdlc_device *hdlc = dev_to_hdlc(dev); in cisco_stop() local
[all …]
Dhdlc_raw_eth.c3 * 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");
/kernel/linux/linux-6.6/drivers/net/wan/
Dhdlc.c3 * 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 …]
DKconfig26 # 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 …]
Dhdlc_fr.c3 * 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 …]
Dhdlc_x25.c3 * 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 …]
Dhdlc_raw.c3 * 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");
Dhdlc_cisco.c3 * 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 …]
Dhdlc_raw_eth.c3 * 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");
/kernel/linux/linux-5.10/Documentation/networking/
Dgeneric-hdlc.rst4 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 …]
/kernel/linux/linux-6.6/Documentation/networking/
Dgeneric-hdlc.rst4 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 …]
/kernel/linux/linux-6.6/include/linux/
Dhdlc.h3 * 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 …]
/kernel/linux/linux-5.10/include/linux/
Dhdlc.h3 * 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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt45 * HDLC
48 - fsl,ucc-hdlc
50 Properties for fsl,ucc-hdlc:
61 Definition : Specify that hdlc is based on tdm-interface
104 Definition: HDLC address recognition. Set to zero to disable
111 compatible = "fsl,ucc-hdlc";
124 Example for hdlc without tdm interface:
127 compatible = "fsl,ucc-hdlc";

123456789