/linux/tools/testing/selftests/ |
H A D | kselftest_harness.h | 511 #define ASSERT_EQ(expected, seen) \ argument 512 __EXPECT(expected, #expected, seen, #seen, ==, 1) 522 #define ASSERT_NE(expected, seen) \ argument 523 __EXPECT(expected, #expected, seen, #seen, !=, 1) 533 #define ASSERT_LT(expected, seen) \ argument 534 __EXPECT(expected, #expected, seen, #seen, <, 1) 544 #define ASSERT_LE(expected, seen) \ argument 545 __EXPECT(expected, #expected, seen, #seen, <=, 1) 555 #define ASSERT_GT(expected, seen) \ argument 556 __EXPECT(expected, #expected, seen, #seen, >, 1) [all …]
|
/linux/net/netfilter/ |
H A D | nf_conntrack_proto_tcp.c | 516 struct ip_ct_tcp_state *sender = &state->seen[dir]; in tcp_in_window() 517 struct ip_ct_tcp_state *receiver = &state->seen[!dir]; in tcp_in_window() 859 ct->proto.tcp.seen[0].td_end = in tcp_new() 862 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window); in tcp_new() 863 if (ct->proto.tcp.seen[0].td_maxwin == 0) in tcp_new() 864 ct->proto.tcp.seen[0].td_maxwin = 1; in tcp_new() 865 ct->proto.tcp.seen[0].td_maxend = in tcp_new() 866 ct->proto.tcp.seen[0].td_end; in tcp_new() 868 tcp_options(skb, dataoff, th, &ct->proto.tcp.seen[0]); in tcp_new() 879 ct->proto.tcp.seen[0].td_end = in tcp_new() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | iters_task_vma.c | 22 unsigned int seen = 0; in iter_task_vma_for_each() local 31 if (bpf_cmp_unlikely(seen, >=, 1000)) in iter_task_vma_for_each() 34 vm_ranges[seen].vm_start = vma->vm_start; in iter_task_vma_for_each() 35 vm_ranges[seen].vm_end = vma->vm_end; in iter_task_vma_for_each() 36 seen++; in iter_task_vma_for_each() 39 vmas_seen = seen; in iter_task_vma_for_each()
|
/linux/tools/perf/util/ |
H A D | demangle-rust.c | 103 bool seen[16]; in is_prefixed_hash() local 111 memset(seen, false, sizeof(seen)); in is_prefixed_hash() 114 seen[*str - '0'] = true; in is_prefixed_hash() 116 seen[*str - 'a' + 10] = true; in is_prefixed_hash() 123 if (seen[i]) in is_prefixed_hash()
|
/linux/drivers/of/ |
H A D | device.c | 224 int seen = 0; in of_device_uevent() local 239 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent() 240 seen++; in of_device_uevent() 242 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent() 244 seen = 0; in of_device_uevent() 248 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent() 250 seen++; in of_device_uevent()
|
/linux/drivers/dma-buf/ |
H A D | st-dma-fence.c | 152 bool seen; member 157 smp_store_mb(container_of(cb, struct simple_cb, cb)->seen, true); in simple_callback() 176 if (!cb.seen) { in test_add_callback() 207 if (cb.seen) { in test_late_add_callback() 239 if (cb.seen) { in test_rm_callback() 266 if (!cb.seen) { in test_late_rm_callback() 489 smp_store_mb(cb.seen, false); in thread_signal_callback() 493 cb.seen = true; in thread_signal_callback() 499 if (!cb.seen) { in thread_signal_callback() 504 if (!READ_ONCE(cb.seen)) { in thread_signal_callback()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | iters.c | 111 unsigned int seen; in subtest_task_vma_iters() local 135 seen = 0; in subtest_task_vma_iters() 144 bpf_iter_start = skel->bss->vm_ranges[seen].vm_start; in subtest_task_vma_iters() 145 bpf_iter_end = skel->bss->vm_ranges[seen].vm_end; in subtest_task_vma_iters() 149 seen++; in subtest_task_vma_iters() 152 if (!ASSERT_EQ(skel->bss->vmas_seen, seen, "vmas_seen_eq")) in subtest_task_vma_iters()
|
/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 38 u32 seen; /* Flags to remember seen eBPF instructions */ member 308 jit->seen |= SEEN_LITERAL; \ 324 jit->seen |= SEEN_LITERAL; \ 428 if (jit->seen & SEEN_STACK) in restore_regs() 594 if (is_first_pass(jit) || (jit->seen & SEEN_LITERAL)) { in bpf_jit_prologue() 607 if (is_first_pass(jit) || (jit->seen & SEEN_STACK)) { in bpf_jit_prologue() 608 if (is_first_pass(jit) || (jit->seen & SEEN_FUNC)) in bpf_jit_prologue() 615 if (is_first_pass(jit) || (jit->seen & SEEN_FUNC)) in bpf_jit_prologue() 677 if (is_first_pass(jit) || (jit->seen & SEEN_FUNC)) in bpf_jit_epilogue() 1138 jit->seen |= SEEN_LITERAL; in bpf_jit_insn() [all …]
|
/linux/net/bridge/ |
H A D | br_mst.c | 238 DECLARE_BITMAP(seen, VLAN_N_VID) = { 0 }; in br_mst_info_size() 246 if (test_bit(v->brvlan->msti, seen)) in br_mst_info_size() 256 __set_bit(v->brvlan->msti, seen); in br_mst_info_size() 265 DECLARE_BITMAP(seen, VLAN_N_VID) = { 0 }; in br_mst_fill_info() 271 if (test_bit(v->brvlan->msti, seen)) in br_mst_fill_info() 283 __set_bit(v->brvlan->msti, seen); in br_mst_fill_info()
|
/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_32.c | 139 seen |= SEEN_XREG; \ 329 u32 temp[8], *prog, *func, seen = 0, pass; in bpf_jit_compile() local 352 u8 seen_or_pass0 = (pass == 0) ? (SEEN_XREG | SEEN_DATAREF | SEEN_MEM) : seen; in bpf_jit_compile() 513 seen |= SEEN_XREG; in bpf_jit_compile() 517 seen |= SEEN_XREG; in bpf_jit_compile() 577 seen |= SEEN_MEM; in bpf_jit_compile() 581 seen |= SEEN_MEM | SEEN_XREG; in bpf_jit_compile() 585 seen |= SEEN_MEM; in bpf_jit_compile() 589 seen |= SEEN_MEM | SEEN_XREG; in bpf_jit_compile() 598 common_load: seen |= SEEN_DATAREF; in bpf_jit_compile() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-pci-devices-aer_stats | 5 statistical counters indicate the errors "as seen/reported by the device". 8 errors may be "seen" / reported by the link partner and not the 16 Description: List of correctable errors seen and reported by this 37 Description: List of uncorrectable fatal errors seen and reported by this 67 Description: List of uncorrectable nonfatal errors seen and reported by this 99 (internally) the ERR_* messages for errors seen by the internal rootport PCI
|
/linux/sound/aoa/soundbus/ |
H A D | core.c | 66 int cplen, seen = 0; in soundbus_uevent() local 93 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent() 98 seen += 1; in soundbus_uevent() 101 retval = add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in soundbus_uevent()
|
/linux/arch/powerpc/net/ |
H A D | bpf_jit.h | 131 unsigned int seen; member 149 return ctx->seen & (1 << (31 - i)); in bpf_is_seen_register() 154 ctx->seen |= 1 << (31 - i); in bpf_set_seen_register() 159 ctx->seen &= ~(1 << (31 - i)); in bpf_clear_seen_register()
|
H A D | bpf_jit_comp32.c | 92 return ctx->seen & (SEEN_FUNC | SEEN_TAILCALL | SEEN_NVREG_FULL_MASK) || in bpf_has_stack_frame() 100 if (ctx->seen & SEEN_FUNC) in bpf_jit_realloc_regs() 105 while (ctx->seen & nvreg_mask && in bpf_jit_realloc_regs() 106 (ctx->seen & SEEN_VREG_MASK) != SEEN_VREG_MASK) { in bpf_jit_realloc_regs() 107 int old = 32 - fls(ctx->seen & (nvreg_mask & 0xaaaaaaab)); in bpf_jit_realloc_regs() 108 int new = 32 - fls(~ctx->seen & (SEEN_VREG_MASK & 0xaaaaaaaa)); in bpf_jit_realloc_regs() 131 if (ctx->seen & SEEN_TAILCALL) in bpf_jit_build_prologue() 141 if (ctx->seen & SEEN_TAILCALL) in bpf_jit_build_prologue() 152 if (ctx->seen & SEEN_FUNC) in bpf_jit_build_prologue() 169 if (ctx->seen & SEEN_FUNC) in bpf_jit_build_prologue() [all …]
|
/linux/drivers/zorro/ |
H A D | names.c | 22 unsigned short seen; member 93 int nr = prod_p->seen + 1; in zorro_name_device() 94 prod_p->seen = nr; in zorro_name_device()
|
/linux/crypto/asymmetric_keys/ |
H A D | pkcs7_trust.c | 39 if (x509->seen) { in pkcs7_validate_trust_one() 45 x509->seen = true; in pkcs7_validate_trust_one() 167 p->seen = false; in pkcs7_validate_trust()
|
H A D | pkcs7_verify.c | 204 p->seen = false; in pkcs7_verify_sig_chain() 210 x509->seen = true; in pkcs7_verify_sig_chain() 286 if (p->seen) { in pkcs7_verify_sig_chain()
|
/linux/fs/xfs/scrub/ |
H A D | refcount.c | 98 xfs_nlink_t seen; member 137 refchk->seen++; in xchk_refcountbt_rmap_check() 176 target_nr = refchk->refcount - refchk->seen; in xchk_refcountbt_process_rmap_fragments() 270 refchk->seen = refchk->refcount; in xchk_refcountbt_process_rmap_fragments() 294 .seen = 0, in xchk_refcountbt_xref_rmap() 318 if (irec->rc_refcount != refchk.seen) { in xchk_refcountbt_xref_rmap() 319 trace_xchk_refcount_incorrect(sc->sa.pag, irec, refchk.seen); in xchk_refcountbt_xref_rmap()
|
/linux/tools/testing/selftests/lkdtm/ |
H A D | stack-entropy.sh | 39 seen=$(tac "$log" | grep -m1 -B"$samples"0 'Starting stack offset' | \ 41 bits=$(echo "obase=2; $seen" | bc | wc -L)
|
/linux/fs/bcachefs/ |
H A D | thread_with_file.c | 70 static bool stdio_redirect_has_more_input(struct stdio_redirect *stdio, size_t seen) in stdio_redirect_has_more_input() argument 72 return stdio->input.buf.nr > seen || stdio->done; in stdio_redirect_has_more_input() 371 size_t seen = 0; in bch2_stdio_redirect_readline_timeout() local 379 wait_event_timeout(buf->wait, stdio_redirect_has_more_input(stdio, seen), t); in bch2_stdio_redirect_readline_timeout() 385 seen = buf->buf.nr; in bch2_stdio_redirect_readline_timeout() 386 char *n = memchr(buf->buf.data, '\n', seen); in bch2_stdio_redirect_readline_timeout() 405 seen = 0; in bch2_stdio_redirect_readline_timeout()
|
H A D | fsck.c | 697 static bool key_visible_in_snapshot(struct bch_fs *c, struct snapshots_seen *seen, in key_visible_in_snapshot() argument 705 EBUG_ON(ancestor != seen->pos.snapshot); in key_visible_in_snapshot() 706 EBUG_ON(ancestor != darray_last(seen->ids)); in key_visible_in_snapshot() 724 for (i = seen->ids.nr - 2; in key_visible_in_snapshot() 725 i >= 0 && seen->ids.data[i] >= id; in key_visible_in_snapshot() 727 if (bch2_snapshot_is_ancestor(c, id, seen->ids.data[i])) in key_visible_in_snapshot() 1681 struct snapshots_seen seen; member 1692 snapshots_seen_exit(&i->seen); in extent_ends_reset() 1709 struct snapshots_seen *seen, in extent_ends_at() argument 1715 .seen = *seen, in extent_ends_at() [all …]
|
/linux/Documentation/hwmon/ |
H A D | drivetemp.rst | 37 This has been observed with WD120EFAX drives, but may be seen with other 68 temp1_lowest Minimum temperature seen this power cycle 69 temp1_highest Maximum temperature seen this power cycle
|
/linux/drivers/usb/host/ |
H A D | ohci-dbg.c | 489 struct ed **seen, *ed; in fill_periodic_buffer() local 495 seen = kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC); in fill_periodic_buffer() 496 if (!seen) in fill_periodic_buffer() 525 if (seen [temp] == ed) in fill_periodic_buffer() 558 seen [seen_count++] = ed; in fill_periodic_buffer() 575 kfree (seen); in fill_periodic_buffer()
|
/linux/samples/bpf/ |
H A D | test_lru_dist.c | 127 int seen = 0; in pfect_lru_lookup_or_insert() local 135 seen = 1; in pfect_lru_lookup_or_insert() 154 if (seen) { in pfect_lru_lookup_or_insert() 161 return seen; in pfect_lru_lookup_or_insert()
|
/linux/Documentation/accounting/ |
H A D | delay-accounting.rst | 52 delay seen for cpu, sync block I/O, swapin, memory reclaim, thrash page 89 seen by a given task or a task group (tgid). 92 seen.
|