| /linux/tools/testing/selftests/bpf/ |
| H A D | test_progs.h | 238 #define ASSERT_TRUE(actual, name) ({ \ argument 240 bool ___ok = (actual); \ 245 #define ASSERT_FALSE(actual, name) ({ \ argument 247 bool ___ok = !(actual); \ 252 #define ASSERT_EQ(actual, expected, name) ({ \ argument 254 typeof(actual) ___act = (actual); \ 263 #define ASSERT_NEQ(actual, expected, name) ({ \ argument 265 typeof(actual) ___act = (actual); \ 274 #define ASSERT_LT(actual, expected, name) ({ \ argument 276 typeof(actual) ___act = (actual); \ [all …]
|
| /linux/drivers/cpufreq/ |
| H A D | amd_freq_sensitivity.c | 31 u64 actual; member 44 struct msr actual, reference; in amd_powersave_bias_target() local 53 rdmsrq_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, &actual.q); in amd_powersave_bias_target() 55 actual.h &= 0x00ffffff; in amd_powersave_bias_target() 59 if (actual.q < data->actual || reference.q < data->reference) { in amd_powersave_bias_target() 64 d_actual = actual.q - data->actual; in amd_powersave_bias_target() 101 data->actual = actual.q; in amd_powersave_bias_target()
|
| /linux/tools/testing/selftests/bpf/libarena/src/ |
| H A D | bitmap.bpf.c | 60 u64 old, new, actual; in bmp_test_and_clear_bit() local 69 actual = cmpxchg(&bmp->bits[idx], old, new); in bmp_test_and_clear_bit() 71 if (actual == old) in bmp_test_and_clear_bit() 84 u64 old, new, actual; in bmp_test_and_set_bit() local 93 actual = cmpxchg(&bmp->bits[idx], old, new); in bmp_test_and_set_bit() 95 if (actual == old) in bmp_test_and_set_bit() 108 u64 old, new, actual; in bmp_clear_bit() local 113 actual = cmpxchg(&bmp->bits[idx], old, new); in bmp_clear_bit() 115 } while (actual != old && can_loop); in bmp_clear_bit() 123 u64 old, new, actual; in bmp_set_bit() local [all …]
|
| /linux/include/linux/ |
| H A D | bcm963xx_nvram.h | 85 u32 expected, actual; in bcm963xx_nvram_checksum() local 97 actual = crc32_le(~0, nvram, len - sizeof(u32)); in bcm963xx_nvram_checksum() 98 actual = crc32_le(actual, &zero, sizeof(u32)); in bcm963xx_nvram_checksum() 104 *actual_out = actual; in bcm963xx_nvram_checksum() 106 return expected == actual ? 0 : -EINVAL; in bcm963xx_nvram_checksum()
|
| /linux/tools/power/acpi/tools/acpidump/ |
| H A D | apfiles.c | 109 acpi_size actual; in ap_write_to_binary_file() local 154 actual = fwrite(table, 1, table_length, file); in ap_write_to_binary_file() 155 if (actual != table_length) { in ap_write_to_binary_file() 185 acpi_size actual; in ap_get_table_from_file() local 216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file() 217 if (actual != file_size) { in ap_get_table_from_file()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | hwcr_msr_test.c | 16 u64 actual; in test_hwcr_bit() 30 actual = vcpu_get_msr(vcpu, MSR_K7_HWCR); in test_hwcr_bit() 31 TEST_ASSERT(actual == (val & valid), in test_hwcr_bit() 33 bit, actual, (val & valid)); in main() 17 u64 actual; test_hwcr_bit() local
|
| H A D | nested_tsc_scaling_test.c | 31 * This function checks whether the "actual" TSC frequency of a guest matches 33 * measurements, a difference of 1% between the actual and the expected value 36 static void compare_tsc_freq(u64 actual, u64 expected) 44 TEST_ASSERT(thresh_low < actual, in compare_tsc_freq() 47 thresh_low, thresh_high, actual); in compare_tsc_freq() 48 TEST_ASSERT(thresh_high > actual, in compare_tsc_freq() 51 thresh_low, thresh_high, actual); in compare_tsc_freq() 38 compare_tsc_freq(u64 actual,u64 expected) compare_tsc_freq() argument
|
| /linux/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A D | cycles_with_mmcr2_test.c | 25 uint64_t val, expected[2], actual; in cycles_with_mmcr2() local 53 actual = 0; in cycles_with_mmcr2() 66 actual = val; in cycles_with_mmcr2() 82 printf("Bad MMCR2 value seen is 0x%lx\n", actual); in cycles_with_mmcr2()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | renesas_usbf.c | 565 left = req->req.length - req->req.actual; in usbf_ep0_pio_in() 575 if ((req->req.actual % ep0->ep.maxpacket) == 0) { in usbf_ep0_pio_in() 591 buf += req->req.actual; in usbf_ep0_pio_in() 597 req->req.actual += (nb * sizeof(u32)); in usbf_ep0_pio_in() 606 req->req.actual += left; in usbf_ep0_pio_in() 611 req->req.actual, req->req.length); in usbf_ep0_pio_in() 631 buf += req->req.actual; in usbf_ep0_pio_out() 633 left = req->req.length - req->req.actual; in usbf_ep0_pio_out() 651 req->req.actual += (nb * sizeof(u32)); in usbf_ep0_pio_out() 657 req->req.actual += count; in usbf_ep0_pio_out() [all …]
|
| H A D | udc-xilinx.c | 384 src = req->usb_req.dma + req->usb_req.actual; in xudc_dma_send() 438 dst = req->usb_req.dma + req->usb_req.actual; in xudc_dma_receive() 611 buf = req->usb_req.buf + req->usb_req.actual; in xudc_read_fifo() 613 bufferspace = req->usb_req.length - req->usb_req.actual; in xudc_read_fifo() 633 req->usb_req.actual += min(count, bufferspace); in xudc_read_fifo() 636 req->usb_req.actual, req->usb_req.length); in xudc_read_fifo() 639 if ((req->usb_req.actual == req->usb_req.length) || is_short) { in xudc_read_fifo() 643 req->usb_req.actual, in xudc_read_fifo() 687 buf = req->usb_req.buf + req->usb_req.actual; in xudc_write_fifo() 689 length = req->usb_req.length - req->usb_req.actual; in xudc_write_fifo() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | ehci-timer.c | 97 unsigned actual, want; in ehci_poll_ASS() local 104 actual = ehci_readl(ehci, &ehci->regs->status) & STS_ASS; in ehci_poll_ASS() 106 if (want != actual) { in ehci_poll_ASS() 114 want, actual); in ehci_poll_ASS() 143 unsigned actual, want; in ehci_poll_PSS() local 150 actual = ehci_readl(ehci, &ehci->regs->status) & STS_PSS; in ehci_poll_PSS() 152 if (want != actual) { in ehci_poll_PSS() 160 want, actual); in ehci_poll_PSS()
|
| /linux/tools/testing/selftests/ftrace/test.d/trigger/ |
| H A D | trigger-hist-expressions.tc | 24 actual=`grep -o 'x=[[:digit:]]*' $trigger | awk -F= '{ print $2 }'` 26 if [ $actual != $3 ]; then 27 … fail "Failed hist trigger expression evaluation: Expression: $2 Expected: $3, Actual: $actual"
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_cdclk.c | 135 struct intel_cdclk_config actual; member 2734 if (!intel_cdclk_changed(&old_cdclk_state->actual, in intel_cdclk_pcode_pre_notify() 2735 &new_cdclk_state->actual) && in intel_cdclk_pcode_pre_notify() 2743 change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; in intel_cdclk_pcode_pre_notify() 2754 cdclk = max(new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk); in intel_cdclk_pcode_pre_notify() 2780 voltage_level = new_cdclk_state->actual.voltage_level; in intel_cdclk_pcode_post_notify() 2782 update_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; in intel_cdclk_pcode_post_notify() 2791 cdclk = new_cdclk_state->actual.cdclk; in intel_cdclk_pcode_post_notify() 2814 new_cdclk_state->actual.cdclk < old_cdclk_state->actual.cdclk; in intel_cdclk_is_decreasing_later() 2838 if (!intel_cdclk_changed(&old_cdclk_state->actual, in intel_set_cdclk_pre_plane_update() [all …]
|
| /linux/drivers/usb/renesas_usbhs/ |
| H A D | fifo.c | 79 pkt->actual = 0; in usbhs_pkt_push() 423 pkt->actual = pkt->length; in usbhs_dcp_dir_switch_done() 535 buf = pkt->buf + pkt->actual; in usbhsf_pio_try_push() 536 len = pkt->length - pkt->actual; in usbhsf_pio_try_push() 564 pkt->actual += total_len; in usbhsf_pio_try_push() 566 if (pkt->actual < pkt->length) in usbhsf_pio_try_push() 585 pkt->length, pkt->actual, *is_done, pkt->zero); in usbhsf_pio_try_push() 673 buf = pkt->buf + pkt->actual; in usbhsf_pio_try_pop() 674 len = pkt->length - pkt->actual; in usbhsf_pio_try_pop() 683 pkt->actual += total_len; in usbhsf_pio_try_pop() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | musb_gadget.c | 253 (int)(request->length - request->actual)); in txstate() 277 request_size = min_t(size_t, request->length - request->actual, in txstate() 293 request->dma + request->actual, request_size); in txstate() 361 request->dma + request->actual, in txstate() 374 request->dma + request->actual, in txstate() 387 (u8 *) (request->buf + request->actual)); in txstate() 388 request->actual += fifo_count; in txstate() 397 request->actual, request->length, in txstate() 466 request->actual += musb_ep->dma->actual_len; in musb_g_tx() 477 && (request->actual == request->length)) { in musb_g_tx() [all …]
|
| /linux/tools/testing/selftests/powerpc/dexcr/ |
| H A D | lsdexcr.c | 77 bool actual = effective & DEXCR_PR_BIT(aspect->index); in print_aspect_config() local 78 bool expected = actual; /* Assume it's fine if we don't expect a specific set/clear value */ in print_aspect_config() 80 if (actual) in print_aspect_config() 125 if (actual != expected) in print_aspect_config()
|
| /linux/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | ep0.c | 191 req->req.actual, req->req.length); in ast_vhub_ep0_do_send() 202 chunk = req->req.length - req->req.actual; in ast_vhub_ep0_do_send() 209 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket); in ast_vhub_ep0_do_send() 216 memcpy(ep->buf, req->req.buf + req->req.actual, chunk); in ast_vhub_ep0_do_send() 224 req->req.actual += chunk; in ast_vhub_ep0_do_send() 242 remain = req->req.length - req->req.actual; in ast_vhub_ep0_do_receive() 261 memcpy(req->req.buf + req->req.actual, ep->buf, len); in ast_vhub_ep0_do_receive() 262 req->req.actual += len; in ast_vhub_ep0_do_receive() 399 u_req->actual = 0; in ast_vhub_ep0_queue()
|
| /linux/lib/tests/ |
| H A D | ffs_kunit.c | 103 int actual, int expected, const char *func_name, in validate_ffs_result() argument 106 KUNIT_EXPECT_EQ_MSG(test, actual, expected, in validate_ffs_result() 108 func_name, input, description, expected, actual); in validate_ffs_result() 115 int actual, int expected, const char *func_name, in validate_ffs64_result() argument 118 KUNIT_EXPECT_EQ_MSG(test, actual, expected, in validate_ffs64_result() 120 func_name, input, description, expected, actual); in validate_ffs64_result()
|
| /linux/tools/testing/selftests/net/ |
| H A D | rxtimestamp.c | 198 struct tstamps actual = {}; in do_recv() local 232 actual.tstamp = true; in do_recv() 235 actual.tstampns = true; in do_recv() 239 actual.swtstamp = !!ts->ts[0].tv_sec; in do_recv() 242 actual.hwtstamp = !!ts->ts[2].tv_sec; in do_recv() 251 if (expected.field != actual.field) { \ in do_recv()
|
| /linux/tools/usb/ffs-aio-example/multibuff/device_app/ |
| H A D | aio_multibuff.c | 248 int actual = 0; in main() local 363 iobuf[actual].requested -= ret; in main() 366 if (!iobuf[actual].requested) in main() 367 actual = (actual + 1)%(sizeof(iobuf)/sizeof(*iobuf)); in main()
|
| /linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
| H A D | func_set_ftrace_file.tc | 125 cat set_ftrace_filter | grep -v '#' | cut -d' ' -f1 | cut -d':' -f1 | sort -u > $TMPDIR/actual 126 DIFF=`diff $TMPDIR/actual $TMPDIR/expected` 159 rm $TMPDIR/actual
|
| H A D | func-filter-glob.tc | 13 cut -f1 -d" " set_ftrace_filter > $TMPDIR/actual 15 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
|
| /linux/tools/testing/selftests/mm/ |
| H A D | hugetlb_reparenting_test.sh | 80 local actual 85 actual="$(cat "$actual_path")" 87 if [[ $actual -ge $(($expected - $tolerance)) ]] && 88 [[ $actual -le $(($expected + $tolerance)) ]]; then 96 echo "actual = $((${actual%% *} / 1024 / 1024)) MB"
|
| /linux/Documentation/ABI/removed/ |
| H A D | sysfs-selinux-checkreqprot | 12 calls instead of the actual protection applied by the kernel. 18 actual protection), and Android and Linux distributions have been 23 check the actual protections being applied upon mmap/mprotect calls.
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-net-janz-ican3 | 9 Reading: get actual termination state 10 Writing: set actual termination state (0=no termination, 1=termination active)
|