Home
last modified time | relevance | path

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

12

/third_party/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()
/third_party/iptables/iptables/
Diptables-xml.c167 xmlAttrI("byte-count", (unsigned long long) ctr->bcnt); in openChain()
492 do_rule(char *pcnt, char *bcnt, int argc, char *argv[], int argvattr[], in do_rule() argument
516 if (bcnt) in do_rule()
517 xmlAttrS("byte-count", bcnt); in do_rule()
649 char *bcnt = NULL; in iptables_xml_main() local
653 tokenize_rule_counters(&parsestart, &pcnt, &bcnt, line); in iptables_xml_main()
672 do_rule(pcnt, bcnt, cur_rule.argc, cur_rule.argv, in iptables_xml_main()
Diptables-restore.c318 char *bcnt = NULL; in ip46tables_restore_main() local
325 tokenize_rule_counters(&parsestart, &pcnt, &bcnt, line); in ip46tables_restore_main()
326 if (counters && pcnt && bcnt) { in ip46tables_restore_main()
329 add_argv(&av_store, bcnt, 0); in ip46tables_restore_main()
Dip6tables.c311 xtables_print_num(counters.bcnt, (format|FMT_NOTABLE)); in print_header()
400 xtables_print_num(fw->counters.bcnt, format); in print_firewall()
887 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule6()
927 …rintf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule6()
998 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1079 const char *pcnt = NULL, *bcnt = NULL; in do_command6() local
1401 bcnt = strchr(pcnt + 1, ','); in do_command6()
1402 if (bcnt) in do_command6()
1403 bcnt++; in do_command6()
1404 if (!bcnt && xs_has_arg(argc, argv)) in do_command6()
[all …]
Diptables.c301 xtables_print_num(counters.bcnt, (format|FMT_NOTABLE)); in print_header()
392 xtables_print_num(fw->counters.bcnt, format); in print_firewall()
893 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule4()
923 …rintf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule4()
994 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1074 const char *pcnt = NULL, *bcnt = NULL; in do_command4() local
1393 bcnt = strchr(pcnt + 1, ','); in do_command4()
1394 if (bcnt) in do_command4()
1395 bcnt++; in do_command4()
1396 if (!bcnt && xs_has_arg(argc, argv)) in do_command4()
[all …]
Dxtables-restore.c207 char *bcnt = NULL; in xtables_restore_parse_line() local
214 tokenize_rule_counters(&parsestart, &pcnt, &bcnt, line); in xtables_restore_parse_line()
215 if (counters && pcnt && bcnt) { in xtables_restore_parse_line()
218 add_argv(&state->av_store, bcnt, 0); in xtables_restore_parse_line()
Dxshared.c376 (unsigned long long *)&ctr->bcnt); in parse_counters()
391 char *ptr, *buffer = *bufferp, *pcnt, *bcnt; in tokenize_rule_counters() local
406 bcnt = strtok(NULL, "]"); in tokenize_rule_counters()
407 if (!bcnt) in tokenize_rule_counters()
411 *bcntp = bcnt; in tokenize_rule_counters()
Dxtables.c815 args->bcnt = strchr(args->pcnt + 1, ','); in do_parse()
816 if (args->bcnt) in do_parse()
817 args->bcnt++; in do_parse()
818 if (!args->bcnt && xs_has_arg(argc, argv)) in do_parse()
819 args->bcnt = argv[optind++]; in do_parse()
820 if (!args->bcnt) in do_parse()
830 if (sscanf(args->bcnt, "%llu", &args->bcnt_cnt) != 1) in do_parse()
Dxtables-arp.c473 const char *pcnt = NULL, *bcnt = NULL; in do_commandarp() local
778 bcnt = argv[optind++]; in do_commandarp()
789 if (sscanf(bcnt, "%llu", &cs.arp.counters.bcnt) != 1) in do_commandarp()
Dxshared.h187 bool tokenize_rule_counters(char **bufferp, char **pcnt, char **bcnt, int line);
Dxtables-eb.c443 cs->counters.bcnt = strtoull(argv[optind] + 1, &buffer, 10); in parse_change_counters_rule()
446 cs->counters.bcnt = strtoull(argv[optind] + 1, &buffer, 10); in parse_change_counters_rule()
448 cs->counters.bcnt = strtoull(argv[optind], &buffer, 10); in parse_change_counters_rule()
1021 cs.counters.bcnt = strtoull(argv[optind], &buffer, 10); in do_commandeb()
Dnft-shared.c505 counters->bcnt = nftnl_expr_get_u64(e, NFTNL_EXPR_CTR_BYTES); in nft_parse_counter()
726 xtables_print_num(counters->bcnt, (format|FMT_NOTABLE)); in print_header()
769 xtables_print_num(cs->counters.bcnt, format); in print_rule_details()
872 (unsigned long long)cs->counters.bcnt); in save_matches_and_target()
Dnft-arp.c222 if (add_counters(r, fw->counters.pcnt, fw->counters.bcnt) < 0) in nft_arp_add()
393 xtables_print_num(counters->bcnt, (format|FMT_NOTABLE)); in nft_arp_print_header()
589 xtables_print_num(cs.counters.bcnt, format | FMT_NOTABLE); in nft_arp_print_rule()
Diptables-save.c110 (unsigned long long)count.bcnt); in do_output()
Dnft-ipv6.c79 if (add_counters(r, cs->counters.pcnt, cs->counters.bcnt) < 0) in nft_ipv6_add()
308 cs->fw6.counters.bcnt = args->bcnt_cnt; in nft_ipv6_post_parse()
Dnft-bridge.c160 if (add_counters(r, cs->counters.pcnt, cs->counters.bcnt) < 0) in nft_bridge_add()
648 (uint64_t)cs->counters.bcnt); in nft_bridge_save_rule()
652 (uint64_t)cs->counters.bcnt); in nft_bridge_save_rule()
Dnft-ipv4.c90 if (add_counters(r, cs->counters.pcnt, cs->counters.bcnt) < 0) in nft_ipv4_add()
360 cs->counters.bcnt = args->bcnt_cnt; in nft_ipv4_post_parse()
Dnft-shared.h198 const char *pcnt, *bcnt; member
Dxtables-eb-translate.c431 cs.counters.bcnt = strtoull(argv[optind], &buffer, 10); in do_commandeb_xlate()
/third_party/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
/third_party/mesa3d/src/amd/compiler/tests/
Dtest_optimizer.cpp398 BEGIN_TEST(optimize.bcnt)
404 Temp bcnt; variable
408 bcnt = bld.vop3(aco_opcode::v_bcnt_u32_b32, bld.def(v1), Operand(inputs[0]), Operand::zero());
409 writeout(0, bld.vadd32(bld.def(v1), bcnt, Operand(inputs[0])));
413 bcnt = bld.vop3(aco_opcode::v_bcnt_u32_b32, bld.def(v1), Operand(inputs[0]), Operand::zero());
414 writeout(1, bld.vadd32(bld.def(v1), bcnt, Operand(inputs[1])));
418 bcnt = bld.vop3(aco_opcode::v_bcnt_u32_b32, bld.def(v1), Operand(inputs[0]), Operand::zero());
419 writeout(2, bld.vadd32(bld.def(v1), bcnt, Operand::c32(42u)));
425 bcnt = bld.vop3(aco_opcode::v_bcnt_u32_b32, bld.def(v1), Operand(inputs[1]), Operand::zero());
426 writeout(3, bld.vadd32(bld.def(v1), bcnt, Operand(inputs[0])));
[all …]
/third_party/iowow/src/fs/tests/
Diwfs_test2.c298 #define bcnt 4096 in test_fsm_uniform_alloc_impl() macro
299 ASLOT aslots[bcnt]; in test_fsm_uniform_alloc_impl()
309 for (int i = 0; i < bcnt; ++i) { in test_fsm_uniform_alloc_impl()
376 for (; i < bcnt; ++i) { in test_fsm_uniform_alloc_impl()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_valtable.cpp375 unsigned bcnt = blocks.size(); in delete_all() local
377 for (unsigned b = 0; b < bcnt; ++b) { in delete_all()
/third_party/iptables/libiptc/
Dlibip6tc.c179 (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in dump_entry()
Dlibip4tc.c145 (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in dump_entry()

12