Home
last modified time | relevance | path

Searched refs:bcnt (Results 1 – 25 of 28) sorted by relevance

12

/external/syslinux/com32/modules/
Dcptime.c108 void print_cp_result_tick(size_t bcnt, clock_t et, TPS_T tps, int offs) in print_cp_result_tick() argument
112 dr = max(bcnt, (bcnt * tps)) / max((clock_t)1, (et + offs)); in print_cp_result_tick()
116 void print_cp_result_long(char *fn, size_t bcnt, clock_t bc, clock_t ec, size_t bufsz, char do_verb… in print_cp_result_long() argument
122 printf(" %zu B in %d ticks from '%s'\n", bcnt, (int)(ec - bc), fn); in print_cp_result_long()
124 print_cp_result_tick(bcnt, (ec - bc), tps, 0); in print_cp_result_long()
125 print_cp_result_tick(bcnt, (ec - bc), tps, 1); in print_cp_result_long()
126 print_cp_result_tick(bcnt, (ec - bc), tps, -1); in print_cp_result_long()
129 void print_cp_result_simple(char *fn, size_t bcnt, clock_t bc, clock_t ec, size_t bufsz, char do_ve… in print_cp_result_simple() argument
132 printf(" %zuB %dt %zux '%s'\n", bcnt, (int)(ec - bc), bufsz, fn); in print_cp_result_simple()
135 size_t time_copy_bufsz(size_t bufsz, size_t bcnt, off_t maxlen) in time_copy_bufsz() argument
[all …]
/external/iptables/iptables/
Diptables-restore.c88 unsigned long long pcnt, bcnt; in parse_counters() local
91 ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt); in parse_counters()
93 ctr->bcnt = bcnt; in parse_counters()
415 char *bcnt = NULL; in iptables_restore_main() local
435 bcnt = strtok(NULL, "]"); in iptables_restore_main()
436 if (!bcnt) in iptables_restore_main()
452 if (counters && pcnt && bcnt) { in iptables_restore_main()
455 add_argv((char *) bcnt); in iptables_restore_main()
Dip6tables-restore.c90 unsigned long long pcnt, bcnt; in parse_counters() local
93 ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt); in parse_counters()
95 ctr->bcnt = bcnt; in parse_counters()
416 char *bcnt = NULL; in ip6tables_restore_main() local
436 bcnt = strtok(NULL, "]"); in ip6tables_restore_main()
437 if (!bcnt) in ip6tables_restore_main()
453 if (counters && pcnt && bcnt) { in ip6tables_restore_main()
456 add_argv((char *) bcnt); in ip6tables_restore_main()
Dxtables-restore.c65 unsigned long long pcnt, bcnt; in parse_counters() local
68 ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt); in parse_counters()
70 ctr->bcnt = bcnt; in parse_counters()
355 char *bcnt = NULL; in xtables_restore_parse() local
375 bcnt = strtok(NULL, "]"); in xtables_restore_parse()
376 if (!bcnt) in xtables_restore_parse()
392 if (counters && pcnt && bcnt) { in xtables_restore_parse()
395 add_argv((char *) bcnt); in xtables_restore_parse()
Diptables-xml.c61 __u64 *pcnt, *bcnt; in parse_counters() local
65 bcnt = &ctr->bcnt; in parse_counters()
69 (unsigned long long *)bcnt) == 2); in parse_counters()
249 xmlAttrI("byte-count", (unsigned long long) ctr->bcnt); in openChain()
578 do_rule(char *pcnt, char *bcnt, int argc, char *argv[], int argvattr[]) in do_rule() argument
600 if (bcnt) in do_rule()
601 xmlAttrS("byte-count", bcnt); in do_rule()
738 char *bcnt = NULL; in iptables_xml_main() local
764 bcnt = strtok(NULL, "]"); in iptables_xml_main()
765 if (!bcnt) in iptables_xml_main()
[all …]
Dip6tables.c478 xtables_print_num(counters.bcnt, (format|FMT_NOTABLE)); in print_header()
564 xtables_print_num(fw->counters.bcnt, format); in print_firewall()
1093 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule6()
1133 …rintf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule6()
1197 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1350 const char *pcnt = NULL, *bcnt = NULL; in do_command6() local
1668 bcnt = strchr(pcnt + 1, ','); in do_command6()
1669 if (bcnt) in do_command6()
1670 bcnt++; in do_command6()
1671 if (!bcnt && xs_has_arg(argc, argv)) in do_command6()
[all …]
Diptables.c462 xtables_print_num(counters.bcnt, (format|FMT_NOTABLE)); in print_header()
550 xtables_print_num(fw->counters.bcnt, format); in print_firewall()
1092 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule4()
1123 …rintf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule4()
1187 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1344 const char *pcnt = NULL, *bcnt = NULL; in do_command4() local
1659 bcnt = strchr(pcnt + 1, ','); in do_command4()
1660 if (bcnt) in do_command4()
1661 bcnt++; in do_command4()
1662 if (!bcnt && xs_has_arg(argc, argv)) in do_command4()
[all …]
Dxtables.c1032 args->bcnt = strchr(args->pcnt + 1, ','); in do_parse()
1033 if (args->bcnt) in do_parse()
1034 args->bcnt++; in do_parse()
1035 if (!args->bcnt && xs_has_arg(argc, argv)) in do_parse()
1036 args->bcnt = argv[optind++]; in do_parse()
1037 if (!args->bcnt) in do_parse()
1047 if (sscanf(args->bcnt, "%llu", &args->bcnt_cnt) != 1) in do_parse()
Dnft-shared.c451 counters->bcnt = nftnl_expr_get_u64(e, NFTNL_EXPR_CTR_BYTES); in nft_parse_counter()
573 xtables_print_num(counters->bcnt, (format|FMT_NOTABLE)); in print_header()
616 xtables_print_num(cs->counters.bcnt, format); in print_firewall_details()
725 void save_counters(uint64_t pcnt, uint64_t bcnt) in save_counters() argument
728 (unsigned long long)bcnt); in save_counters()
Dnft-shared.h162 void save_counters(uint64_t pcnt, uint64_t bcnt);
200 const char *pcnt, *bcnt; member
Dnft-ipv6.c81 if (add_counters(r, cs->counters.pcnt, cs->counters.bcnt) < 0) in nft_ipv6_add()
339 cs->fw6.counters.bcnt = args->bcnt_cnt; in nft_ipv6_post_parse()
386 save_counters(cs->counters.pcnt, cs->counters.bcnt); in nft_ipv6_save_counters()
Dip6tables-save.c91 printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in do_output()
Diptables-save.c89 printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in do_output()
Dnft-ipv4.c93 if (add_counters(r, cs->counters.pcnt, cs->counters.bcnt) < 0) in nft_ipv4_add()
393 cs->counters.bcnt = args->bcnt_cnt; in nft_ipv4_post_parse()
438 save_counters(cs->counters.pcnt, cs->counters.bcnt); in nft_ipv4_save_counters()
Dxtables-eb.c570 cs->counters.bcnt = strtoull(argv[optind] + 1, &buffer, 10); in parse_change_counters_rule()
575 cs->counters.bcnt = strtoull(argv[optind] + 1, &buffer, 10); in parse_change_counters_rule()
577 cs->counters.bcnt = strtoull(argv[optind], &buffer, 10); in parse_change_counters_rule()
1078 cs.counters.bcnt = strtoull(argv[optind], &buffer, 10); in do_commandeb()
Dnft-arp.c217 if (add_counters(r, fw->counters.pcnt, fw->counters.bcnt) < 0) in nft_arp_add()
430 xtables_print_num(counters->bcnt, (format|FMT_NOTABLE)); in nft_arp_print_header()
604 xtables_print_num(cs.fw.counters.bcnt, format); in nft_arp_print_firewall()
Dxtables-arp.c945 const char *pcnt = NULL, *bcnt = NULL; in do_commandarp() local
1281 bcnt = argv[optind++]; in do_commandarp()
1292 if (sscanf(bcnt, "%llu", &cs.fw.counters.bcnt) != 1) in do_commandarp()
Dnft-bridge.c217 if (add_counters(r, cs->counters.pcnt, cs->counters.bcnt) < 0) in nft_bridge_add()
541 (uint64_t)cs.counters.pcnt, (uint64_t)cs.counters.bcnt); in nft_bridge_print_firewall()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe04.c82 int acnt = 0, bcnt = 0; in main() local
133 while ((acnt < 100) && (bcnt < 100)) { in main()
145 bcnt++; in main()
/external/iptables/include/linux/netfilter/
Dx_tables.h106 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
107 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
110 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/kernel-headers/original/uapi/linux/netfilter/
Dx_tables.h107 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
108 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
111 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/iproute2/include/uapi/linux/netfilter/
Dx_tables.h107 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
108 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
111 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/kernel-headers/original/uapi/linux/netfilter_bridge/
Debtables.h40 __u64 bcnt; member
/external/mesa3d/src/gallium/drivers/r600/sb/
Dsb_valtable.cpp336 unsigned bcnt = blocks.size(); in delete_all() local
338 for (unsigned b = 0; b < bcnt; ++b) { in delete_all()
/external/iptables/libiptc/
Dlibip6tc.c179 (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in dump_entry()

12