Home
last modified time | relevance | path

Searched refs:hdlc (Results 1 - 25 of 75) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/
H A 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 in isdnhdlc_out_init()
74 check_frame(struct isdnhdlc_vars *hdlc) check_frame() argument
118 isdnhdlc_decode(struct isdnhdlc_vars *hdlc, const u8 *src, int slen, int *count, u8 *dst, int dsize) isdnhdlc_decode() argument
341 isdnhdlc_encode(struct isdnhdlc_vars *hdlc, const u8 *src, u16 slen, int *count, u8 *dst, int dsize) isdnhdlc_encode() argument
[all...]
H A 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 in write_ctrl()
339 struct hdlc_hw *hdlc; modehdlc() local
439 struct hdlc_hw *hdlc; hdlc_fill_fifo() local
528 struct hdlc_hw *hdlc; HDLC_irq() local
[all...]
H A Disdnhdlc.h3 * hdlc.h -- General purpose ISDN HDLC decoder.
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,
/kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/
H A 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 in isdnhdlc_out_init()
74 check_frame(struct isdnhdlc_vars *hdlc) check_frame() argument
118 isdnhdlc_decode(struct isdnhdlc_vars *hdlc, const u8 *src, int slen, int *count, u8 *dst, int dsize) isdnhdlc_decode() argument
341 isdnhdlc_encode(struct isdnhdlc_vars *hdlc, const u8 *src, u16 slen, int *count, u8 *dst, int dsize) isdnhdlc_encode() argument
[all...]
H A 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 in write_ctrl()
339 struct hdlc_hw *hdlc; modehdlc() local
439 struct hdlc_hw *hdlc; hdlc_fill_fifo() local
528 struct hdlc_hw *hdlc; HDLC_irq() local
[all...]
H A Disdnhdlc.h3 * hdlc.h -- General purpose ISDN HDLC decoder.
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,
/kernel/linux/linux-5.10/drivers/net/wan/
H A Dhdlc.c25 #include <linux/hdlc.h>
49 struct hdlc_device *hdlc; in hdlc_rcv() local
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()
70 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_start_xmit() local
72 if (hdlc->proto->xmit) in hdlc_start_xmit()
73 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit()
75 return hdlc->xmit(skb, dev); /* call hardware driver directly */ in hdlc_start_xmit()
80 hdlc_device *hdlc in hdlc_proto_start() local
89 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_proto_stop() local
100 hdlc_device *hdlc; hdlc_device_event() local
149 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_open() local
183 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_close() local
248 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_setup() local
303 hdlc_device *hdlc = dev_to_hdlc(dev); detach_hdlc_protocol() local
[all...]
H A Dhdlc_fr.c35 #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()
347 hdlc_device *hdlc in pvc_open() local
364 hdlc_device *hdlc = dev_to_hdlc(pvc->frad); pvc_close() local
479 hdlc_device *hdlc = dev_to_hdlc(dev); fr_lmi_send() local
576 hdlc_device *hdlc = dev_to_hdlc(dev); fr_set_link_state() local
611 hdlc_device *hdlc = dev_to_hdlc(dev); fr_timer() local
661 hdlc_device *hdlc = dev_to_hdlc(dev); fr_lmi_recv() local
878 hdlc_device *hdlc = dev_to_hdlc(frad); fr_rx() local
999 hdlc_device *hdlc = dev_to_hdlc(dev); fr_start() local
1024 hdlc_device *hdlc = dev_to_hdlc(dev); fr_stop() local
1036 hdlc_device *hdlc = dev_to_hdlc(dev); fr_close() local
1067 hdlc_device *hdlc = dev_to_hdlc(frad); fr_add_pvc() local
1126 fr_del_pvc(hdlc_device *hdlc, unsigned int dlci, int type) fr_del_pvc() argument
1155 hdlc_device *hdlc = dev_to_hdlc(frad); fr_destroy() local
1192 hdlc_device *hdlc = dev_to_hdlc(dev); fr_ioctl() local
[all...]
H A Dhdlc_x25.c11 #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()
194 if (state(hdlc) in x25_open()
220 hdlc_device *hdlc = dev_to_hdlc(dev); x25_close() local
235 hdlc_device *hdlc = dev_to_hdlc(dev); x25_rx() local
277 hdlc_device *hdlc = dev_to_hdlc(dev); x25_ioctl() local
[all...]
H A Dhdlc_cisco.c10 #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
302 struct cisco_state *st = state(hdlc); in cisco_stop()
332 hdlc_device *hdlc in cisco_ioctl() local
[all...]
H A Dhdlc_raw_eth.c12 #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()
H A Dhdlc_raw.c10 #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()
H A Dc101.c7 * For information see <https://www.kernel.org/pub/linux/utils/net/hdlc/>
25 #include <linux/hdlc.h>
308 hdlc_device *hdlc; in c101_run() local
365 hdlc = dev_to_hdlc(dev); in c101_run()
373 hdlc->attach = sca_attach; in c101_run()
374 hdlc->xmit = sca_xmit; in c101_run()
379 pr_warn("unable to register hdlc device\n"); in c101_run()
H A Dfsl_ucc_hdlc.c9 #include <linux/hdlc.h>
196 /* Alloc parameter ram for ucc hdlc */ in uhdlc_init()
201 dev_err(priv->dev, "Can not allocate MURAM for hdlc parameter.\n"); in uhdlc_init()
355 hdlc_device *hdlc = dev_to_hdlc(dev); in ucc_hdlc_tx() local
356 struct ucc_hdlc_private *priv = (struct ucc_hdlc_private *)hdlc->priv; in ucc_hdlc_tx()
367 netdev_err(dev, "No enough space for hdlc head\n"); in ucc_hdlc_tx()
523 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_rx_done() local
593 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 in uhdlc_open()
1124 hdlc_device *hdlc; ucc_hdlc_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wan/
H A Dhdlc.c25 #include <linux/hdlc.h>
48 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 in hdlc_proto_start() local
88 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_proto_stop() local
98 hdlc_device *hdlc; hdlc_device_event() local
145 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_open() local
180 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_close() local
243 hdlc_device *hdlc = dev_to_hdlc(dev); hdlc_setup() local
299 hdlc_device *hdlc = dev_to_hdlc(dev); detach_hdlc_protocol() local
[all...]
H A Dhdlc_fr.c35 #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()
331 hdlc_device *hdlc in pvc_open() local
347 hdlc_device *hdlc = dev_to_hdlc(pvc->frad); pvc_close() local
458 hdlc_device *hdlc = dev_to_hdlc(dev); fr_lmi_send() local
552 hdlc_device *hdlc = dev_to_hdlc(dev); fr_set_link_state() local
586 hdlc_device *hdlc = dev_to_hdlc(dev); fr_timer() local
635 hdlc_device *hdlc = dev_to_hdlc(dev); fr_lmi_recv() local
892 hdlc_device *hdlc = dev_to_hdlc(frad); fr_rx() local
998 hdlc_device *hdlc = dev_to_hdlc(dev); fr_start() local
1023 hdlc_device *hdlc = dev_to_hdlc(dev); fr_stop() local
1034 hdlc_device *hdlc = dev_to_hdlc(dev); fr_close() local
1064 hdlc_device *hdlc = dev_to_hdlc(frad); fr_add_pvc() local
1124 fr_del_pvc(hdlc_device *hdlc, unsigned int dlci, int type) fr_del_pvc() argument
1153 hdlc_device *hdlc = dev_to_hdlc(frad); fr_destroy() local
1189 hdlc_device *hdlc = dev_to_hdlc(dev); fr_ioctl() local
[all...]
H A Dhdlc_x25.c11 #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()
202 if (state(hdlc) in x25_open()
226 hdlc_device *hdlc = dev_to_hdlc(dev); x25_close() local
240 hdlc_device *hdlc = dev_to_hdlc(dev); x25_rx() local
281 hdlc_device *hdlc = dev_to_hdlc(dev); x25_ioctl() local
[all...]
H A Dhdlc_cisco.c10 #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
285 struct cisco_state *st = state(hdlc); in cisco_stop()
314 hdlc_device *hdlc in cisco_ioctl() local
[all...]
H A Dhdlc_raw_eth.c12 #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()
H A Dhdlc_raw.c10 #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()
H A Dc101.c7 * 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()
/kernel/linux/linux-5.10/include/linux/
H A Dhdlc.h13 #include <linux/hdlc/ioctl.h>
14 #include <uapi/linux/hdlc.h>
54 /* Exported from hdlc module */
104 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_type_trans() local
109 if (hdlc->proto->type_trans) in hdlc_type_trans()
110 return hdlc->proto->type_trans(skb, dev); in hdlc_type_trans()
/kernel/linux/linux-6.6/include/linux/
H A Dhdlc.h13 #include <linux/hdlc/ioctl.h>
14 #include <uapi/linux/hdlc.h>
54 /* Exported from hdlc module */
104 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_type_trans() local
109 if (hdlc->proto->type_trans) in hdlc_type_trans()
110 return hdlc->proto->type_trans(skb, dev); in hdlc_type_trans()
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
H A Ddsp_core.c150 * Conference cannot join, if one member is not hdlc.
299 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()
[all...]
/kernel/linux/linux-6.6/drivers/isdn/mISDN/
H A Ddsp_core.c150 * Conference cannot join, if one member is not hdlc.
299 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()
[all...]

Completed in 16 milliseconds

123