Lines Matching defs:counter
609 int layer, rc, rate, counter;
662 counter = rate * BER_SAMPLING_RATE;
665 if (counter < 256)
666 counter = 256;
667 else if (counter > (1 << 24) - 1)
668 counter = (1 << 24) - 1;
671 "%s: layer %c bitrate: %d kbps; counter = %d (0x%06x)\n",
672 __func__, 'A' + layer, rate / 1000, counter, counter);
674 state->estimated_rate[layer] = counter;
751 /* BER/PER counter reset */
756 /* CNR counter reset */
768 /* MER counter reset */
873 "%s: updating layer %c preBER counter to %d.\n",
879 /* Update counter for this layer */
911 /* Reset counter to collect new data */
930 u32 counter, collect_rate;
976 counter = rc << 8;
983 counter |= rc;
984 *count = counter * 204 * 8;
1005 if (collect_rate != counter) {
1007 "%s: updating postBER counter on layer %c to %d.\n",
1013 /* Update counter for this layer */
1040 /* Reset counter to collect new data */
1138 "%s: updating PER counter on layer %c to %d.\n",
1149 /* Update this layer's counter */
1184 /* Reset counter to collect new data */
1413 /* CNR counter reset */
1505 /* MER counter reset */
1532 /* Fill the length of each status counter */