• Home
  • Raw
  • Download

Lines Matching refs:hdlc

142 	struct hdlc_hw		hdlc[2];  member
274 __write_ctrl_pci(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pci() argument
278 outl(hdlc->ctrl.ctrl, fc->addr + CHIP_WINDOW + HDLC_STATUS); in __write_ctrl_pci()
282 __write_ctrl_pciv2(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { in __write_ctrl_pciv2() argument
283 outl(hdlc->ctrl.ctrl, fc->addr + (channel == 2 ? AVM_HDLC_STATUS_2 : in __write_ctrl_pciv2()
290 struct hdlc_hw *hdlc; in write_ctrl() local
292 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in write_ctrl()
294 which, hdlc->ctrl.ctrl); in write_ctrl()
297 __write_ctrl_pciv2(fc, hdlc, bch->nr); in write_ctrl()
300 __write_ctrl_pci(fc, hdlc, bch->nr); in write_ctrl()
352 struct hdlc_hw *hdlc; in modehdlc() local
355 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in modehdlc()
358 hdlc->ctrl.ctrl = 0; in modehdlc()
367 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
368 hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; in modehdlc()
376 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
377 hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; in modehdlc()
379 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS; in modehdlc()
381 hdlc->ctrl.sr.cmd = 0; in modehdlc()
386 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
387 hdlc->ctrl.sr.mode = mode | HDLC_MODE_ITF_FLG; in modehdlc()
389 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS; in modehdlc()
391 hdlc->ctrl.sr.cmd = 0; in modehdlc()
451 struct hdlc_hw *hdlc; in hdlc_fill_fifo() local
458 hdlc = &fc->hdlc[idx]; in hdlc_fill_fifo()
473 hdlc->ctrl.sr.cmd &= ~HDLC_CMD_XME; in hdlc_fill_fifo()
478 hdlc->ctrl.sr.cmd |= HDLC_CMD_XME; in hdlc_fill_fifo()
488 hdlc->ctrl.sr.xml = ((count == fs) ? 0 : count); in hdlc_fill_fifo()
490 __write_ctrl_pciv2(fc, hdlc, bch->nr); in hdlc_fill_fifo()
494 __write_ctrl_pci(fc, hdlc, bch->nr); in hdlc_fill_fifo()
541 struct hdlc_hw *hdlc; in HDLC_irq() local
543 hdlc = &fc->hdlc[(bch->nr - 1) & 1]; in HDLC_irq()
556 hdlc->ctrl.sr.xml = 0; in HDLC_irq()
557 hdlc->ctrl.sr.cmd |= HDLC_CMD_RRS; in HDLC_irq()
559 hdlc->ctrl.sr.cmd &= ~HDLC_CMD_RRS; in HDLC_irq()
598 hdlc->ctrl.sr.xml = 0; in HDLC_irq()
599 hdlc->ctrl.sr.cmd |= HDLC_CMD_XRS; in HDLC_irq()
601 hdlc->ctrl.sr.cmd &= ~HDLC_CMD_XRS; in HDLC_irq()