Home
last modified time | relevance | path

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

12

/linux/drivers/net/wan/
H A Dhdlc.c48 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 = dev_to_hdlc(dev); in hdlc_proto_start() local
82 if (hdlc->proto->start) in hdlc_proto_start()
[all …]
H A Dhdlc_fr.c162 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 = dev_to_hdlc(pvc->frad); in pvc_open() local
333 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_open()
[all …]
H A Dhdlc_x25.c34 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)->settings.dce) in x25_open()
205 if (state(hdlc)->settings.modulo == 128) in x25_open()
[all …]
H A Dhdlc_cisco.c61 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 = dev_to_hdlc(dev); in cisco_ioctl() local
326 if (copy_to_user(cisco_s, &state(hdlc)->settings, size)) in cisco_ioctl()
[all …]
H A Dhdlc_raw.c41 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 Dhdlc_raw_eth.c56 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 DKconfig35 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
40 module will be called hdlc.
107 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
121 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
143 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
158 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
174 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
195 simply use "alias hdlc* farsync" to indicate all of them.
H A Dfsl_qmc_hdlc.c594 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()
H A Dc101.c302 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()
H A Dfsl_ucc_hdlc.c350 hdlc_device *hdlc = dev_to_hdlc(dev); in ucc_hdlc_tx() local
351 struct ucc_hdlc_private *priv = (struct ucc_hdlc_private *)hdlc->priv; in ucc_hdlc_tx()
520 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_rx_done() local
591 if (hdlc->proto) in hdlc_rx_done()
705 hdlc_device *hdlc = dev_to_hdlc(dev); in uhdlc_open() local
706 struct ucc_hdlc_private *priv = hdlc->priv; in uhdlc_open()
1108 hdlc_device *hdlc; in ucc_hdlc_probe() local
1216 hdlc = dev_to_hdlc(dev); in ucc_hdlc_probe()
1220 hdlc->attach = ucc_hdlc_attach; in ucc_hdlc_probe()
1221 hdlc->xmit = ucc_hdlc_tx; in ucc_hdlc_probe()
H A Dpci200syn.c370 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()
H A Dpc300too.c431 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()
H A Dn2.c437 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()
H A Dwanxl.c765 hdlc_device *hdlc; in wanxl_pci_init_one() local
777 hdlc = dev_to_hdlc(dev); in wanxl_pci_init_one()
781 hdlc->attach = wanxl_attach; in wanxl_pci_init_one()
782 hdlc->xmit = wanxl_xmit; in wanxl_pci_init_one()
H A DMakefile9 obj-$(CONFIG_HDLC) += hdlc.o
/linux/Documentation/translations/zh_CN/networking/
H A Dgeneric-hdlc.rst5 :Original: Documentation/networking/generic-hdlc.rst
25 下载地址:http://www.kernel.org/pub/linux/utils/net/hdlc/)。
39 请确保已加载 hdlc.o 和硬件驱动程序。系统将为每个WAN端口创建一个
40 "hdlc"网络设备(如hdlc0等)。您需要使用"sethdlc"工具,可从以下
43 http://www.kernel.org/pub/linux/utils/net/hdlc/
66 在帧中继模式下,请先启用主hdlc设备(不分配IP地址),再
90 * hdlc - 设置原始HDLC模式(仅支持IP协议)
98 * hdlc-eth - 使用HDLC进行以太网设备仿真. 校验和编码方式同上
176 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
H A Dindex.rst31 generic-hdlc
/linux/Documentation/networking/
H A Dgeneric-hdlc.rst18 http://www.kernel.org/pub/linux/utils/net/hdlc/).
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/
59 In Frame Relay mode, ifconfig master hdlc device up (without assigning
84 * hdlc - sets raw HDLC (IP-only) mode
92 * hdlc-eth - Ethernet device emulation using HDLC. Parity and encoding
170 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
H A Dindex.rst55 generic-hdlc
/linux/include/linux/
H A Dhdlc.h104 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()
/linux/arch/powerpc/boot/dts/fsl/
H A Dkmcent2.dts330 device_type = "hdlc";
331 compatible = "fsl,ucc-hdlc";
334 fsl,hdlc-bus;
/linux/include/soc/fsl/qe/
H A Dqmc.h81 } hdlc; member
/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1043a-rdb.dts229 compatible = "fsl,ucc-hdlc";
/linux/drivers/soc/fsl/qe/
H A Dqmc.c412 if (param->hdlc.max_rx_buf_size % 4 || in qmc_chan_set_param()
413 param->hdlc.max_rx_buf_size < 8) in qmc_chan_set_param()
417 param->hdlc.max_rx_buf_size - 8); in qmc_chan_set_param()
419 param->hdlc.max_rx_frame_size); in qmc_chan_set_param()
420 if (param->hdlc.is_crc32) { in qmc_chan_set_param()
/linux/usr/include/
H A DMakefile27 no-header-test += linux/hdlc/ioctl.h

12