Lines Matching defs:counter
54 /* For 0-255, we use the rdtype value as counter indices */
193 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter) {
196 isc_stats_increment(stats->counters, counter);
201 int counter;
206 counter = rdtypecounter_dlv;
208 counter = rdtypecounter_others;
210 counter = (int)type;
212 isc_stats_increment(stats->counters, (isc_statscounter_t)counter);
219 int counter;
224 counter = rdtypecounter_nxdomain;
228 counter = (int)rdtypecounter_dlv;
230 counter = (int)rdtypecounter_others;
232 counter = (int)rdtype;
236 counter += rdtypecounter_max;
240 isc_stats_increment(stats->counters, counter);
242 isc_stats_decrement(stats->counters, counter);
303 rdatatype_dumpcb(isc_statscounter_t counter, isc_uint64_t value, void *arg) {
306 dump_rdentry(counter, value, 0, rdatadumparg->fn, rdatadumparg->arg);
322 rdataset_dumpcb(isc_statscounter_t counter, isc_uint64_t value, void *arg) {
325 if (counter < rdtypecounter_max) {
326 dump_rdentry(counter, value, 0, rdatadumparg->fn,
328 } else if (counter < rdtypenxcounter_max) {
329 dump_rdentry(counter - rdtypecounter_max, value,
353 opcode_dumpcb(isc_statscounter_t counter, isc_uint64_t value, void *arg) {
356 opcodearg->fn((dns_opcode_t)counter, value, opcodearg->arg);