Lines Matching refs:chan

62 int cx_univ_mode = M_HDLC;	/* univ. chan. mode: async or sync */
63 int cx_sync_mode = M_HDLC; /* sync. chan. mode: HDLC, Bisync or X.21 */
64 int cx_iftype = 0; /* univ. chan. interface: upper/lower */
486 b->chan[0].oscfreq = b->chan[1].oscfreq =
487 b->chan[2].oscfreq = b->chan[3].oscfreq =
488 b->chan[4].oscfreq = b->chan[5].oscfreq =
489 b->chan[6].oscfreq = b->chan[7].oscfreq =
494 b->chan[0].oscfreq = b->chan[1].oscfreq =
495 b->chan[2].oscfreq = b->chan[3].oscfreq =
496 b->chan[4].oscfreq = b->chan[5].oscfreq =
497 b->chan[6].oscfreq = b->chan[7].oscfreq =
531 b->chan[8].oscfreq = b->chan[9].oscfreq =
532 b->chan[10].oscfreq = b->chan[11].oscfreq =
533 b->chan[12].oscfreq = b->chan[13].oscfreq =
534 b->chan[14].oscfreq = b->chan[15].oscfreq =
539 b->chan[8].oscfreq = b->chan[9].oscfreq =
540 b->chan[10].oscfreq = b->chan[11].oscfreq =
541 b->chan[12].oscfreq = b->chan[13].oscfreq =
542 b->chan[14].oscfreq = b->chan[15].oscfreq =
551 b->chan[i+0].port = CS0(port);
552 b->chan[i+4].port = cx_probe_chip (CS1A(port)) ?
554 b->chan[i+8].port = CS0(port+0x10);
555 b->chan[i+12].port = CS1(port+0x10);
557 for (c=b->chan; c<b->chan+NCHAN; ++c) {
559 c->num = c - b->chan;
568 b->chan[i].type = T_UNIV_RS232;
571 b->chan[0].type = T_UNIV_RS232;
574 b->chan[0].type = T_UNIV_RS232;
576 b->chan[i].type = T_UNIV_RS232;
579 b->chan[0].type = T_UNIV_V35;
581 b->chan[i].type = T_UNIV_RS232;
584 b->chan[0].type = T_UNIV_V35;
586 b->chan[i].type = T_UNIV_RS232;
589 b->chan[0].type = T_UNIV_V35;
591 b->chan[i].type = T_SYNC_RS232;
594 b->chan[0].type = T_UNIV_V35;
596 b->chan[i].type = T_SYNC_RS232;
598 b->chan[i].type = T_UNIV_RS232;
601 b->chan[0].type = T_UNIV_V35;
603 b->chan[i].type = T_SYNC_V35;
606 b->chan[0].type = T_UNIV_V35;
608 b->chan[i].type = T_SYNC_V35;
610 b->chan[i].type = T_UNIV_RS232;
613 b->chan[0].type = T_UNIV_RS449;
615 b->chan[i].type = T_UNIV_RS232;
618 b->chan[0].type = T_UNIV_RS449;
620 b->chan[i].type = T_UNIV_RS232;
623 b->chan[0].type = T_UNIV_RS449;
625 b->chan[i].type = T_SYNC_RS232;
628 b->chan[0].type = T_UNIV_RS449;
630 b->chan[i].type = T_SYNC_RS232;
632 b->chan[i].type = T_UNIV_RS232;
635 b->chan[0].type = T_UNIV_RS449;
637 b->chan[i].type = T_SYNC_RS449;
640 b->chan[0].type = T_UNIV_RS449;
642 b->chan[i].type = T_SYNC_RS449;
644 b->chan[i].type = T_UNIV_RS232;
655 b->chan[8].type = T_UNIV_RS232;
658 b->chan[8].type = T_UNIV_RS232;
660 b->chan[i].type = T_UNIV_RS232;
663 b->chan[8].type = T_UNIV_V35;
665 b->chan[i].type = T_UNIV_RS232;
668 b->chan[8].type = T_UNIV_V35;
670 b->chan[i].type = T_UNIV_RS232;
673 b->chan[8].type = T_UNIV_V35;
675 b->chan[i].type = T_SYNC_RS232;
678 b->chan[8].type = T_UNIV_V35;
680 b->chan[i].type = T_SYNC_RS232;
682 b->chan[i].type = T_UNIV_RS232;
685 b->chan[8].type = T_UNIV_V35;
687 b->chan[i].type = T_SYNC_V35;
690 b->chan[8].type = T_UNIV_V35;
692 b->chan[i].type = T_SYNC_V35;
694 b->chan[i].type = T_UNIV_RS232;
697 b->chan[8].type = T_UNIV_RS449;
699 b->chan[i].type = T_UNIV_RS232;
702 b->chan[8].type = T_UNIV_RS449;
704 b->chan[i].type = T_UNIV_RS232;
707 b->chan[8].type = T_UNIV_RS449;
709 b->chan[i].type = T_UNIV_RS232;
712 b->chan[8].type = T_UNIV_RS449;
714 b->chan[i].type = T_SYNC_RS232;
716 b->chan[i].type = T_UNIV_RS232;
719 b->chan[8].type = T_UNIV_RS449;
721 b->chan[i].type = T_SYNC_RS449;
724 b->chan[8].type = T_UNIV_RS449;
726 b->chan[i].type = T_SYNC_RS449;
728 b->chan[i].type = T_UNIV_RS232;
734 for (c=b->chan; c<b->chan+NCHAN; ++c)
778 b->chan[i+0].port = CS0(port);
779 b->chan[i+4].port = cx_probe_chip (CS1A(port)) ?
781 b->chan[i+8].port = CS0(port+0x10);
782 b->chan[i+12].port = CS1(port+0x10);
784 for (c=b->chan; c<b->chan+NCHAN; ++c) {
786 c->num = c - b->chan;
792 for (c=b->chan; c<b->chan+NCHAN; ++c)
835 b->chan[i+0].port = CS0(port);
836 b->chan[i+4].port = CS1(port);
837 b->chan[i+8].port = CS0(port+0x10);
838 b->chan[i+12].port = CS1(port+0x10);
840 for (c=b->chan; c<b->chan+NCHAN; ++c) {
842 c->num = c - b->chan;
849 b->chan[0].type = T_UNIV;
850 b->chan[1].type = T_UNIV;
855 b->chan[2].type = T_UNIV;
856 b->chan[3].type = T_UNIV;
877 for (c=b->chan; c<b->chan+NCHAN; ++c) {
919 if (b->chan[8].type || b->chan[12].type)
926 if (b->chan[8].type || b->chan[12].type)
929 if (b->chan[8].type || b->chan[12].type)
934 ((b->chan[8].type || b->chan[12].type) &&
944 if (b->chan[8].type || b->chan[12].type)
949 if (b->chan[8].type || b->chan[12].type)
958 if (b->chan[i].type != T_NONE)
959 cx_setup_chip (b->chan + i);
969 if (b->chan[i].type != T_NONE)
970 cx_setup_chan (b->chan + i);