• Home
  • Raw
  • Download

Lines Matching refs:hdlc

129 	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()
281 which, hdlc->ctrl.ctrl); in write_ctrl()
284 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl()
287 __write_ctrl_pci(fc, hdlc, bch->nr); in write_ctrl()
339 struct hdlc_hw *hdlc; in modehdlc() local
342 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in modehdlc()
345 hdlc->ctrl.ctrl = 0; in modehdlc()
355 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
356 hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; in modehdlc()
364 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
365 hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; in modehdlc()
367 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS; in modehdlc()
369 hdlc->ctrl.sr.cmd = 0; in modehdlc()
374 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
375 hdlc->ctrl.sr.mode = mode | HDLC_MODE_ITF_FLG; in modehdlc()
377 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS; in modehdlc()
379 hdlc->ctrl.sr.cmd = 0; in modehdlc()
439 struct hdlc_hw *hdlc; in hdlc_fill_fifo() local
446 hdlc = &fc->hdlc[idx]; in hdlc_fill_fifo()
461 hdlc->ctrl.sr.cmd &= ~HDLC_CMD_XME; in hdlc_fill_fifo()
466 hdlc->ctrl.sr.cmd |= HDLC_CMD_XME; in hdlc_fill_fifo()
476 hdlc->ctrl.sr.xml = ((count == fs) ? 0 : count); in hdlc_fill_fifo()
478 __write_ctrl_pciv2(fc, hdlc, bch->nr); in hdlc_fill_fifo()
482 __write_ctrl_pci(fc, hdlc, bch->nr); in hdlc_fill_fifo()
528 struct hdlc_hw *hdlc; in HDLC_irq() local
530 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in HDLC_irq()
543 hdlc->ctrl.sr.xml = 0; in HDLC_irq()
544 hdlc->ctrl.sr.cmd |= HDLC_CMD_RRS; in HDLC_irq()
546 hdlc->ctrl.sr.cmd &= ~HDLC_CMD_RRS; in HDLC_irq()
585 hdlc->ctrl.sr.xml = 0; in HDLC_irq()
586 hdlc->ctrl.sr.cmd |= HDLC_CMD_XRS; in HDLC_irq()
588 hdlc->ctrl.sr.cmd &= ~HDLC_CMD_XRS; in HDLC_irq()