Lines Matching defs:pfalc
420 falc_t *pfalc = (falc_t *) & chan->falc;
453 if (pfalc->multiframe_mode) {
556 falc_t *pfalc = (falc_t *) & chan->falc;
559 for (tslot = 0; tslot < pfalc->num_channels; tslot++) {
573 falc_t *pfalc = (falc_t *) & chan->falc;
575 if (pfalc->full_bandwidth) {
589 falc_t *pfalc = (falc_t *) & chan->falc;
591 if (pfalc->loop_active != 2) {
604 falc_t *pfalc = (falc_t *) & chan->falc;
666 pfalc->multiframe_mode = 0;
682 pfalc->multiframe_mode = 1;
773 falc_t *pfalc = (falc_t *) & chan->falc;
826 pfalc->multiframe_mode = 1;
868 pfalc->multiframe_mode = 0;
894 pfalc->multiframe_mode = 0;
913 pfalc->sync = 1;
979 falc_t *pfalc = (falc_t *) & chan->falc;
984 memset(pfalc, 0, sizeof(falc_t));
987 pfalc->num_channels = NUM_OF_T1_CHANNELS;
988 pfalc->offset = 1;
991 pfalc->num_channels = NUM_OF_E1_CHANNELS;
992 pfalc->offset = 0;
996 pfalc->full_bandwidth = 1;
998 pfalc->full_bandwidth = 0;
1039 falc_t *pfalc = (falc_t *) & chan->falc;
1044 if (!pfalc->red_alarm) {
1045 pfalc->red_alarm = 1;
1046 pfalc->los++;
1047 if (!pfalc->blue_alarm) {
1061 if (pfalc->red_alarm) {
1062 pfalc->red_alarm = 0;
1063 pfalc->losr++;
1070 if (!pfalc->blue_alarm) {
1071 pfalc->blue_alarm = 1;
1072 pfalc->ais++;
1083 pfalc->blue_alarm = 0;
1088 if (!pfalc->loss_fa) {
1089 pfalc->loss_fa = 1;
1090 pfalc->lfa++;
1091 if (!pfalc->blue_alarm && !pfalc->red_alarm) {
1105 if (pfalc->loss_fa) {
1106 pfalc->loss_fa = 0;
1107 pfalc->farec++;
1112 if (pfalc->multiframe_mode && (frs0 & FRS0_LMFA)) {
1114 if (!pfalc->loss_mfa) {
1115 pfalc->loss_mfa = 1;
1116 pfalc->lmfa++;
1117 if (!pfalc->blue_alarm && !pfalc->red_alarm &&
1118 !pfalc->loss_fa) {
1132 pfalc->loss_mfa = 0;
1137 if (!pfalc->yellow_alarm) {
1138 pfalc->yellow_alarm = 1;
1139 pfalc->rai++;
1140 if (pfalc->sync) {
1147 pfalc->yellow_alarm = 0;
1151 if (pfalc->red_alarm || pfalc->loss_fa ||
1152 pfalc->loss_mfa || pfalc->blue_alarm) {
1153 if (pfalc->sync) {
1154 pfalc->sync = 0;
1161 if (!pfalc->sync) {
1162 pfalc->sync = 1;
1170 if (pfalc->sync && !pfalc->yellow_alarm) {
1171 if (!pfalc->active) {
1173 if (pfalc->loop_active) {
1182 pfalc->active = 1;
1185 if (pfalc->active) {
1186 pfalc->active = 0;
1195 falc_t *pfalc = (falc_t *) & chan->falc;
1201 pfalc->fec += counter;
1205 pfalc->cvc += counter;
1209 pfalc->cec += counter;
1213 pfalc->ebc += counter;
1219 pfalc->bec += counter;
1226 pfalc->prbs = 2;
1228 pfalc->prbs = 1;
1247 falc_t *pfalc = (falc_t *) & chan->falc;
1262 pfalc->loop_active = 1;
1266 pfalc->sync = 0;
1270 pfalc->active = 0;
1272 pfalc->loop_active = 0;
1291 falc_t *pfalc = (falc_t *) & chan->falc;
1297 pfalc->loop_active = 1;
1301 pfalc->loop_active = 0;
1319 falc_t *pfalc = (falc_t *) & chan->falc;
1342 pfalc->loop_active = 2;
1353 pfalc->sync = 0;
1357 pfalc->active = 0;
1359 pfalc->loop_active = 0;
1416 falc_t *pfalc = (falc_t *) & chan->falc;
1435 pfalc->loop_gen = 1;
1449 falc_t *pfalc = (falc_t *) & chan->falc;
1459 pfalc->sync = 0;
1463 pfalc->active = 0;
1465 pfalc->loop_gen = 0;
1479 falc_t *pfalc = (falc_t *) & chan->falc;
1483 pfalc->prbs = 1;
1484 pfalc->bec = 0;
1499 pfalc->prbs = 0;
1525 falc_t *pfalc = (falc_t *) & chan->falc;
1527 return (pfalc->bec);
1967 falc_t *pfalc = (falc_t *) & chan->falc;
1971 !pfalc->loop_gen) {
1974 if (pfalc->loop_active) {
1981 if (!pfalc->loop_active) {
1992 falc_t *pfalc = (falc_t *) & chan->falc;
1996 !pfalc->loop_gen) {
1999 if (pfalc->loop_active) {
2006 if (!pfalc->loop_active) {
2017 falc_t *pfalc = (falc_t *) & chan->falc;
2029 pfalc->pden++;
2045 pfalc->sec++;
2051 pfalc->es++;
2064 falc_t *pfalc = (falc_t *) & chan->falc;
2078 if ((pfalc->xmb_cause & 2) &&
2079 pfalc->multiframe_mode) {
2091 pfalc->xmb_cause = 0;
2110 pfalc->xmb_cause |= 2;
2118 pfalc->sec++;
2124 pfalc->es++;
2281 falc_t *pfalc = (falc_t *) & chan->falc;
2286 ch, (pfalc->sync ? "SYNC" : ""), (pfalc->active ? "ACTIVE" : ""),
2287 pfalc->num_channels);
2290 pfalc->pden, pfalc->los, pfalc->losr, pfalc->lfa, pfalc->farec);
2292 pfalc->lmfa, pfalc->ais, pfalc->sec, pfalc->es, pfalc->rai);
2294 pfalc->bec, pfalc->fec, pfalc->cvc, pfalc->cec, pfalc->ebc);
2298 (pfalc->red_alarm ? "RED" : ""),
2299 (pfalc->blue_alarm ? "BLU" : ""),
2300 (pfalc->yellow_alarm ? "YEL" : ""),
2301 (pfalc->loss_fa ? "LFA" : ""),
2302 (pfalc->loss_mfa ? "LMF" : ""), (pfalc->prbs ? "PRB" : ""));
2903 falc_t *pfalc = (falc_t *) & chan->falc;
2911 memset(pfalc, 0, sizeof(falc_t));