Home
last modified time | relevance | path

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

12

/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 …]
/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 pvc_device* find_pvc(hdlc_device *hdlc, u16 dlci) in find_pvc() argument
179 pvc_device *pvc = state(hdlc)->first_pvc; in find_pvc()
195 hdlc_device *hdlc = dev_to_hdlc(dev); in add_pvc() local
196 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 pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs()
351 hdlc_device *hdlc = dev_to_hdlc(pvc->frad); in pvc_open() local
352 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()
Dpci200syn.c388 hdlc_device *hdlc = dev_to_hdlc(dev); in pci200_pci_init_one() local
397 hdlc->attach = sca_attach; in pci200_pci_init_one()
398 hdlc->xmit = sca_xmit; in pci200_pci_init_one()
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/>.
243 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
258 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
274 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.
295 simply use "alias hdlc* farsync" to indicate all of them.
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.c448 hdlc_device *hdlc = dev_to_hdlc(dev); in pc300_pci_init_one() local
457 hdlc->attach = sca_attach; in pc300_pci_init_one()
458 hdlc->xmit = sca_xmit; in pc300_pci_init_one()
Dwanxl.c768 hdlc_device *hdlc; in wanxl_pci_init_one() local
779 hdlc = dev_to_hdlc(dev); in wanxl_pci_init_one()
783 hdlc->attach = wanxl_attach; in wanxl_pci_init_one()
784 hdlc->xmit = wanxl_xmit; in wanxl_pci_init_one()
DMakefile12 obj-$(CONFIG_HDLC) += hdlc.o
Dixp4xx_hss.c1331 hdlc_device *hdlc; in hss_init_one() local
1348 hdlc = dev_to_hdlc(dev); in hss_init_one()
1349 hdlc->attach = hss_hdlc_attach; in hss_init_one()
1350 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()
/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 …]
/drivers/isdn/hardware/mISDN/
Davmfritz.c138 struct hdlc_hw hdlc[2]; member
270 __write_ctrl_pci(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pci() argument
274 outl(hdlc->ctrl.ctrl, fc->addr + CHIP_WINDOW + HDLC_STATUS); in __write_ctrl_pci()
278 __write_ctrl_pciv2(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pciv2() argument
279 outl(hdlc->ctrl.ctrl, fc->addr + (channel == 2 ? AVM_HDLC_STATUS_2 : in __write_ctrl_pciv2()
286 struct hdlc_hw *hdlc; in write_ctrl() local
288 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in write_ctrl()
290 which, hdlc->ctrl.ctrl); in write_ctrl()
293 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl()
296 __write_ctrl_pci(fc, hdlc, bch->nr); in write_ctrl()
[all …]
Dhfcsusb.c852 int hdlc = 0; in hfcsusb_rx_frame() local
873 hdlc = 1; in hfcsusb_rx_frame()
878 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in hfcsusb_rx_frame()
883 hdlc = 1; in hfcsusb_rx_frame()
928 if (hdlc) { in hfcsusb_rx_frame()
1201 errcode, hdlc, i; in tx_iso_complete() local
1217 hdlc = 1; in tx_iso_complete()
1221 hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); in tx_iso_complete()
1298 if (hdlc) { in tx_iso_complete()
/drivers/isdn/mISDN/
Ddsp_core.c298 if (dsp->hdlc) { in dsp_control_req()
352 if (dsp->hdlc) { in dsp_control_req()
372 if (dsp->hdlc) { in dsp_control_req()
387 if (dsp->hdlc) { in dsp_control_req()
404 if (dsp->hdlc) { in dsp_control_req()
454 if (dsp->hdlc) { in dsp_control_req()
468 if (dsp->hdlc) { in dsp_control_req()
501 if (dsp->hdlc) { in dsp_control_req()
522 if (dsp->hdlc) { in dsp_control_req()
532 if (dsp->hdlc) { in dsp_control_req()
[all …]
Ddsp_cmx.c956 if (member->dsp->hdlc) in dsp_cmx_hardware()
1118 if (dsp->hdlc && !member->dsp->hdlc) { in dsp_cmx_conf()
1124 if (!dsp->hdlc && member->dsp->hdlc) { in dsp_cmx_conf()
1668 if (dsp->hdlc)
1706 if (member->dsp->hdlc)
1735 if (dsp->hdlc)
Ddsp.h185 int hdlc; /* if mode is hdlc */ member
/drivers/staging/cxt1e1/
Dlinux.c147 get_hdlc_name (hdlc_device * hdlc) in get_hdlc_name() argument
149 struct c4_priv *priv = hdlc->priv; in get_hdlc_name()
291 hdlc_device *hdlc = dev_to_hdlc (ndev); in chan_open() local
292 const struct c4_priv *priv = hdlc->priv; in chan_open()
311 hdlc_device *hdlc = dev_to_hdlc (ndev); in chan_close() local
312 const struct c4_priv *priv = hdlc->priv; in chan_close()
403 hdlc_device *hdlc = dev_to_hdlc (ndev); in c4_linux_xmit() local
405 priv = hdlc->priv; in c4_linux_xmit()
423 hdlc_device *hdlc; in create_chan() local
452 hdlc = dev_to_hdlc (dev); in create_chan()
[all …]
/drivers/staging/sbe-2t3e3/
Dnetdev.c128 hdlc_device *hdlc = dev_to_hdlc(dev); in setup_device() local
135 hdlc->xmit = t3e3_if_start_xmit; in setup_device()
136 hdlc->attach = t3e3_attach; in setup_device()
DKconfig8 <http://www.kernel.org/pub/linux/utils/net/hdlc/>.

12