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

1234567891011>>

/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/tools/testing/selftests/net/mptcp/
H A Dpm_netlink.sh52 local expected="$2"
57 mptcp_lib_check_output "${err}" "${cmd}" "${expected}" || rc=${?}
/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/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.c79 u64 expected, val; local
87 expected = READ_ONCE(*this_cpu);
109 if (!expected)
116 if (expected != READ_ONCE(*this_cpu))
119 GUEST_ASSERT(val == expected);
181 * Finalize the test: check hypercall resule set the expected val for
577 "expected retval=%p, got %p", PTHREAD_CANCELED,
661 "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/arch/powerpc/lib/
H A Dtest-code-patching.c339 u32 expected[2] = {OP_PREFIX << 26, 0}; local
347 check(!memcmp(iptr, expected, sizeof(expected)));
/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
/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/selftests/net/
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);
H A Dpsock_snd.c274 static void do_rx(int fd, int expected_len, char *expected) argument
284 if (memcmp(rbuf, expected, ret))
/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/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/arch/s390/kernel/
H A Duv.c28 * expected to be used within modules if it's the KVM module or for
184 * Calculate the expected ref_count for a page that would otherwise have no
206 int expected, cc = 0; local
210 expected = expected_page_refs(page);
211 if (!page_ref_freeze(page, expected))
223 page_ref_unfreeze(page, expected);
331 * still does not match our expected safe value, try with a
342 * expected safe value. The main culprits are usually
345 * reach the expected safe value.
/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;
/linux-master/drivers/platform/x86/
H A Dbarco-p50-gpio.c122 static int p50_wait_ec(struct p50_gpio *p50, int mask, int expected) argument
128 if (val == expected)

Completed in 252 milliseconds

1234567891011>>