expected 1202 arch/alpha/kernel/core_cia.c int expected; expected 1212 arch/alpha/kernel/core_cia.c expected = mcheck_expected(0); expected 1213 arch/alpha/kernel/core_cia.c if (!expected && vector == 0x660) expected 1214 arch/alpha/kernel/core_cia.c expected = cia_decode_mchk(la_ptr); expected 1215 arch/alpha/kernel/core_cia.c process_mcheck_info(vector, la_ptr, "CIA", expected); expected 580 arch/alpha/kernel/core_mcpcia.c int expected; expected 583 arch/alpha/kernel/core_mcpcia.c expected = mcheck_expected(cpu); expected 589 arch/alpha/kernel/core_mcpcia.c switch (expected) { expected 611 arch/alpha/kernel/core_mcpcia.c process_mcheck_info(vector, la_ptr, "MCPCIA", expected != 0); expected 612 arch/alpha/kernel/core_mcpcia.c if (!expected && vector != 0x620 && vector != 0x630) { expected 129 arch/alpha/kernel/irq_alpha.c const char *machine, int expected) expected 142 arch/alpha/kernel/irq_alpha.c expected ? "expected." : "NOT expected!!!"); expected 146 arch/alpha/kernel/irq_alpha.c if (expected) { expected 212 arch/alpha/kernel/proto.h unsigned char expected __attribute__((aligned(8))); expected 217 arch/alpha/kernel/proto.h #define mcheck_expected(cpu) (*((void)(cpu), &__mcheck_info.expected)) expected 223 arch/alpha/kernel/proto.h const char *machine, int expected); expected 445 arch/arc/include/asm/atomic.h atomic64_cmpxchg(atomic64_t *ptr, s64 expected, s64 new) expected 459 arch/arc/include/asm/atomic.h : "r"(ptr), "ir"(expected), "r"(new) expected 17 arch/arc/include/asm/cmpxchg.h __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) expected 35 arch/arc/include/asm/cmpxchg.h "ir"(expected), expected 47 arch/arc/include/asm/cmpxchg.h __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) expected 58 arch/arc/include/asm/cmpxchg.h if (prev == expected) expected 67 arch/arc/include/asm/cmpxchg.h __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) expected 74 arch/arc/include/asm/cmpxchg.h write_aux_reg(CTOP_AUX_GPA1, expected); expected 99 arch/arc/include/asm/entry-arcv2.h ; OUTPUT: r10 has ECR expected by EV_Trap expected 44 arch/arc/kernel/process.c SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new) expected 72 arch/arc/kernel/process.c if (uval != expected) expected 1280 arch/ia64/include/asm/pal.h ia64_pal_mc_expected (u64 expected, u64 *previous) expected 1283 arch/ia64/include/asm/pal.h PAL_CALL(iprv, PAL_MC_EXPECTED, expected, 0, 0); expected 94 arch/powerpc/oprofile/cell/vma_map.c static const unsigned char expected[EI_PAD] = { expected 131 arch/powerpc/oprofile/cell/vma_map.c if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) { expected 335 arch/powerpc/platforms/pseries/msi.c int expected; expected 341 arch/powerpc/platforms/pseries/msi.c expected = 0; expected 343 arch/powerpc/platforms/pseries/msi.c if (entry->msi_attrib.entry_nr != expected) { expected 347 arch/powerpc/platforms/pseries/msi.c expected++; expected 227 arch/powerpc/sysdev/msi_bitmap.c DECLARE_BITMAP(expected, SIZE_EXPECTED); expected 258 arch/powerpc/sysdev/msi_bitmap.c WARN_ON(bitmap_parselist(expected_str, expected, SIZE_EXPECTED)); expected 259 arch/powerpc/sysdev/msi_bitmap.c WARN_ON(!bitmap_equal(expected, bmp.bitmap, SIZE_EXPECTED)); expected 14 arch/riscv/kernel/ftrace.c unsigned int *expected) expected 20 arch/riscv/kernel/ftrace.c if (!expected) expected 21 arch/riscv/kernel/ftrace.c expected = nops; expected 34 arch/riscv/kernel/ftrace.c if (memcmp(expected, replaced, sizeof(replaced))) { expected 36 arch/riscv/kernel/ftrace.c (void *)hook_pos, expected[0], expected[1], replaced[0], expected 32 arch/s390/kernel/jump_label.c static void jump_label_bug(struct jump_entry *entry, struct insn *expected, expected 36 arch/s390/kernel/jump_label.c unsigned char *ipe = (unsigned char *)expected; expected 86 arch/s390/lib/spinlock.c int expected = old; expected 94 arch/s390/lib/spinlock.c return expected == old; expected 303 arch/sh/kernel/traps_32.c struct mem_access *ma, int expected, expected 325 arch/sh/kernel/traps_32.c if (!expected) { expected 52 arch/um/drivers/net_user.c int remain, ret, expected; expected 67 arch/um/drivers/net_user.c expected = sizeof(remain); expected 73 arch/um/drivers/net_user.c expected = (remain < len) ? remain : len; expected 74 arch/um/drivers/net_user.c ret = read(fd, output, expected); expected 75 arch/um/drivers/net_user.c if (ret != expected) { expected 92 arch/um/drivers/net_user.c "%d of %d bytes\n", str, ret, expected); expected 269 arch/um/include/shared/os.h int syscall, unsigned long *args, long expected, expected 111 arch/um/os-Linux/skas/mem.c unsigned long *args, long expected, void **addr, expected 126 arch/um/os-Linux/skas/mem.c *stack++ = expected; expected 113 arch/x86/kernel/nmi_selftest.c static void __init dotest(void (*testcase_fn)(void), int expected) expected 119 arch/x86/kernel/nmi_selftest.c if (nmi_fail != expected) { expected 52 arch/x86/mm/pageattr-test.c long i, expected, missed = 0; expected 102 arch/x86/mm/pageattr-test.c expected = (s->gpg*GPS + s->lpg*LPS)/PAGE_SIZE + s->spg + missed; expected 103 arch/x86/mm/pageattr-test.c if (expected != i) { expected 105 arch/x86/mm/pageattr-test.c max_pfn_mapped, expected); expected 3439 crypto/testmgr.c ret = memcmp(test->expected, buf, test->expectedlen); expected 139 crypto/testmgr.h const unsigned char *expected; expected 19646 crypto/testmgr.h .expected = (unsigned char *) expected 19680 crypto/testmgr.h .expected = (unsigned char *) expected 19720 crypto/testmgr.h .expected = (unsigned char *) expected 19757 crypto/testmgr.h .expected = (unsigned char *) expected 19804 crypto/testmgr.h .expected = (unsigned char *) expected 19838 crypto/testmgr.h .expected = (unsigned char *) expected 19878 crypto/testmgr.h .expected = (unsigned char *) expected 19915 crypto/testmgr.h .expected = (unsigned char *) expected 19958 crypto/testmgr.h .expected = (unsigned char *) expected 19983 crypto/testmgr.h .expected = (unsigned char *) expected 20012 crypto/testmgr.h .expected = (unsigned char *) expected 20039 crypto/testmgr.h .expected = (unsigned char *) expected 20077 crypto/testmgr.h .expected = (unsigned char *) expected 20102 crypto/testmgr.h .expected = (unsigned char *) expected 20133 crypto/testmgr.h .expected = (unsigned char *) expected 20161 crypto/testmgr.h .expected = (unsigned char *) expected 20199 crypto/testmgr.h .expected = (unsigned char *) expected 20224 crypto/testmgr.h .expected = (unsigned char *) expected 20255 crypto/testmgr.h .expected = (unsigned char *) expected 20283 crypto/testmgr.h .expected = (unsigned char *) expected 20321 crypto/testmgr.h .expected = (unsigned char *) expected 20345 crypto/testmgr.h .expected = (unsigned char *) expected 20367 crypto/testmgr.h .expected = (unsigned char *) expected 20385 crypto/testmgr.h .expected = (unsigned char *) expected 20407 crypto/testmgr.h .expected = (unsigned char *) expected 20427 crypto/testmgr.h .expected = (unsigned char *) expected 65 drivers/acpi/acpica/acapps.h #define ACPI_CHECK_STATUS(name, status, expected) \ expected 66 drivers/acpi/acpica/acapps.h if (status != expected) \ expected 2296 drivers/block/drbd/drbd_main.c bool expected; expected 2298 drivers/block/drbd/drbd_main.c expected = expected 2304 drivers/block/drbd/drbd_main.c if (!expected) expected 446 drivers/char/tpm/st33zp24/st33zp24.c u32 expected; expected 462 drivers/char/tpm/st33zp24/st33zp24.c expected = be32_to_cpu(*(__be32 *)(buf + 2)); expected 463 drivers/char/tpm/st33zp24/st33zp24.c if (expected > count || expected < TPM_HEADER_SIZE) { expected 469 drivers/char/tpm/st33zp24/st33zp24.c expected - TPM_HEADER_SIZE); expected 470 drivers/char/tpm/st33zp24/st33zp24.c if (size < expected) { expected 284 drivers/char/tpm/tpm_crb.c unsigned int expected; expected 304 drivers/char/tpm/tpm_crb.c expected = be32_to_cpup((__be32 *)&buf[2]); expected 305 drivers/char/tpm/tpm_crb.c if (expected > count || expected < TPM_HEADER_SIZE) expected 308 drivers/char/tpm/tpm_crb.c memcpy_fromio(&buf[8], &priv->rsp[8], expected - 8); expected 310 drivers/char/tpm/tpm_crb.c return expected; expected 472 drivers/char/tpm/tpm_i2c_infineon.c u32 expected; expected 486 drivers/char/tpm/tpm_i2c_infineon.c expected = be32_to_cpu(*(__be32 *)(buf + 2)); expected 487 drivers/char/tpm/tpm_i2c_infineon.c if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { expected 493 drivers/char/tpm/tpm_i2c_infineon.c expected - TPM_HEADER_SIZE); expected 494 drivers/char/tpm/tpm_i2c_infineon.c if (size < expected) { expected 274 drivers/char/tpm/tpm_i2c_nuvoton.c u32 expected; expected 315 drivers/char/tpm/tpm_i2c_nuvoton.c expected = be32_to_cpu(*(__be32 *) (buf + 2)); expected 316 drivers/char/tpm/tpm_i2c_nuvoton.c if (expected > count || expected < size) { expected 322 drivers/char/tpm/tpm_i2c_nuvoton.c expected - size); expected 324 drivers/char/tpm/tpm_i2c_nuvoton.c if (rc < 0 || size < expected) { expected 312 drivers/char/tpm/tpm_tis_core.c u32 expected; expected 326 drivers/char/tpm/tpm_tis_core.c expected = be32_to_cpu(*(__be32 *) (buf + 2)); expected 327 drivers/char/tpm/tpm_tis_core.c if (expected > count || expected < TPM_HEADER_SIZE) { expected 333 drivers/char/tpm/tpm_tis_core.c expected - TPM_HEADER_SIZE); expected 334 drivers/char/tpm/tpm_tis_core.c if (size < expected) { expected 626 drivers/crypto/hisilicon/sec/sec_drv.c queue->expected = 0; expected 702 drivers/crypto/hisilicon/sec/sec_drv.c if (q_id == queue->expected) expected 703 drivers/crypto/hisilicon/sec/sec_drv.c while (test_bit(queue->expected, queue->unprocessed)) { expected 704 drivers/crypto/hisilicon/sec/sec_drv.c clear_bit(queue->expected, queue->unprocessed); expected 705 drivers/crypto/hisilicon/sec/sec_drv.c msg = msg_ring->vaddr + queue->expected; expected 708 drivers/crypto/hisilicon/sec/sec_drv.c queue->shadow[queue->expected]); expected 709 drivers/crypto/hisilicon/sec/sec_drv.c queue->shadow[queue->expected] = NULL; expected 710 drivers/crypto/hisilicon/sec/sec_drv.c queue->expected = (queue->expected + 1) % expected 345 drivers/crypto/hisilicon/sec/sec_drv.h int expected; expected 364 drivers/dma/dmatest.c u8 expected = pattern | gen_inv_idx(counter, is_memset); expected 369 drivers/dma/dmatest.c thread_name, index, expected, actual); expected 373 drivers/dma/dmatest.c thread_name, index, expected, actual); expected 376 drivers/dma/dmatest.c thread_name, index, expected, actual); expected 379 drivers/dma/dmatest.c thread_name, index, expected, actual); expected 389 drivers/dma/dmatest.c u8 expected; expected 397 drivers/dma/dmatest.c expected = pattern | gen_inv_idx(counter, is_memset); expected 398 drivers/dma/dmatest.c if (actual != expected) { expected 333 drivers/gpio/gpio-max3191x.c enum gpiod_flags flags, unsigned int expected) expected 341 drivers/gpio/gpio-max3191x.c if (found != expected && found != 1) { expected 343 drivers/gpio/gpio-max3191x.c con_id, found, expected); expected 166 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c uint16_t expected) expected 168 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c return !!(amdgpu_discovery_calculate_checksum(data, size) == expected); expected 104 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c uint32_t expected; expected 112 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c expected = i * MAX_DRM_LUT_VALUE / (size-1); expected 115 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c delta = lut[i].red - expected; expected 1084 drivers/gpu/drm/i915/display/intel_cdclk.c u32 cdctl, expected; expected 1109 drivers/gpu/drm/i915/display/intel_cdclk.c expected = (cdctl & CDCLK_FREQ_SEL_MASK) | expected 1111 drivers/gpu/drm/i915/display/intel_cdclk.c if (cdctl == expected) expected 1422 drivers/gpu/drm/i915/display/intel_cdclk.c u32 cdctl, expected; expected 1445 drivers/gpu/drm/i915/display/intel_cdclk.c expected = (cdctl & BXT_CDCLK_CD2X_DIV_SEL_MASK) | expected 1452 drivers/gpu/drm/i915/display/intel_cdclk.c expected |= BXT_CDCLK_SSA_PRECHARGE_ENABLE; expected 1454 drivers/gpu/drm/i915/display/intel_cdclk.c if (cdctl == expected) expected 1709 drivers/gpu/drm/i915/display/intel_cdclk.c u32 cdctl, expected; expected 1732 drivers/gpu/drm/i915/display/intel_cdclk.c expected = (cdctl & BXT_CDCLK_CD2X_DIV_SEL_MASK) | expected 1735 drivers/gpu/drm/i915/display/intel_cdclk.c if (cdctl == expected) expected 1107 drivers/gpu/drm/i915/display/intel_color.c static int check_lut_size(const struct drm_property_blob *lut, int expected) expected 1115 drivers/gpu/drm/i915/display/intel_color.c if (len != expected) { expected 1117 drivers/gpu/drm/i915/display/intel_color.c len, expected); expected 1489 drivers/gpu/drm/i915/display/intel_display_power.c u32 reg, val, expected, actual; expected 1516 drivers/gpu/drm/i915/display/intel_display_power.c expected = DPIO_ALLDL_POWERDOWN | DPIO_ANYDL_POWERDOWN; expected 1527 drivers/gpu/drm/i915/display/intel_display_power.c expected = 0; expected 1529 drivers/gpu/drm/i915/display/intel_display_power.c expected = DPIO_ANYDL_POWERDOWN; expected 1531 drivers/gpu/drm/i915/display/intel_display_power.c expected = 0; expected 1540 drivers/gpu/drm/i915/display/intel_display_power.c WARN(actual != expected, expected 1543 drivers/gpu/drm/i915/display/intel_display_power.c !!(expected & DPIO_ALLDL_POWERDOWN), !!(expected & DPIO_ANYDL_POWERDOWN), expected 492 drivers/gpu/drm/i915/display/intel_dpio_phy.c i915_reg_t reg, u32 mask, u32 expected, expected 500 drivers/gpu/drm/i915/display/intel_dpio_phy.c if ((val & mask) == expected) expected 509 drivers/gpu/drm/i915/display/intel_dpio_phy.c phy, &vaf, reg.reg, val, (val & ~mask) | expected, expected 807 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c __check_rpcs(const char *name, u32 rpcs, int slices, unsigned int expected, expected 810 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c if (slices == expected) expected 820 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c name, prefix, slices, expected, suffix); expected 836 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c unsigned int expected, expected 851 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c ret = __check_rpcs(name, rpcs, ret, expected, "Context", "!"); expected 869 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c ret = __check_rpcs(name, rpcs, ret, expected, expected 371 drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c int expected) expected 383 drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c return err == expected; expected 276 drivers/gpu/drm/i915/gt/intel_engine_user.c unsigned int expected = engine->default_state ? bit : 0; expected 278 drivers/gpu/drm/i915/gt/intel_engine_user.c if ((isolation & bit) != expected) { expected 162 drivers/gpu/drm/i915/gt/selftest_timeline.c bool expected; expected 173 drivers/gpu/drm/i915/gt/selftest_timeline.c if (__intel_timeline_sync_is_later(tl, ctx, p->seqno) != p->expected) { expected 175 drivers/gpu/drm/i915/gt/selftest_timeline.c name, p->name, ctx, p->seqno, yesno(p->expected)); expected 171 drivers/gpu/drm/i915/gt/selftest_workarounds.c u32 expected = get_whitelist_reg(engine, i); expected 175 drivers/gpu/drm/i915/gt/selftest_workarounds.c i, expected, actual); expected 209 drivers/gpu/drm/i915/gt/selftest_workarounds.c u32 expected = get_whitelist_reg(engine, i); expected 212 drivers/gpu/drm/i915/gt/selftest_workarounds.c if (expected != actual) { expected 215 drivers/gpu/drm/i915/gt/selftest_workarounds.c i, expected, actual); expected 165 drivers/gpu/drm/i915/i915_cmd_parser.c u32 expected; expected 226 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 233 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 256 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 263 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 269 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 275 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 283 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 292 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 298 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 334 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 341 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 346 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 353 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 361 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 378 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 385 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 390 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 397 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 405 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 415 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 422 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 427 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 434 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = 0, expected 497 drivers/gpu/drm/i915/i915_cmd_parser.c .expected = MI_BB_START_OPERAND_EXPECT, expected 1295 drivers/gpu/drm/i915/i915_cmd_parser.c if (dword != desc->bits[i].expected) { expected 1299 drivers/gpu/drm/i915/i915_cmd_parser.c desc->bits[i].expected, expected 218 drivers/gpu/drm/mediatek/mtk_drm_gem.c dma_addr_t expected; expected 225 drivers/gpu/drm/mediatek/mtk_drm_gem.c expected = sg_dma_address(sg->sgl); expected 227 drivers/gpu/drm/mediatek/mtk_drm_gem.c if (sg_dma_address(s) != expected) { expected 232 drivers/gpu/drm/mediatek/mtk_drm_gem.c expected = sg_dma_address(s) + sg_dma_len(s); expected 466 drivers/gpu/drm/rockchip/rockchip_drm_gem.c dma_addr_t expected = sg_dma_address(sgt->sgl); expected 471 drivers/gpu/drm/rockchip/rockchip_drm_gem.c if (sg_dma_address(s) != expected) expected 473 drivers/gpu/drm/rockchip/rockchip_drm_gem.c expected = sg_dma_address(s) + sg_dma_len(s); expected 543 drivers/gpu/drm/savage/savage_drv.h uint32_t *expected = (uint32_t *)dev_priv->cmd_dma->handle + \ expected 546 drivers/gpu/drm/savage/savage_drv.h if (dma_ptr != expected) { \ expected 548 drivers/gpu/drm/savage/savage_drv.h "%p != %p\n", expected, dma_ptr); \ expected 1905 drivers/hwmon/w83795.c int bank, vendor_id, device_id, expected, i2c_addr, config; expected 1922 drivers/hwmon/w83795.c expected = bank & 0x80 ? 0x5c : 0xa3; expected 1923 drivers/hwmon/w83795.c if (vendor_id != expected) { expected 111 drivers/i2c/busses/i2c-mt7621.c static int mtk_i2c_check_ack(struct mtk_i2c *i2c, u32 expected) expected 114 drivers/i2c/busses/i2c-mt7621.c u32 ack_expected = (expected << 16) & SM0CTL1_ACK_MASK; expected 393 drivers/infiniband/hw/hfi1/firmware.c u32 actual, u32 expected) expected 395 drivers/infiniband/hw/hfi1/firmware.c if (actual == expected) expected 400 drivers/infiniband/hw/hfi1/firmware.c what, expected, actual); expected 365 drivers/infiniband/hw/mlx5/cq.c item->expected = be32_to_cpu(cqe->expected_trans_sig) >> 16; expected 370 drivers/infiniband/hw/mlx5/cq.c item->expected = be32_to_cpu(cqe->expected_reftag); expected 375 drivers/infiniband/hw/mlx5/cq.c item->expected = be32_to_cpu(cqe->expected_trans_sig) & 0xffff; expected 560 drivers/infiniband/hw/mlx5/cq.c mr->sig->err_item.expected, expected 1100 drivers/infiniband/ulp/iser/iser_verbs.c mr_status.sig_err.expected, expected 1643 drivers/infiniband/ulp/isert/ib_isert.c mr_status.sig_err.expected, expected 52 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_addr_t expected = sg_dma_address(sgt->sgl); expected 57 drivers/media/common/videobuf2/videobuf2-dma-contig.c if (sg_dma_address(s) != expected) expected 59 drivers/media/common/videobuf2/videobuf2-dma-contig.c expected = sg_dma_address(s) + sg_dma_len(s); expected 29 drivers/media/pci/cx18/cx18-av-firmware.c u32 expected, dl_control; expected 48 drivers/media/pci/cx18/cx18-av-firmware.c expected = 0x0f000000 | ((u32)data[addr] << 16) | addr; expected 49 drivers/media/pci/cx18/cx18-av-firmware.c if (expected != dl_control) { expected 51 drivers/media/pci/cx18/cx18-av-firmware.c FWFILE, expected, dl_control); expected 987 drivers/mfd/si476x-cmd.c report->expected = get_unaligned_be16(resp + 2); expected 219 drivers/misc/mei/hw-txe.c static int mei_txe_aliveness_poll(struct mei_device *dev, u32 expected) expected 228 drivers/misc/mei/hw-txe.c if (hw->aliveness == expected) { expected 252 drivers/misc/mei/hw-txe.c static int mei_txe_aliveness_wait(struct mei_device *dev, u32 expected) expected 261 drivers/misc/mei/hw-txe.c if (hw->aliveness == expected) expected 270 drivers/misc/mei/hw-txe.c ret = hw->aliveness == expected ? 0 : -ETIME; expected 853 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long addr, map_word expected) expected 876 drivers/mtd/chips/cfi_cmdset_0002.c map_word_equal(map, curd, expected); expected 2063 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, expected 2070 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h if (val == expected) expected 1274 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 expected, u32 poll_count) expected 1279 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c while ((val = REG_RD(bp, reg)) != expected && cur_cnt--) expected 3408 drivers/net/ethernet/sfc/ef10.c unsigned int actual, unsigned int expected) expected 3410 drivers/net/ethernet/sfc/ef10.c unsigned int dropped = (actual - expected) & rx_queue->ptr_mask; expected 3415 drivers/net/ethernet/sfc/ef10.c dropped, actual, expected); expected 952 drivers/net/ethernet/sfc/falcon/farch.c unsigned expected, dropped; expected 961 drivers/net/ethernet/sfc/falcon/farch.c expected = rx_queue->removed_count & rx_queue->ptr_mask; expected 962 drivers/net/ethernet/sfc/falcon/farch.c dropped = (index - expected) & rx_queue->ptr_mask; expected 965 drivers/net/ethernet/sfc/falcon/farch.c dropped, index, expected); expected 941 drivers/net/ethernet/sfc/farch.c unsigned expected, dropped; expected 950 drivers/net/ethernet/sfc/farch.c expected = rx_queue->removed_count & rx_queue->ptr_mask; expected 951 drivers/net/ethernet/sfc/farch.c dropped = (index - expected) & rx_queue->ptr_mask; expected 954 drivers/net/ethernet/sfc/farch.c dropped, index, expected); expected 253 drivers/of/unittest.c const char *expected) expected 259 drivers/of/unittest.c buf_size = strlen(expected) + 10; expected 269 drivers/of/unittest.c unittest((strcmp(buf, expected) == 0) && (buf[size+1] == 0xff), expected 271 drivers/of/unittest.c fmt, expected, buf); expected 279 drivers/of/unittest.c unittest(strncmp(buf, expected, size) == 0 && (buf[size+1] == 0xff), expected 281 drivers/of/unittest.c size, fmt, expected, buf); expected 2183 drivers/of/unittest.c #define OVERLAY_INFO(overlay_name, expected) \ expected 2186 drivers/of/unittest.c .expected_result = expected, \ expected 2194 drivers/pinctrl/pinctrl-gemini.c u32 before, after, expected; expected 2223 drivers/pinctrl/pinctrl-gemini.c expected = before &= ~grp->mask; expected 2224 drivers/pinctrl/pinctrl-gemini.c expected |= grp->value; expected 2225 drivers/pinctrl/pinctrl-gemini.c expected &= PADS_MASK; expected 2241 drivers/pinctrl/pinctrl-gemini.c before, after, expected); expected 2263 drivers/pinctrl/pinctrl-gemini.c before, after, expected); expected 213 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int expected = 1; expected 223 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c expected = 0; expected 252 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c return (val == expected) ? 0 : -EINVAL; expected 66 drivers/usb/dwc2/hcd_intr.c u16 expected = dwc2_frame_num_inc(hsotg->last_frame_num, 1); expected 68 drivers/usb/dwc2/hcd_intr.c if (expected != curr_frame_number) expected 70 drivers/usb/dwc2/hcd_intr.c expected, curr_frame_number); expected 74 drivers/usb/dwc2/hcd_intr.c if (expected != curr_frame_number) { expected 423 drivers/usb/gadget/udc/renesas_usb3.c u32 expected) expected 428 drivers/usb/gadget/udc/renesas_usb3.c if ((usb3_read(usb3, reg) & mask) == expected) expected 434 drivers/usb/gadget/udc/renesas_usb3.c __func__, reg, mask, expected); expected 185 drivers/usb/misc/ftdi-elan.c int expected; expected 353 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 411 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 447 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 863 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 867 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4 + payload; expected 878 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 898 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 980 drivers/usb/misc/ftdi-elan.c if (++ftdi->received < ftdi->expected) { expected 1003 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 1007 drivers/usb/misc/ftdi-elan.c } else if (ftdi->expected == 8) { expected 1023 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 1037 drivers/usb/misc/ftdi-elan.c ftdi->expected = 8; expected 2658 drivers/usb/misc/ftdi-elan.c ftdi->expected = 4; expected 403 drivers/usb/misc/usbtest.c u8 expected; expected 416 drivers/usb/misc/usbtest.c expected = 0; expected 424 drivers/usb/misc/usbtest.c expected = (i % maxpacket) % 63; expected 428 drivers/usb/misc/usbtest.c expected = !*buf; expected 431 drivers/usb/misc/usbtest.c if (*buf == expected) expected 433 drivers/usb/misc/usbtest.c ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); expected 459 drivers/usb/misc/usbtest.c int expected, expected 507 drivers/usb/misc/usbtest.c if (expected != retval) expected 510 drivers/usb/misc/usbtest.c label, iterations, retval, expected); expected 869 drivers/usb/misc/usbtest.c int expected = udev->actconfig->desc.bConfigurationValue; expected 879 drivers/usb/misc/usbtest.c if (retval != 1 || dev->buf[0] != expected) { expected 881 drivers/usb/misc/usbtest.c retval, dev->buf[0], expected); expected 1084 drivers/usb/misc/usbtest.c int expected; expected 1119 drivers/usb/misc/usbtest.c if (status == subcase->expected) expected 1126 drivers/usb/misc/usbtest.c if (subcase->expected > 0 && ( expected 1127 drivers/usb/misc/usbtest.c ((status == -subcase->expected /* happened */ expected 1238 drivers/usb/misc/usbtest.c int expected = 0; expected 1262 drivers/usb/misc/usbtest.c expected = EPIPE; expected 1279 drivers/usb/misc/usbtest.c expected = EPIPE; expected 1290 drivers/usb/misc/usbtest.c expected = -EPIPE; expected 1301 drivers/usb/misc/usbtest.c expected = EPIPE; expected 1312 drivers/usb/misc/usbtest.c expected = -EREMOTEIO; expected 1319 drivers/usb/misc/usbtest.c expected = EPIPE; expected 1327 drivers/usb/misc/usbtest.c expected = EREMOTEIO; /* or EPIPE, if no strings */ expected 1336 drivers/usb/misc/usbtest.c expected = -EREMOTEIO; expected 1352 drivers/usb/misc/usbtest.c expected = -EREMOTEIO; expected 1361 drivers/usb/misc/usbtest.c expected = -EPIPE; expected 1378 drivers/usb/misc/usbtest.c reqp->expected = expected; expected 140 drivers/w1/slaves/w1_ds2408.c static bool optional_read_back_valid(struct w1_slave *sl, u8 expected) expected 153 drivers/w1/slaves/w1_ds2408.c return (w1_read_8(sl->master) == expected); expected 156 drivers/w1/slaves/w1_ds2408.c static bool optional_read_back_valid(struct w1_slave *sl, u8 expected) expected 346 drivers/xen/xenbus/xenbus_probe_frontend.c static void xenbus_reset_wait_for_backend(char *be, int expected) expected 350 drivers/xen/xenbus/xenbus_probe_frontend.c backend_state == expected, 5 * HZ); expected 636 fs/btrfs/space-info.c u64 expected; expected 655 fs/btrfs/space-info.c expected = div_factor_fine(space_info->total_bytes, 95); expected 657 fs/btrfs/space-info.c expected = div_factor_fine(space_info->total_bytes, 90); expected 659 fs/btrfs/space-info.c if (used > expected) expected 660 fs/btrfs/space-info.c to_reclaim = used - expected; expected 3789 fs/btrfs/volumes.c bctl->stat.expected++; expected 3177 fs/nfs/nfs4xdr.c static bool __decode_op_hdr(struct xdr_stream *xdr, enum nfs_opnum4 expected, expected 3188 fs/nfs/nfs4xdr.c if (unlikely(opnum != expected)) expected 3202 fs/nfs/nfs4xdr.c opnum, expected); expected 3210 fs/nfs/nfs4xdr.c static int decode_op_hdr(struct xdr_stream *xdr, enum nfs_opnum4 expected) expected 3214 fs/nfs/nfs4xdr.c __decode_op_hdr(xdr, expected, &retval); expected 182 fs/nfsd/blocklayoutxdr.c u32 nr_iomaps, expected, i; expected 190 fs/nfsd/blocklayoutxdr.c expected = sizeof(__be32) + nr_iomaps * PNFS_SCSI_RANGE_SIZE; expected 191 fs/nfsd/blocklayoutxdr.c if (len != expected) { expected 193 fs/nfsd/blocklayoutxdr.c __func__, len, expected); expected 219 fs/nfsd/nfs4callback.c enum nfs_cb_opnum4 expected, int *status) expected 228 fs/nfsd/nfs4callback.c if (unlikely(op != expected)) expected 236 fs/nfsd/nfs4callback.c "we issued a request for %d\n", op, expected); expected 853 fs/nfsd/vfs.c size_t expected) expected 855 fs/nfsd/vfs.c if (expected != 0 && len == 0) expected 421 fs/squashfs/file.c static int squashfs_readpage_fragment(struct page *page, int expected) expected 434 fs/squashfs/file.c squashfs_copy_cache(page, buffer, expected, expected 441 fs/squashfs/file.c static int squashfs_readpage_sparse(struct page *page, int expected) expected 443 fs/squashfs/file.c squashfs_copy_cache(page, NULL, expected, 0); expected 453 fs/squashfs/file.c int expected = index == file_end ? expected 474 fs/squashfs/file.c res = squashfs_readpage_sparse(page, expected); expected 476 fs/squashfs/file.c res = squashfs_readpage_block(page, block, bsize, expected); expected 478 fs/squashfs/file.c res = squashfs_readpage_fragment(page, expected); expected 21 fs/squashfs/file_cache.c int squashfs_readpage_block(struct page *page, u64 block, int bsize, int expected) expected 32 fs/squashfs/file_cache.c squashfs_copy_cache(page, buffer, expected, 0); expected 26 fs/squashfs/file_direct.c int expected) expected 85 fs/squashfs/file_direct.c page, expected); expected 97 fs/squashfs/file_direct.c if (res != expected) { expected 179 fs/ubifs/auth.c const u8 *expected) expected 188 fs/ubifs/auth.c if (ubifs_check_hash(c, expected, calc)) expected 66 fs/ubifs/master.c const u8 *expected) expected 78 fs/ubifs/master.c if (ubifs_check_hash(c, expected, calc)) expected 1574 fs/ubifs/ubifs.h const u8 *expected, const u8 *got) expected 1576 fs/ubifs/ubifs.h return crypto_memneq(expected, got, c->hash_len); expected 1589 fs/ubifs/ubifs.h const u8 *expected, const u8 *got) expected 1591 fs/ubifs/ubifs.h return crypto_memneq(expected, got, c->hmac_desc_len); expected 1598 fs/ubifs/ubifs.h const u8 *expected); expected 1600 fs/ubifs/ubifs.h const void *buf, const u8 *expected) expected 1603 fs/ubifs/ubifs.h return __ubifs_node_check_hash(c, buf, expected); expected 260 fs/xfs/scrub/fscounters.c uint64_t expected) expected 265 fs/xfs/scrub/fscounters.c trace_xchk_fscounters_within_range(sc->mp, expected, curr_value, expected 273 fs/xfs/scrub/fscounters.c if (curr_value == expected) expected 280 fs/xfs/scrub/fscounters.c if (expected >= min_value && expected <= max_value) expected 632 fs/xfs/scrub/trace.h TP_PROTO(struct xfs_mount *mp, uint64_t expected, int64_t curr_value, expected 634 fs/xfs/scrub/trace.h TP_ARGS(mp, expected, curr_value, old_value), expected 637 fs/xfs/scrub/trace.h __field(uint64_t, expected) expected 643 fs/xfs/scrub/trace.h __entry->expected = expected; expected 649 fs/xfs/scrub/trace.h __entry->expected, expected 84 include/linux/bcm963xx_nvram.h u32 expected, actual; expected 88 include/linux/bcm963xx_nvram.h expected = nvram->checksum_v4; expected 91 include/linux/bcm963xx_nvram.h expected = nvram->checksum_v5; expected 105 include/linux/bcm963xx_nvram.h *expected_out = expected; expected 110 include/linux/bcm963xx_nvram.h return expected == actual ? 0 : -EINVAL; expected 149 include/linux/mfd/si476x-reports.h __u16 expected; expected 118 include/rdma/signature.h u32 expected; expected 157 include/trace/events/rpcgss.h u32 expected, expected 161 include/trace/events/rpcgss.h TP_ARGS(task, expected, received), expected 166 include/trace/events/rpcgss.h __field(u32, expected) expected 173 include/trace/events/rpcgss.h __entry->expected = expected; expected 179 include/trace/events/rpcgss.h __entry->expected, __entry->received) expected 332 include/uapi/linux/btrfs.h __u64 expected; /* estimated # of chunks that will be expected 16 lib/globtest.c bool expected; expected 19 lib/globtest.c static bool __pure __init test(char const *pat, char const *str, bool expected) expected 22 lib/globtest.c bool success = match == expected; expected 144 lib/globtest.c bool expected = *p++ & 1; expected 148 lib/globtest.c successes += test(pat, p, expected); expected 1137 lib/locking-selftest.c static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask) expected 1148 lib/locking-selftest.c if (expected == FAILURE && debug_locks) { expected 1154 lib/locking-selftest.c if (debug_locks != expected) { expected 1165 lib/locking-selftest.c lockclass_mask, debug_locks, expected); expected 5 lib/percpu_test.c #define CHECK(native, pcp, expected) \ expected 7 lib/percpu_test.c WARN((native) != (expected), \ expected 10 lib/percpu_test.c (long long)(expected), (long long)(expected)); \ expected 11 lib/percpu_test.c WARN(__this_cpu_read(pcp) != (expected), \ expected 14 lib/percpu_test.c (long long)(expected), (long long)(expected)); \ expected 214 lib/test_bitmap.c const unsigned long *expected; expected 318 lib/test_bitmap.c if (!err && ptest.expected expected 319 lib/test_bitmap.c && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { expected 322 lib/test_bitmap.c *ptest.expected); expected 144 lib/test_rhashtable.c bool expected = !(i % 2); expected 150 lib/test_rhashtable.c expected = false; expected 154 lib/test_rhashtable.c if (expected && !obj) { expected 157 lib/test_rhashtable.c } else if (!expected && obj) { expected 161 lib/test_rhashtable.c } else if (expected && obj) { expected 29 lib/test_strscpy.c static int __init tc(char *src, int count, int expected, expected 55 lib/test_strscpy.c if (expected > max_expected) { expected 57 lib/test_strscpy.c expected, max_expected); expected 61 lib/test_strscpy.c if ((written) != (expected)) { expected 62 lib/test_strscpy.c pr_err("%d != %d (written, expected)\n", written, expected); expected 94 lib/test_user_copy.c int expected = is_zeroed(kmem + start, len); expected 96 lib/test_user_copy.c ret |= test(retval != expected, expected 98 lib/test_user_copy.c retval, expected, start, end); expected 109 lib/test_user_copy.c char *umem_src = NULL, *expected = NULL; expected 117 lib/test_user_copy.c expected = kmalloc(size, GFP_KERNEL); expected 118 lib/test_user_copy.c ret = test(expected == NULL, "kmalloc failed"); expected 131 lib/test_user_copy.c memcpy(expected, umem_src, ksize); expected 136 lib/test_user_copy.c ret |= test(memcmp(kmem, expected, ksize), expected 143 lib/test_user_copy.c memcpy(expected, umem_src, usize); expected 144 lib/test_user_copy.c memset(expected + usize, 0x0, ksize - usize); expected 149 lib/test_user_copy.c ret |= test(memcmp(kmem, expected, ksize), expected 164 lib/test_user_copy.c memcpy(expected, umem_src, ksize); expected 171 lib/test_user_copy.c ret |= test(memcmp(kmem, expected, ksize), expected 175 lib/test_user_copy.c kfree(expected); expected 87 lib/zstd/decompress.c size_t expected; expected 108 lib/zstd/decompress.c dctx->expected = ZSTD_frameHeaderSize_prefix; expected 1721 lib/zstd/decompress.c size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx *dctx) { return dctx->expected; } expected 1746 lib/zstd/decompress.c if (srcSize != dctx->expected) expected 1757 lib/zstd/decompress.c dctx->expected = ZSTD_skippableHeaderSize - ZSTD_frameHeaderSize_prefix; /* magic number + skippable frame length */ expected 1766 lib/zstd/decompress.c dctx->expected = dctx->headerSize - ZSTD_frameHeaderSize_prefix; expected 1770 lib/zstd/decompress.c dctx->expected = 0; /* not necessary to copy more */ expected 1774 lib/zstd/decompress.c memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); expected 1776 lib/zstd/decompress.c dctx->expected = ZSTD_blockHeaderSize; expected 1785 lib/zstd/decompress.c dctx->expected = cBlockSize; expected 1795 lib/zstd/decompress.c dctx->expected = 4; expected 1798 lib/zstd/decompress.c dctx->expected = 0; /* end of frame */ expected 1802 lib/zstd/decompress.c dctx->expected = 3; /* go directly to next header */ expected 1824 lib/zstd/decompress.c dctx->expected = 4; expected 1827 lib/zstd/decompress.c dctx->expected = 0; /* ends here */ expected 1832 lib/zstd/decompress.c dctx->expected = ZSTD_blockHeaderSize; expected 1842 lib/zstd/decompress.c dctx->expected = 0; expected 1847 lib/zstd/decompress.c memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); expected 1848 lib/zstd/decompress.c dctx->expected = ZSTD_readLE32(dctx->headerBuffer + 4); expected 1853 lib/zstd/decompress.c dctx->expected = 0; expected 2343 lib/zstd/decompress.c zds->dctx->expected = 0; expected 354 mm/shmem.c pgoff_t index, void *expected, void *replacement) expected 359 mm/shmem.c VM_BUG_ON(!expected); expected 362 mm/shmem.c if (item != expected) expected 608 mm/shmem.c pgoff_t index, void *expected, gfp_t gfp) expected 618 mm/shmem.c VM_BUG_ON(expected && PageTransHuge(page)); expected 628 mm/shmem.c if (entry != expected) expected 320 sound/isa/es18xx.c int old, expected, new; expected 325 sound/isa/es18xx.c expected = old ^ mask; expected 326 sound/isa/es18xx.c outb(expected, chip->port + 0x05); expected 331 sound/isa/es18xx.c reg, old, expected, new); expected 333 sound/isa/es18xx.c return expected == new; expected 1865 sound/soc/codecs/wm8962.c int expected = (WM8962_DCS_STARTUP_DONE_HP1L | expected 1900 sound/soc/codecs/wm8962.c } while (++timeout < 200 && (reg & expected) != expected); expected 1902 sound/soc/codecs/wm8962.c if ((reg & expected) != expected) expected 177 tools/perf/tests/hists_cumulate.c static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, expected 210 tools/perf/tests/hists_cumulate.c TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && expected 211 tools/perf/tests/hists_cumulate.c !strcmp(COMM(he), expected[i].comm) && expected 212 tools/perf/tests/hists_cumulate.c !strcmp(DSO(he), expected[i].dso) && expected 213 tools/perf/tests/hists_cumulate.c !strcmp(SYM(he), expected[i].sym)); expected 216 tools/perf/tests/hists_cumulate.c TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); expected 269 tools/perf/tests/hists_cumulate.c struct result expected[] = { expected 292 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); expected 367 tools/perf/tests/hists_cumulate.c struct result expected[] = { expected 439 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), expected 471 tools/perf/tests/hists_cumulate.c struct result expected[] = { expected 497 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); expected 591 tools/perf/tests/hists_cumulate.c struct result expected[] = { expected 683 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), expected 101 tools/perf/tests/openat-syscall-all-cpus.c unsigned int expected; expected 112 tools/perf/tests/openat-syscall-all-cpus.c expected = nr_openat_calls + cpu; expected 113 tools/perf/tests/openat-syscall-all-cpus.c if (perf_counts(evsel->counts, cpu, 0)->val != expected) { expected 115 tools/perf/tests/openat-syscall-all-cpus.c expected, cpus->map[cpu], perf_counts(evsel->counts, cpu, 0)->val); expected 15 tools/perf/tests/tests.h #define TEST_ASSERT_EQUAL(text, val, expected) \ expected 17 tools/perf/tests/tests.h if (val != expected) { \ expected 19 tools/perf/tests/tests.h __FILE__, __LINE__, text, val, expected); \ expected 12 tools/perf/tests/time-utils-test.c static bool test__parse_nsec_time(const char *str, u64 expected) expected 25 tools/perf/tests/time-utils-test.c if (ptime != expected) { expected 27 tools/perf/tests/time-utils-test.c ptime, expected); expected 12 tools/testing/selftests/bpf/prog_tests/flow_dissector.c #define CHECK_FLOW_KEYS(desc, got, expected) \ expected 13 tools/testing/selftests/bpf/prog_tests/flow_dissector.c CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \ expected 26 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.nhoff, expected.nhoff, \ expected 27 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.thoff, expected.thoff, \ expected 28 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.addr_proto, expected.addr_proto, \ expected 29 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.is_frag, expected.is_frag, \ expected 30 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.is_first_frag, expected.is_first_frag, \ expected 31 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.is_encap, expected.is_encap, \ expected 32 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.ip_proto, expected.ip_proto, \ expected 33 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.n_proto, expected.n_proto, \ expected 34 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.flow_label, expected.flow_label, \ expected 35 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.sport, expected.sport, \ expected 36 tools/testing/selftests/bpf/prog_tests/flow_dissector.c got.dport, expected.dport) expected 39 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c static int verify_sockopt(int fd, int optname, const char *msg, char expected) expected 51 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c printf("%s %d: got=0x%x ? expected=0x%x\n", msg, optname, buf, expected); expected 53 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c if (buf != expected) { expected 55 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c buf, expected); expected 127 tools/testing/selftests/bpf/test_lru_map.c static int map_equal(int lru_map, int expected) expected 129 tools/testing/selftests/bpf/test_lru_map.c return map_subset(lru_map, expected) && map_subset(expected, lru_map); expected 232 tools/testing/selftests/bpf/test_select_reuseport.c struct data_check expected = {}, result; expected 248 tools/testing/selftests/bpf/test_select_reuseport.c expected.len = MIN_TCPHDR_LEN; expected 249 tools/testing/selftests/bpf/test_select_reuseport.c expected.ip_protocol = IPPROTO_TCP; expected 251 tools/testing/selftests/bpf/test_select_reuseport.c expected.len = UDPHDR_LEN; expected 252 tools/testing/selftests/bpf/test_select_reuseport.c expected.ip_protocol = IPPROTO_UDP; expected 256 tools/testing/selftests/bpf/test_select_reuseport.c expected.eth_protocol = htons(ETH_P_IPV6); expected 257 tools/testing/selftests/bpf/test_select_reuseport.c expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && expected 262 tools/testing/selftests/bpf/test_select_reuseport.c memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, expected 264 tools/testing/selftests/bpf/test_select_reuseport.c memcpy(&expected.skb_addrs[4], &in6addr_loopback, expected 266 tools/testing/selftests/bpf/test_select_reuseport.c expected.skb_ports[0] = cli_sa.v6.sin6_port; expected 267 tools/testing/selftests/bpf/test_select_reuseport.c expected.skb_ports[1] = srv_sa.v6.sin6_port; expected 269 tools/testing/selftests/bpf/test_select_reuseport.c expected.eth_protocol = htons(ETH_P_IP); expected 270 tools/testing/selftests/bpf/test_select_reuseport.c expected.bind_inany = !srv_sa.v4.sin_addr.s_addr; expected 272 tools/testing/selftests/bpf/test_select_reuseport.c expected.skb_addrs[0] = cli_sa.v4.sin_addr.s_addr; expected 273 tools/testing/selftests/bpf/test_select_reuseport.c expected.skb_addrs[1] = htonl(INADDR_LOOPBACK); expected 274 tools/testing/selftests/bpf/test_select_reuseport.c expected.skb_ports[0] = cli_sa.v4.sin_port; expected 275 tools/testing/selftests/bpf/test_select_reuseport.c expected.skb_ports[1] = srv_sa.v4.sin_port; expected 278 tools/testing/selftests/bpf/test_select_reuseport.c if (memcmp(&result, &expected, offsetof(struct data_check, expected 285 tools/testing/selftests/bpf/test_select_reuseport.c expected.eth_protocol, expected.ip_protocol, expected 286 tools/testing/selftests/bpf/test_select_reuseport.c expected.bind_inany); expected 294 tools/testing/selftests/bpf/test_select_reuseport.c expected.len += cmd ? sizeof(*cmd) : 0; expected 296 tools/testing/selftests/bpf/test_select_reuseport.c CHECK(expected.len > result.len, "expected.len > result.len", expected 298 tools/testing/selftests/bpf/test_select_reuseport.c expected.len, result.len, get_linum()); expected 300 tools/testing/selftests/bpf/test_select_reuseport.c CHECK(expected.len != result.len, "expected.len != result.len", expected 302 tools/testing/selftests/bpf/test_select_reuseport.c expected.len, result.len, get_linum()); expected 347 tools/testing/selftests/bpf/test_select_reuseport.c enum result expected) expected 361 tools/testing/selftests/bpf/test_select_reuseport.c CHECK(err != len && expected >= PASS, expected 363 tools/testing/selftests/bpf/test_select_reuseport.c family, err, errno, expected); expected 369 tools/testing/selftests/bpf/test_select_reuseport.c enum result expected) expected 377 tools/testing/selftests/bpf/test_select_reuseport.c expected); expected 378 tools/testing/selftests/bpf/test_select_reuseport.c nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); expected 379 tools/testing/selftests/bpf/test_select_reuseport.c CHECK((nev <= 0 && expected >= PASS) || expected 380 tools/testing/selftests/bpf/test_select_reuseport.c (nev > 0 && expected < PASS), expected 383 tools/testing/selftests/bpf/test_select_reuseport.c nev, expected, type, family, expected 389 tools/testing/selftests/bpf/test_select_reuseport.c if (expected < PASS) expected 392 tools/testing/selftests/bpf/test_select_reuseport.c CHECK(expected != PASS_ERR_SK_SELECT_REUSEPORT && expected 19 tools/testing/selftests/bpf/test_tcpbpf_user.c #define EXPECT_EQ(expected, actual, fmt) \ expected 21 tools/testing/selftests/bpf/test_tcpbpf_user.c if ((expected) != (actual)) { \ expected 25 tools/testing/selftests/bpf/test_tcpbpf_user.c (actual), (expected)); \ expected 100 tools/testing/selftests/cgroup/cgroup_util.c const char *expected) expected 107 tools/testing/selftests/cgroup/cgroup_util.c if (!expected) expected 110 tools/testing/selftests/cgroup/cgroup_util.c size = strlen(expected) + 1; expected 121 tools/testing/selftests/cgroup/cgroup_util.c ret = strcmp(expected, buf); expected 27 tools/testing/selftests/cgroup/cgroup_util.h const char *expected); expected 362 tools/testing/selftests/kselftest_harness.h #define ASSERT_EQ(expected, seen) \ expected 363 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, ==, 1) expected 373 tools/testing/selftests/kselftest_harness.h #define ASSERT_NE(expected, seen) \ expected 374 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, !=, 1) expected 384 tools/testing/selftests/kselftest_harness.h #define ASSERT_LT(expected, seen) \ expected 385 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, <, 1) expected 395 tools/testing/selftests/kselftest_harness.h #define ASSERT_LE(expected, seen) \ expected 396 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, <=, 1) expected 406 tools/testing/selftests/kselftest_harness.h #define ASSERT_GT(expected, seen) \ expected 407 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, >, 1) expected 417 tools/testing/selftests/kselftest_harness.h #define ASSERT_GE(expected, seen) \ expected 418 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, >=, 1) expected 458 tools/testing/selftests/kselftest_harness.h #define ASSERT_STREQ(expected, seen) \ expected 459 tools/testing/selftests/kselftest_harness.h __EXPECT_STR(expected, seen, ==, 1) expected 469 tools/testing/selftests/kselftest_harness.h #define ASSERT_STRNE(expected, seen) \ expected 470 tools/testing/selftests/kselftest_harness.h __EXPECT_STR(expected, seen, !=, 1) expected 480 tools/testing/selftests/kselftest_harness.h #define EXPECT_EQ(expected, seen) \ expected 481 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, ==, 0) expected 491 tools/testing/selftests/kselftest_harness.h #define EXPECT_NE(expected, seen) \ expected 492 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, !=, 0) expected 502 tools/testing/selftests/kselftest_harness.h #define EXPECT_LT(expected, seen) \ expected 503 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, <, 0) expected 513 tools/testing/selftests/kselftest_harness.h #define EXPECT_LE(expected, seen) \ expected 514 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, <=, 0) expected 524 tools/testing/selftests/kselftest_harness.h #define EXPECT_GT(expected, seen) \ expected 525 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, >, 0) expected 535 tools/testing/selftests/kselftest_harness.h #define EXPECT_GE(expected, seen) \ expected 536 tools/testing/selftests/kselftest_harness.h __EXPECT(expected, #expected, seen, #seen, >=, 0) expected 576 tools/testing/selftests/kselftest_harness.h #define EXPECT_STREQ(expected, seen) \ expected 577 tools/testing/selftests/kselftest_harness.h __EXPECT_STR(expected, seen, ==, 0) expected 587 tools/testing/selftests/kselftest_harness.h #define EXPECT_STRNE(expected, seen) \ expected 588 tools/testing/selftests/kselftest_harness.h __EXPECT_STR(expected, seen, !=, 0) expected 505 tools/testing/selftests/net/nettest.c static int expected_addr_match(struct sockaddr *sa, void *expected, expected 513 tools/testing/selftests/net/nettest.c struct in_addr *exp_in = (struct in_addr *) expected; expected 524 tools/testing/selftests/net/nettest.c struct in6_addr *exp_in = (struct in6_addr *) expected; expected 274 tools/testing/selftests/net/psock_snd.c static void do_rx(int fd, int expected_len, char *expected) expected 284 tools/testing/selftests/net/psock_snd.c if (memcmp(rbuf, expected, ret)) expected 219 tools/testing/selftests/net/reuseport_bpf.c int epfd, conn, i, sport, expected; expected 267 tools/testing/selftests/net/reuseport_bpf.c expected = (sport % mod); expected 268 tools/testing/selftests/net/reuseport_bpf.c if (i != expected) expected 269 tools/testing/selftests/net/reuseport_bpf.c error(1, 0, "expected socket %d", expected); expected 45 tools/testing/selftests/networking/timestamping/rxtimestamp.c struct tstamps expected; expected 141 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (t->expected.tstamp) expected 143 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (t->expected.tstampns) expected 145 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (t->expected.swtstamp || t->expected.hwtstamp) { expected 147 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (t->expected.swtstamp) expected 149 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (t->expected.swtstamp && t->expected.hwtstamp) expected 151 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (t->expected.hwtstamp) expected 171 tools/testing/selftests/networking/timestamping/rxtimestamp.c bool do_recv(int rcv, int read_size, struct tstamps expected) expected 229 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (expected.field != actual.field) { \ expected 230 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (expected.field) \ expected 318 tools/testing/selftests/networking/timestamping/rxtimestamp.c failed = do_recv(rcv, read_size, t.expected); expected 253 tools/testing/selftests/powerpc/benchmarks/context_switch.c static unsigned long cmpxchg(unsigned long *p, unsigned long expected, expected 256 tools/testing/selftests/powerpc/benchmarks/context_switch.c unsigned long exp = expected; expected 62 tools/testing/selftests/powerpc/copyloops/exc_validate.c unsigned long got, expected; expected 65 tools/testing/selftests/powerpc/copyloops/exc_validate.c expected = test_copy_tofrom_user_reference(dstp, srcp, len); expected 67 tools/testing/selftests/powerpc/copyloops/exc_validate.c if (got != expected) { expected 70 tools/testing/selftests/powerpc/copyloops/exc_validate.c srcp, dstp, len, got, expected); expected 293 tools/testing/selftests/powerpc/mm/tlbie_test.c unsigned int expected, unsigned int observed) expected 298 tools/testing/selftests/powerpc/mm/tlbie_test.c tid, (unsigned long)addr, expected, observed); expected 299 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Expected Thread id = %02d\n", tid, extract_tid(expected)); expected 301 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Expected Word offset = %03d\n", tid, extract_word_offset(expected)); expected 303 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Expected sweep-id = 0x%x\n", tid, extract_sweep_id(expected)); expected 364 tools/testing/selftests/powerpc/mm/tlbie_test.c unsigned int expected; expected 384 tools/testing/selftests/powerpc/mm/tlbie_test.c expected = compute_store_pattern(tid, iter_ptr, expected_sweep_id); expected 389 tools/testing/selftests/powerpc/mm/tlbie_test.c if (observed != expected) { expected 391 tools/testing/selftests/powerpc/mm/tlbie_test.c log_anamoly(tid, iter_ptr, expected, observed); expected 32 tools/testing/selftests/powerpc/pmu/count_instructions.c s64 difference, expected; expected 45 tools/testing/selftests/powerpc/pmu/count_instructions.c expected = instructions + overhead; expected 46 tools/testing/selftests/powerpc/pmu/count_instructions.c difference = events[0].result.value - expected; expected 54 tools/testing/selftests/powerpc/pmu/count_instructions.c printf("Expected %llu\n", expected); expected 25 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c uint64_t val, expected[2], actual; expected 49 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c expected[0] = MMCR2_EXPECTED_1; expected 50 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c expected[1] = MMCR2_EXPECTED_2; expected 58 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c mtspr(SPRN_MMCR2, expected[i % 2]); expected 63 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c if (val != expected[i % 2]) { expected 28 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c int64_t difference, expected; expected 46 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c expected = instructions + overhead; expected 47 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c difference = event->result.value - expected; expected 52 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c printf("Expected %lu\n", expected); expected 18 tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c uint64_t val, expected; expected 22 tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c expected = 0x8000000100000000ull; expected 23 tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c mtspr(SPRN_BESCR, expected); expected 26 tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c FAIL_IF(val != expected); expected 28 tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c expected = 0x0000000001000000ull; expected 29 tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c mtspr(SPRN_EBBHR, expected); expected 32 tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c FAIL_IF(val != expected); expected 24 tools/testing/selftests/powerpc/vphn/test-vphn.c u32 expected[VPHN_ASSOC_BUFSIZE]; expected 374 tools/testing/selftests/powerpc/vphn/test-vphn.c if (len != test->expected[0]) { expected 375 tools/testing/selftests/powerpc/vphn/test-vphn.c printf("expected %d elements, got %d\n", test->expected[0], expected 382 tools/testing/selftests/powerpc/vphn/test-vphn.c if (val != test->expected[i]) { expected 384 tools/testing/selftests/powerpc/vphn/test-vphn.c test->expected[i]); expected 130 tools/testing/selftests/x86/test_syscall_vdso.c uint64_t expected = 0x7f7f7f7f7f7f7f7fULL; expected 136 tools/testing/selftests/x86/test_syscall_vdso.c if (*r64 == expected++) expected 149 tools/testing/vsock/vsock_diag_test.c static void check_num_sockets(struct list_head *head, int expected) expected 157 tools/testing/vsock/vsock_diag_test.c if (n != expected) { expected 159 tools/testing/vsock/vsock_diag_test.c expected, n); expected 529 tools/usb/ffs-test.c __u8 expected; expected 537 tools/usb/ffs-test.c expected = 0; expected 546 tools/usb/ffs-test.c expected = len % 63; expected 559 tools/usb/ffs-test.c len, expected, *p);