Lines Matching refs:F_REG

421 	while (cpc_readb(falcbase + F_REG(SIS, ch)) & SIS_CEC) {  in falc_issue_cmd()
428 cpc_writeb(falcbase + F_REG(CMDR, ch), cmd); in falc_issue_cmd()
439 cpc_writeb(falcbase + F_REG(IPC, ch), in falc_intr_enable()
440 cpc_readb(falcbase + F_REG(IPC, ch)) & ~IPC_IC0); in falc_intr_enable()
442 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_intr_enable()
443 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_ECM); in falc_intr_enable()
445 cpc_writeb(falcbase + F_REG(IMR3, ch), in falc_intr_enable()
446 cpc_readb(falcbase + F_REG(IMR3, ch)) & ~(IMR3_SEC | IMR3_ES)); in falc_intr_enable()
448 cpc_writeb(falcbase + F_REG(IMR4, ch), in falc_intr_enable()
449 cpc_readb(falcbase + F_REG(IMR4, ch)) & ~(IMR4_LOS)); in falc_intr_enable()
451 cpc_writeb(falcbase + F_REG(IMR4, ch), in falc_intr_enable()
452 cpc_readb(falcbase + F_REG(IMR4, ch)) & in falc_intr_enable()
456 cpc_writeb(falcbase + F_REG(IMR3, ch), in falc_intr_enable()
457 cpc_readb(falcbase + F_REG(IMR3, ch)) & ~IMR3_LLBSC); in falc_intr_enable()
459 cpc_writeb(falcbase + F_REG(IPC, ch), in falc_intr_enable()
460 cpc_readb(falcbase + F_REG(IPC, ch)) | IPC_SCI); in falc_intr_enable()
462 cpc_writeb(falcbase + F_REG(IMR2, ch), in falc_intr_enable()
463 cpc_readb(falcbase + F_REG(IMR2, ch)) & ~(IMR2_LOS)); in falc_intr_enable()
465 cpc_writeb(falcbase + F_REG(IMR2, ch), in falc_intr_enable()
466 cpc_readb(falcbase + F_REG(IMR2, ch)) & in falc_intr_enable()
469 cpc_writeb(falcbase + F_REG(IMR2, ch), in falc_intr_enable()
470 cpc_readb(falcbase + F_REG(IMR2, ch)) & in falc_intr_enable()
473 cpc_writeb(falcbase + F_REG(IMR2, ch), in falc_intr_enable()
474 cpc_readb(falcbase + F_REG(IMR2, ch)) | in falc_intr_enable()
486 cpc_writeb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch), in falc_open_timeslot()
487 cpc_readb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch)) & in falc_open_timeslot()
489 cpc_writeb(falcbase + F_REG((TTR1 + timeslot / 8), ch), in falc_open_timeslot()
490 cpc_readb(falcbase + F_REG((TTR1 + timeslot / 8), ch)) | in falc_open_timeslot()
492 cpc_writeb(falcbase + F_REG((RTR1 + timeslot / 8), ch), in falc_open_timeslot()
493 cpc_readb(falcbase + F_REG((RTR1 + timeslot / 8), ch)) | in falc_open_timeslot()
502 cpc_writeb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch), in falc_close_timeslot()
503 cpc_readb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch)) | in falc_close_timeslot()
505 cpc_writeb(falcbase + F_REG((TTR1 + timeslot / 8), ch), in falc_close_timeslot()
506 cpc_readb(falcbase + F_REG((TTR1 + timeslot / 8), ch)) & in falc_close_timeslot()
508 cpc_writeb(falcbase + F_REG((RTR1 + timeslot / 8), ch), in falc_close_timeslot()
509 cpc_readb(falcbase + F_REG((RTR1 + timeslot / 8), ch)) & in falc_close_timeslot()
519 cpc_writeb(falcbase + F_REG(ICB1, ch), 0xff); in falc_close_all_timeslots()
520 cpc_writeb(falcbase + F_REG(TTR1, ch), 0); in falc_close_all_timeslots()
521 cpc_writeb(falcbase + F_REG(RTR1, ch), 0); in falc_close_all_timeslots()
522 cpc_writeb(falcbase + F_REG(ICB2, ch), 0xff); in falc_close_all_timeslots()
523 cpc_writeb(falcbase + F_REG(TTR2, ch), 0); in falc_close_all_timeslots()
524 cpc_writeb(falcbase + F_REG(RTR2, ch), 0); in falc_close_all_timeslots()
525 cpc_writeb(falcbase + F_REG(ICB3, ch), 0xff); in falc_close_all_timeslots()
526 cpc_writeb(falcbase + F_REG(TTR3, ch), 0); in falc_close_all_timeslots()
527 cpc_writeb(falcbase + F_REG(RTR3, ch), 0); in falc_close_all_timeslots()
529 cpc_writeb(falcbase + F_REG(ICB4, ch), 0xff); in falc_close_all_timeslots()
530 cpc_writeb(falcbase + F_REG(TTR4, ch), 0); in falc_close_all_timeslots()
531 cpc_writeb(falcbase + F_REG(RTR4, ch), 0); in falc_close_all_timeslots()
541 cpc_writeb(falcbase + F_REG(ICB1, ch), 0); in falc_open_all_timeslots()
543 cpc_writeb(falcbase + F_REG(TTR1, ch), 0xff); in falc_open_all_timeslots()
544 cpc_writeb(falcbase + F_REG(RTR1, ch), 0xff); in falc_open_all_timeslots()
547 cpc_writeb(falcbase + F_REG(TTR1, ch), 0x7f); in falc_open_all_timeslots()
548 cpc_writeb(falcbase + F_REG(RTR1, ch), 0x7f); in falc_open_all_timeslots()
550 cpc_writeb(falcbase + F_REG(ICB2, ch), 0); in falc_open_all_timeslots()
551 cpc_writeb(falcbase + F_REG(TTR2, ch), 0xff); in falc_open_all_timeslots()
552 cpc_writeb(falcbase + F_REG(RTR2, ch), 0xff); in falc_open_all_timeslots()
553 cpc_writeb(falcbase + F_REG(ICB3, ch), 0); in falc_open_all_timeslots()
554 cpc_writeb(falcbase + F_REG(TTR3, ch), 0xff); in falc_open_all_timeslots()
555 cpc_writeb(falcbase + F_REG(RTR3, ch), 0xff); in falc_open_all_timeslots()
557 cpc_writeb(falcbase + F_REG(ICB4, ch), 0); in falc_open_all_timeslots()
558 cpc_writeb(falcbase + F_REG(TTR4, ch), 0xff); in falc_open_all_timeslots()
559 cpc_writeb(falcbase + F_REG(RTR4, ch), 0xff); in falc_open_all_timeslots()
561 cpc_writeb(falcbase + F_REG(ICB4, ch), 0xff); in falc_open_all_timeslots()
562 cpc_writeb(falcbase + F_REG(TTR4, ch), 0x80); in falc_open_all_timeslots()
563 cpc_writeb(falcbase + F_REG(RTR4, ch), 0x80); in falc_open_all_timeslots()
624 cpc_writeb(falcbase + F_REG(FMR1, ch), FMR1_PMOD); in falc_init_t1()
630 cpc_writeb(falcbase + F_REG(SIC1, ch), SIC1_XBS0); in falc_init_t1()
634 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_init_t1()
635 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_MAS); in falc_init_t1()
637 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_init_t1()
638 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_MAS); in falc_init_t1()
639 cpc_writeb(falcbase + F_REG(LOOP, ch), in falc_init_t1()
640 cpc_readb(falcbase + F_REG(LOOP, ch)) & ~LOOP_RTM); in falc_init_t1()
643 cpc_writeb(falcbase + F_REG(IPC, ch), IPC_SCI); in falc_init_t1()
644 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_t1()
645 cpc_readb(falcbase + F_REG(FMR0, ch)) & in falc_init_t1()
650 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_t1()
651 cpc_readb(falcbase + F_REG(FMR0, ch)) | in falc_init_t1()
654 cpc_writeb(falcbase + F_REG(CCB1, ch), 0xff); in falc_init_t1()
655 cpc_writeb(falcbase + F_REG(CCB2, ch), 0xff); in falc_init_t1()
656 cpc_writeb(falcbase + F_REG(CCB3, ch), 0xff); in falc_init_t1()
660 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_t1()
661 cpc_readb(falcbase + F_REG(FMR0, ch)) | in falc_init_t1()
666 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_t1()
667 cpc_readb(falcbase + F_REG(FMR0, ch)) | 0x00); in falc_init_t1()
671 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_init_t1()
672 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_ELOS); in falc_init_t1()
673 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_init_t1()
674 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~(LIM0_SCL1 | LIM0_SCL0)); in falc_init_t1()
676 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_t1()
677 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_IMOD); in falc_init_t1()
682 cpc_writeb(falcbase + F_REG(FMR4, ch), in falc_init_t1()
683 cpc_readb(falcbase + F_REG(FMR4, ch)) | FMR4_FM1); in falc_init_t1()
684 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_t1()
685 cpc_readb(falcbase + F_REG(FMR1, ch)) | in falc_init_t1()
687 cpc_writeb(falcbase + F_REG(XDL1, ch), 0); in falc_init_t1()
688 cpc_writeb(falcbase + F_REG(XDL2, ch), 0); in falc_init_t1()
689 cpc_writeb(falcbase + F_REG(XDL3, ch), 0); in falc_init_t1()
690 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_t1()
691 cpc_readb(falcbase + F_REG(FMR0, ch)) & ~FMR0_SRAF); in falc_init_t1()
692 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_t1()
693 cpc_readb(falcbase + F_REG(FMR2,ch)) | FMR2_MCSP | FMR2_SSP); in falc_init_t1()
698 cpc_writeb(falcbase + F_REG(FMR4, ch), in falc_init_t1()
699 cpc_readb(falcbase + F_REG(FMR4, ch)) & in falc_init_t1()
701 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_t1()
702 cpc_readb(falcbase + F_REG(FMR0, ch)) | FMR0_SRAF); in falc_init_t1()
703 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_t1()
704 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_SSP); in falc_init_t1()
709 cpc_writeb(falcbase + F_REG(FMR4, ch), in falc_init_t1()
710 cpc_readb(falcbase + F_REG(FMR4, ch)) | FMR4_AUTO); in falc_init_t1()
713 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_t1()
714 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_AXRA); in falc_init_t1()
717 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_t1()
718 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_CTM); in falc_init_t1()
721 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_t1()
722 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_SIGM); in falc_init_t1()
723 cpc_writeb(falcbase + F_REG(FMR5, ch), in falc_init_t1()
724 cpc_readb(falcbase + F_REG(FMR5, ch)) & in falc_init_t1()
726 cpc_writeb(falcbase + F_REG(CCR1, ch), 0); in falc_init_t1()
728 cpc_writeb(falcbase + F_REG(LIM1, ch), in falc_init_t1()
729 cpc_readb(falcbase + F_REG(LIM1, ch)) | LIM1_RIL0 | LIM1_RIL1); in falc_init_t1()
734 cpc_writeb(falcbase + F_REG(LIM2, ch), (LIM2_LOS1 | dja)); in falc_init_t1()
735 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x5a); in falc_init_t1()
736 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x8f); in falc_init_t1()
737 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20); in falc_init_t1()
740 cpc_writeb(falcbase + F_REG(LIM2, ch), (0x40 | LIM2_LOS1 | dja)); in falc_init_t1()
741 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x11); in falc_init_t1()
742 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x02); in falc_init_t1()
743 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20); in falc_init_t1()
746 cpc_writeb(falcbase + F_REG(LIM2, ch), (0x80 | LIM2_LOS1 | dja)); in falc_init_t1()
747 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x8e); in falc_init_t1()
748 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x01); in falc_init_t1()
749 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20); in falc_init_t1()
752 cpc_writeb(falcbase + F_REG(LIM2, ch), (0xc0 | LIM2_LOS1 | dja)); in falc_init_t1()
753 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x09); in falc_init_t1()
754 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x01); in falc_init_t1()
755 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20); in falc_init_t1()
760 cpc_writeb(falcbase + F_REG(XC0, ch), in falc_init_t1()
761 cpc_readb(falcbase + F_REG(XC0, ch)) | 0x01); in falc_init_t1()
763 cpc_writeb(falcbase + F_REG(XC1, ch), 0x3e); in falc_init_t1()
765 cpc_writeb(falcbase + F_REG(RC0, ch), 0x05); in falc_init_t1()
767 cpc_writeb(falcbase + F_REG(RC1, ch), 0x00); in falc_init_t1()
770 cpc_writeb(falcbase + F_REG(PCDR, ch), 0x0a); in falc_init_t1()
772 cpc_writeb(falcbase + F_REG(PCRR, ch), 0x15); in falc_init_t1()
774 cpc_writeb(falcbase + F_REG(IDLE, ch), 0x7f); in falc_init_t1()
777 cpc_writeb(falcbase + F_REG(RC1, ch), in falc_init_t1()
778 cpc_readb(falcbase + F_REG(RC1, ch)) | 0x80); in falc_init_t1()
793 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
794 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_PMOD); in falc_init_e1()
798 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_init_e1()
799 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_MAS); in falc_init_e1()
801 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_init_e1()
802 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_MAS); in falc_init_e1()
804 cpc_writeb(falcbase + F_REG(LOOP, ch), in falc_init_e1()
805 cpc_readb(falcbase + F_REG(LOOP, ch)) & ~LOOP_SFM); in falc_init_e1()
807 cpc_writeb(falcbase + F_REG(IPC, ch), IPC_SCI); in falc_init_e1()
808 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_e1()
809 cpc_readb(falcbase + F_REG(FMR0, ch)) & in falc_init_e1()
814 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_e1()
815 cpc_readb(falcbase + F_REG(FMR0, ch)) | in falc_init_e1()
820 cpc_writeb(falcbase + F_REG(FMR0, ch), in falc_init_e1()
821 cpc_readb(falcbase + F_REG(FMR0, ch)) | in falc_init_e1()
829 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_init_e1()
830 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~(LIM0_SCL1 | LIM0_SCL0)); in falc_init_e1()
832 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
833 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_IMOD); in falc_init_e1()
835 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x18); in falc_init_e1()
836 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x03); in falc_init_e1()
837 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x00); in falc_init_e1()
842 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
843 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_XFS); in falc_init_e1()
844 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
845 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_RFS1); in falc_init_e1()
846 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
847 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_RFS0); in falc_init_e1()
848 cpc_writeb(falcbase + F_REG(FMR3, ch), in falc_init_e1()
849 cpc_readb(falcbase + F_REG(FMR3, ch)) & ~FMR3_EXTIW); in falc_init_e1()
852 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
853 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_MFCS); in falc_init_e1()
856 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
857 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_ALMF); in falc_init_e1()
860 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_init_e1()
861 cpc_readb(falcbase + F_REG(XSP, ch)) & ~XSP_AXS); in falc_init_e1()
862 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_init_e1()
863 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_EBP); in falc_init_e1()
864 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_init_e1()
865 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_XS13 | XSP_XS15); in falc_init_e1()
868 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
869 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_AFR); in falc_init_e1()
872 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
873 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_AXRA); in falc_init_e1()
876 cpc_writeb(falcbase + F_REG(XSW, ch), in falc_init_e1()
877 cpc_readb(falcbase + F_REG(XSW, ch)) | in falc_init_e1()
884 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
885 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_XFS); in falc_init_e1()
886 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
887 cpc_readb(falcbase + F_REG(FMR2, ch)) & in falc_init_e1()
889 cpc_writeb(falcbase + F_REG(XSW, ch), in falc_init_e1()
890 cpc_readb(falcbase + F_REG(XSW, ch)) | XSW_XSIS); in falc_init_e1()
891 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_init_e1()
892 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_XSIF); in falc_init_e1()
895 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
896 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_AFR); in falc_init_e1()
899 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
900 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_AXRA); in falc_init_e1()
903 cpc_writeb(falcbase + F_REG(XSW, ch), in falc_init_e1()
904 cpc_readb(falcbase + F_REG(XSW, ch)) | in falc_init_e1()
910 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
911 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_XFS); in falc_init_e1()
912 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
913 cpc_readb(falcbase + F_REG(FMR2, ch)) & in falc_init_e1()
915 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_init_e1()
916 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_TT0); in falc_init_e1()
917 cpc_writeb(falcbase + F_REG(XSW, ch), in falc_init_e1()
918 cpc_readb(falcbase + F_REG(XSW, ch)) & in falc_init_e1()
920 cpc_writeb(falcbase + F_REG(TSWM, ch), 0xff); in falc_init_e1()
921 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
922 cpc_readb(falcbase + F_REG(FMR2, ch)) | in falc_init_e1()
924 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_init_e1()
925 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_AXRA); in falc_init_e1()
926 cpc_writeb(falcbase + F_REG(FMR1, ch), in falc_init_e1()
927 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_AFR); in falc_init_e1()
936 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_init_e1()
937 cpc_readb(falcbase + F_REG(XSP, ch)) & ~XSP_CASEN); in falc_init_e1()
938 cpc_writeb(falcbase + F_REG(CCR1, ch), 0); in falc_init_e1()
940 cpc_writeb(falcbase + F_REG(LIM1, ch), in falc_init_e1()
941 cpc_readb(falcbase + F_REG(LIM1, ch)) | LIM1_RIL0 | LIM1_RIL1); in falc_init_e1()
942 cpc_writeb(falcbase + F_REG(LIM2, ch), (LIM2_LOS1 | dja)); in falc_init_e1()
945 cpc_writeb(falcbase + F_REG(XC0, ch), in falc_init_e1()
946 cpc_readb(falcbase + F_REG(XC0, ch)) | 0x01); in falc_init_e1()
948 cpc_writeb(falcbase + F_REG(XC1, ch), 0x3e); in falc_init_e1()
950 cpc_writeb(falcbase + F_REG(RC0, ch), 0x05); in falc_init_e1()
952 cpc_writeb(falcbase + F_REG(RC1, ch), 0x00); in falc_init_e1()
955 cpc_writeb(falcbase + F_REG(PCDR, ch), 0x0a); in falc_init_e1()
957 cpc_writeb(falcbase + F_REG(PCRR, ch), 0x15); in falc_init_e1()
959 cpc_writeb(falcbase + F_REG(IDLE, ch), 0x7f); in falc_init_e1()
972 cpc_writeb(falcbase + F_REG(MODE, ch), 0); in falc_init_hdlc()
974 cpc_writeb(falcbase + F_REG(MODE, ch), in falc_init_hdlc()
975 cpc_readb(falcbase + F_REG(MODE, ch)) | in falc_init_hdlc()
977 cpc_writeb(falcbase + F_REG(RAH2, ch), 0xff); in falc_init_hdlc()
978 cpc_writeb(falcbase + F_REG(RAH1, ch), 0xff); in falc_init_hdlc()
979 cpc_writeb(falcbase + F_REG(RAL2, ch), 0xff); in falc_init_hdlc()
980 cpc_writeb(falcbase + F_REG(RAL1, ch), 0xff); in falc_init_hdlc()
1032 cpc_writeb(falcbase + F_REG(LIM0, ch), in te_config()
1033 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_EQON); in te_config()
1035 cpc_writeb(falcbase + F_REG(LIM0, ch), in te_config()
1036 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_EQON); in te_config()
1043 dummy = cpc_readb(falcbase + F_REG(FISR0, ch)) + in te_config()
1044 cpc_readb(falcbase + F_REG(FISR1, ch)) + in te_config()
1045 cpc_readb(falcbase + F_REG(FISR2, ch)) + in te_config()
1046 cpc_readb(falcbase + F_REG(FISR3, ch)); in te_config()
1067 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_check_status()
1068 cpc_readb(falcbase + F_REG(IMR0, ch)) in falc_check_status()
1091 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_check_status()
1092 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN); in falc_check_status()
1111 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_check_status()
1112 cpc_readb(falcbase + F_REG(IMR0, ch)) in falc_check_status()
1138 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_check_status()
1139 cpc_readb(falcbase + F_REG(IMR0, ch)) in falc_check_status()
1192 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_check_status()
1193 cpc_readb(falcbase + F_REG(IMR0, ch)) & ~IMR0_PDEN); in falc_check_status()
1214 counter = cpc_readb(falcbase + F_REG(FECL, ch)); in falc_update_stats()
1215 counter |= cpc_readb(falcbase + F_REG(FECH, ch)) << 8; in falc_update_stats()
1218 counter = cpc_readb(falcbase + F_REG(CVCL, ch)); in falc_update_stats()
1219 counter |= cpc_readb(falcbase + F_REG(CVCH, ch)) << 8; in falc_update_stats()
1222 counter = cpc_readb(falcbase + F_REG(CECL, ch)); in falc_update_stats()
1223 counter |= cpc_readb(falcbase + F_REG(CECH, ch)) << 8; in falc_update_stats()
1226 counter = cpc_readb(falcbase + F_REG(EBCL, ch)); in falc_update_stats()
1227 counter |= cpc_readb(falcbase + F_REG(EBCH, ch)) << 8; in falc_update_stats()
1230 if (cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_EPRM) { in falc_update_stats()
1232 counter = cpc_readb(falcbase + F_REG(BECL, ch)); in falc_update_stats()
1233 counter |= cpc_readb(falcbase + F_REG(BECH, ch)) << 8; in falc_update_stats()
1237 (cpc_readb(falcbase + F_REG(FRS1, ch)) & FRS1_LLBAD) && in falc_update_stats()
1238 (!(cpc_readb(falcbase + F_REG(FRS1, ch)) & FRS1_PDEN))) in falc_update_stats()
1241 (cpc_readb(falcbase + F_REG(RSP, ch)) & RSP_LLBAD))) { in falc_update_stats()
1271 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_remote_loop()
1272 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN); in falc_remote_loop()
1276 cpc_writeb(falcbase + F_REG(LIM1, ch), in falc_remote_loop()
1277 cpc_readb(falcbase + F_REG(LIM1, ch)) | LIM1_RL); in falc_remote_loop()
1280 cpc_writeb(falcbase + F_REG(LIM1, ch), in falc_remote_loop()
1281 cpc_readb(falcbase + F_REG(LIM1, ch)) & ~LIM1_RL); in falc_remote_loop()
1311 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_local_loop()
1312 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_LL); in falc_local_loop()
1315 cpc_writeb(falcbase + F_REG(LIM0, ch), in falc_local_loop()
1316 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_LL); in falc_local_loop()
1343 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_payload_loop()
1344 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN); in falc_payload_loop()
1348 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_payload_loop()
1349 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_PLB); in falc_payload_loop()
1351 cpc_writeb(falcbase + F_REG(FMR4, ch), in falc_payload_loop()
1352 cpc_readb(falcbase + F_REG(FMR4, ch)) | FMR4_TM); in falc_payload_loop()
1354 cpc_writeb(falcbase + F_REG(FMR5, ch), in falc_payload_loop()
1355 cpc_readb(falcbase + F_REG(FMR5, ch)) | XSP_TT0); in falc_payload_loop()
1360 cpc_writeb(falcbase + F_REG(FMR2, ch), in falc_payload_loop()
1361 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_PLB); in falc_payload_loop()
1363 cpc_writeb(falcbase + F_REG(FMR4, ch), in falc_payload_loop()
1364 cpc_readb(falcbase + F_REG(FMR4, ch)) & ~FMR4_TM); in falc_payload_loop()
1366 cpc_writeb(falcbase + F_REG(FMR5, ch), in falc_payload_loop()
1367 cpc_readb(falcbase + F_REG(FMR5, ch)) & ~XSP_TT0); in falc_payload_loop()
1392 cpc_writeb(falcbase + F_REG(FMR5, ch), in turn_off_xlu()
1393 cpc_readb(falcbase + F_REG(FMR5, ch)) & ~FMR5_XLU); in turn_off_xlu()
1395 cpc_writeb(falcbase + F_REG(FMR3, ch), in turn_off_xlu()
1396 cpc_readb(falcbase + F_REG(FMR3, ch)) & ~FMR3_XLU); in turn_off_xlu()
1413 cpc_writeb(falcbase + F_REG(FMR5, ch), in turn_off_xld()
1414 cpc_readb(falcbase + F_REG(FMR5, ch)) & ~FMR5_XLD); in turn_off_xld()
1416 cpc_writeb(falcbase + F_REG(FMR3, ch), in turn_off_xld()
1417 cpc_readb(falcbase + F_REG(FMR3, ch)) & ~FMR3_XLD); in turn_off_xld()
1436 cpc_writeb(falcbase + F_REG(FMR5, ch), in falc_generate_loop_up_code()
1437 cpc_readb(falcbase + F_REG(FMR5, ch)) | FMR5_XLU); in falc_generate_loop_up_code()
1439 cpc_writeb(falcbase + F_REG(FMR3, ch), in falc_generate_loop_up_code()
1440 cpc_readb(falcbase + F_REG(FMR3, ch)) | FMR3_XLU); in falc_generate_loop_up_code()
1446 cpc_writeb(falcbase + F_REG(IMR0, ch), in falc_generate_loop_up_code()
1447 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN); in falc_generate_loop_up_code()
1469 cpc_writeb(falcbase + F_REG(FMR5, ch), in falc_generate_loop_down_code()
1470 cpc_readb(falcbase + F_REG(FMR5, ch)) | FMR5_XLD); in falc_generate_loop_down_code()
1472 cpc_writeb(falcbase + F_REG(FMR3, ch), in falc_generate_loop_down_code()
1473 cpc_readb(falcbase + F_REG(FMR3, ch)) | FMR3_XLD); in falc_generate_loop_down_code()
1503 cpc_writeb(falcbase + F_REG(IMR3, ch), in falc_pattern_test()
1504 cpc_readb(falcbase + F_REG(IMR3, ch)) | IMR3_LLBSC); in falc_pattern_test()
1507 cpc_writeb(falcbase + F_REG(IMR1, ch), in falc_pattern_test()
1508 cpc_readb(falcbase + F_REG(IMR1, ch)) | IMR1_LLBSC); in falc_pattern_test()
1512 cpc_writeb(falcbase + F_REG(LCR1, ch), in falc_pattern_test()
1513 cpc_readb(falcbase + F_REG(LCR1, ch)) | LCR1_EPRM | LCR1_XPRBS); in falc_pattern_test()
1518 cpc_writeb(falcbase + F_REG(LCR1, ch), in falc_pattern_test()
1519 cpc_readb(falcbase+F_REG(LCR1,ch)) & ~(LCR1_EPRM | LCR1_XPRBS)); in falc_pattern_test()
1522 cpc_writeb(falcbase + F_REG(IMR3, ch), in falc_pattern_test()
1523 cpc_readb(falcbase + F_REG(IMR3, ch)) & ~IMR3_LLBSC); in falc_pattern_test()
1526 cpc_writeb(falcbase + F_REG(IMR1, ch), in falc_pattern_test()
1527 cpc_readb(falcbase + F_REG(IMR1, ch)) & ~IMR1_LLBSC); in falc_pattern_test()
1999 if (((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_XPRBS) == 0) && in falc_t1_loop_detection()
2008 ((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_EPRM) == 0)) { in falc_t1_loop_detection()
2024 if (((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_XPRBS) == 0) && in falc_e1_loop_detection()
2033 ((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_EPRM) == 0)) { in falc_e1_loop_detection()
2051 while ((gis = cpc_readb(falcbase + F_REG(GIS, ch))) != 0) { in falc_t1_intr()
2053 isr0 = cpc_readb(falcbase + F_REG(FISR0, ch)); in falc_t1_intr()
2056 if (cpc_readb(falcbase + F_REG(FRS1, ch)) & in falc_t1_intr()
2064 dummy = cpc_readb(falcbase + F_REG(FISR1, ch)); in falc_t1_intr()
2068 dummy = cpc_readb(falcbase + F_REG(FISR2, ch)); in falc_t1_intr()
2072 isr3 = cpc_readb(falcbase + F_REG(FISR3, ch)); in falc_t1_intr()
2077 cpc_readb(falcbase + F_REG(FRS0, ch))); in falc_t1_intr()
2084 cpc_readb(falcbase + F_REG(FRS1, ch))); in falc_t1_intr()
2098 while ((gis = cpc_readb(falcbase + F_REG(GIS, ch))) != 0) { in falc_e1_intr()
2099 rsp = cpc_readb(falcbase + F_REG(RSP, ch)); in falc_e1_intr()
2102 dummy = cpc_readb(falcbase + F_REG(FISR0, ch)); in falc_e1_intr()
2105 isr1 = cpc_readb(falcbase + F_REG(FISR1, ch)); in falc_e1_intr()
2109 if (cpc_readb (falcbase + F_REG(FRS0, ch)) & in falc_e1_intr()
2111 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_e1_intr()
2112 cpc_readb(falcbase + F_REG(XSP, ch)) in falc_e1_intr()
2115 cpc_writeb(falcbase + F_REG(XSP, ch), in falc_e1_intr()
2116 cpc_readb(falcbase + F_REG(XSP, ch)) in falc_e1_intr()
2121 cpc_writeb(falcbase + F_REG(IMR1, ch), in falc_e1_intr()
2122 cpc_readb(falcbase + F_REG(IMR1, ch)) | IMR1_XMB); in falc_e1_intr()
2129 isr2 = cpc_readb(falcbase + F_REG(FISR2, ch)); in falc_e1_intr()
2131 cpc_writeb(falcbase + F_REG(XSW, ch), in falc_e1_intr()
2132 cpc_readb(falcbase + F_REG(XSW, ch)) | XSW_XRA); in falc_e1_intr()
2135 cpc_writeb(falcbase + F_REG(XSW, ch), in falc_e1_intr()
2136 cpc_readb(falcbase + F_REG(XSW, ch)) & ~XSW_XRA); in falc_e1_intr()
2140 cpc_writeb(falcbase + F_REG(IMR1, ch), in falc_e1_intr()
2141 cpc_readb(falcbase + F_REG(IMR1, ch)) & ~IMR1_XMB); in falc_e1_intr()
2145 isr3 = cpc_readb(falcbase + F_REG(FISR3, ch)); in falc_e1_intr()
2150 cpc_readb(falcbase + F_REG(FRS0, ch))); in falc_e1_intr()