Searched refs:expected (Results 151 - 175 of 315) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/net/
H A Dfib_nexthop_multiprefix.sh27 local expected=$2
30 if [ ${rc} -eq ${expected} ]; then
H A Dip_local_port_range.c196 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail");
202 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail");
208 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail");
252 ASSERT_GE(port, 40000) TH_LOG("#%d: expected port within netns range", i);
253 ASSERT_LE(port, 49999) TH_LOG("#%d: expected port within netns range", i);
268 __u16 expected; member in struct:test
283 TH_LOG("lo %5hu, hi %5hu, expected %5hu",
284 t->range_lo, t->range_hi, t->expected);
297 ASSERT_EQ(port, t->expected) TH_LOG("unexpected local port");
324 ASSERT_GE(port, 40000) TH_LOG("expected por
[all...]
H A Dreuseport_bpf.c4 * incoming packet (expected to be in network byte-order), calculate a modulus
217 int epfd, conn, i, sport, expected; local
256 error(1, 0, "expected size %zd got %d",
265 expected = (sport % mod);
266 if (i != expected)
267 error(1, 0, "expected socket %d", expected);
/linux-master/tools/perf/tests/
H A Dcpumap.c174 static int __test__cpu_map_intersect(const char *lhs, const char *rhs, int nr, const char *expected) argument
183 TEST_ASSERT_VAL("failed to intersect map: bad result", !strcmp(buf, expected));
/linux-master/include/linux/
H A Duserfaultfd_k.h104 static inline bool uffd_flags_mode_is(uffd_flags_t flags, enum mfill_atomic_mode expected) argument
106 return (flags & MFILL_ATOMIC_MODE_MASK) == ((__force uffd_flags_t) expected);
/linux-master/arch/s390/kernel/
H A Dftrace.c40 * where r0 contains the return address. It is also expected that the called
163 static int ftrace_patch_branch_mask(void *addr, u16 expected, bool enable) argument
170 if (old != expected)
H A Duv.c29 * expected to be used within modules if it's the KVM module or for
185 * Calculate the expected ref_count for a folio that would otherwise have no
207 int expected, cc = 0; local
211 expected = expected_folio_refs(folio);
212 if (!folio_ref_freeze(folio, expected))
224 folio_ref_unfreeze(folio, expected);
336 * still does not match our expected safe value, try with a
347 * expected safe value. The main culprits are usually
350 * reach the expected safe value.
/linux-master/drivers/char/tpm/
H A Dtpm_tis_i2c_cr50.c455 size_t burstcnt, cur, len, expected; local
482 /* Determine expected data in the return buffer */
483 expected = be32_to_cpup((__be32 *)(buf + 2));
484 if (expected > buf_len) {
492 while (cur < expected) {
498 len = min_t(size_t, burstcnt, expected - cur);
595 dev_err(&chip->dev, "Data still expected\n");
/linux-master/tools/testing/selftests/net/tcp_ao/lib/
H A Daolib.h272 * Timeout on syscalls where failure is not expected.
280 * Timeout on connect() where a failure is expected.
494 test_cnt expected);
497 test_cnt expected, int sndid, int rcvid);
508 test_cnt expected)
512 ret = __test_tcp_ao_counters_cmp(tst_name, before, after, expected);
516 expected, -1, -1);
505 test_tcp_ao_counters_cmp(const char *tst_name, struct tcp_ao_counters *before, struct tcp_ao_counters *after, test_cnt expected) argument
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Djpeg_v4_0.c415 uint32_t param, resp, expected; local
508 expected = MMSCH_VF_MAILBOX_RESP__OK;
510 while (resp != expected) {
520 "(expected=0x%08x, readback=0x%08x)\n",
521 tmp, expected, resp);
525 if (resp != expected && resp != MMSCH_VF_MAILBOX_RESP__INCOMPLETE
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_tlb_flush.c77 u64 expected, val; local
85 expected = READ_ONCE(*this_cpu);
107 if (!expected)
114 if (expected != READ_ONCE(*this_cpu))
117 GUEST_ASSERT(val == expected);
179 * Finalize the test: check hypercall resule set the expected val for
575 "expected retval=%p, got %p", PTHREAD_CANCELED,
659 "Unexpected stage: %ld (%d expected)",
/linux-master/drivers/crypto/hisilicon/sec/
H A Dsec_drv.c626 queue->expected = 0;
702 if (q_id == queue->expected)
703 while (test_bit(queue->expected, queue->unprocessed)) {
704 clear_bit(queue->expected, queue->unprocessed);
705 msg = msg_ring->vaddr + queue->expected;
708 queue->shadow[queue->expected]);
709 queue->shadow[queue->expected] = NULL;
710 queue->expected = (queue->expected + 1) %
/linux-master/lib/
H A Dtest_lockup.c437 unsigned int expected)
445 if (get_kernel_nofault(magic, ptr) || magic != expected) {
446 pr_err("invalid magic at %#lx + %#x = %#x, expected %#x\n",
447 addr, offset, magic, expected);
436 test_magic(unsigned long addr, int offset, unsigned int expected) argument
H A Dstring_kunit.c334 * @expected: Expected return value from call to strscpy_pad()
335 * @chars: Number of characters from the src string expected to be
338 * @pad: Number of pad characters expected (in the tail of dst buffer).
345 int expected, int chars, int terminator, int pad)
365 KUNIT_EXPECT_LE_MSG(test, expected, max_expected,
366 "expected (%d) is bigger than can possibly be returned (%d)",
367 expected, max_expected);
370 KUNIT_ASSERT_EQ(test, written, expected);
414 /* strscpy_check(test, src, count, expected, chars, terminator, pad) */
344 strscpy_check(struct kunit *test, char *src, int count, int expected, int chars, int terminator, int pad) argument
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c177 "invalid deleted k/v: expected %ld = %ld, got %ld = %ld\n",
271 #define CHECK_STR(fn, var, expected) \
272 CHECK(strcmp(var, (expected)), (fn), \
273 "wrong value of " #var ": '%s' instead of '%s'\n", var, (expected))
306 "hashmap__delete", "expected to have entry for 'c'\n"))
315 "hashmap__delete", "expected to have entry for 'b'\n"))
/linux-master/drivers/gpio/
H A Dgpio-max3191x.c334 enum gpiod_flags flags, unsigned int expected)
342 if (found != expected && found != 1) {
343 dev_err(dev, "ignoring %s-gpios: found %d, expected %u or 1\n",
344 con_id, found, expected);
332 devm_gpiod_get_array_optional_count( struct device *dev, const char *con_id, enum gpiod_flags flags, unsigned int expected) argument
/linux-master/tools/testing/vsock/
H A Dvsock_diag_test.c135 fprintf(stderr, "expected no sockets\n");
141 static void check_num_sockets(struct list_head *head, int expected) argument
149 if (n != expected) {
150 fprintf(stderr, "expected %d sockets, found %d\n",
151 expected, n);
160 fprintf(stderr, "expected socket state %#x, got %#x\n",
/linux-master/tools/testing/selftests/mm/
H A Dcharge_reserved_hugetlb.sh73 local expected="$1"
77 if [[ "$expected" != "$actual" ]]; then
78 echo "expected ($expected) != actual ($actual): $3"
/linux-master/drivers/phy/renesas/
H A Dr8a779f0-ether-serdes.c54 u32 offs, u32 bank, u32 mask, u32 expected)
62 (val & mask) == expected,
66 "%s: index %d, offs %x, bank %x, mask %x, expected %x\n",
67 __func__, channel->index, offs, bank, mask, expected);
53 r8a779f0_eth_serdes_reg_wait(struct r8a779f0_eth_serdes_channel *channel, u32 offs, u32 bank, u32 mask, u32 expected) argument
/linux-master/tools/testing/selftests/net/mptcp/
H A Dmptcp_lib.sh156 # Features might not land in the expected version and features can be backported
357 local expected="${3}"
369 elif [ "${out}" = "${expected}" ]; then
372 mptcp_lib_pr_fail "expected '${expected}' got '${out}'"
/linux-master/tools/usb/
H A Dffs-test.c529 __u8 expected; local
537 expected = 0;
546 expected = len % 63;
558 err("bad OUT byte %zd, expected %02x got %02x\n",
559 len, expected, *p);
/linux-master/lib/zstd/decompress/
H A Dzstd_decompress_internal.h137 size_t expected; member in struct:ZSTD_DCtx_s
/linux-master/tools/testing/selftests/sgx/
H A Dtest_encl_bootstrap.S53 # Entry point for dynamically created TCS page expected to follow
/linux-master/tools/bpf/resolve_btfids/
H A Dmain.c7 * Each symbol points to 4 bytes data and is expected to have
307 int expected = gelf_getclass(elf) == ELFCLASS32 ? 4 : 8; local
312 if (sh->sh_addralign == expected)
315 pr_debug2(" - fixing wrong alignment sh_addralign %u, expected %u\n",
316 sh->sh_addralign, expected);
318 sh->sh_addralign = expected;
/linux-master/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c264 static unsigned long cmpxchg(unsigned long *p, unsigned long expected, argument
267 unsigned long exp = expected;

Completed in 409 milliseconds

1234567891011>>