| /linux/tools/testing/selftests/bpf/ |
| H A D | test_progs.h | 237 #define ASSERT_TRUE(actual, name) ({ \ 239 bool ___ok = (actual); \ 244 #define ASSERT_FALSE(actual, name) ({ \ 246 bool ___ok = !(actual); \ 251 #define ASSERT_EQ(actual, expected, name) ({ \ 253 typeof(actual) ___act = (actual); \ 257 "unexpected %s: actual %lld != expected %lld\n", \ 262 #define ASSERT_NEQ(actual, expected, name) ({ \ 264 typeof(actual) ___ac 234 ASSERT_TRUE(actual,name) global() argument 241 ASSERT_FALSE(actual,name) global() argument 248 ASSERT_EQ(actual,expected,name) global() argument 259 ASSERT_NEQ(actual,expected,name) global() argument 270 ASSERT_LT(actual,expected,name) global() argument 281 ASSERT_LE(actual,expected,name) global() argument 292 ASSERT_GT(actual,expected,name) global() argument 303 ASSERT_GE(actual,expected,name) global() argument 314 ASSERT_STREQ(actual,expected,name) global() argument 325 ASSERT_STRNEQ(actual,expected,len,name) global() argument 348 ASSERT_MEMEQ(actual,expected,len,name) global() argument [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/drivers/hwtracing/coresight/ |
| H A D | coresight-tmc-core.c | 157 ssize_t actual = len; in tmc_get_resvbuf_trace() local 160 if (pos + actual > rbuf->len) in tmc_get_resvbuf_trace() 161 actual = rbuf->len - pos; in tmc_get_resvbuf_trace() 162 if (actual <= 0) in tmc_get_resvbuf_trace() 171 actual = (actual < (rbuf->size - offset)) ? in tmc_get_resvbuf_trace() 172 actual : rbuf->size - offset; in tmc_get_resvbuf_trace() 176 return actual; in tmc_get_resvbuf_trace() 305 ssize_t actual; in tmc_read() local 308 actual in tmc_read() 377 ssize_t actual; tmc_crashdata_read() local [all...] |
| /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 | 38 static void compare_tsc_freq(u64 actual, u64 expected) in compare_tsc_freq() argument 46 TEST_ASSERT(thresh_low < actual, in compare_tsc_freq() 49 thresh_low, thresh_high, actual); in compare_tsc_freq() 50 TEST_ASSERT(thresh_high > actual, in compare_tsc_freq() 53 thresh_low, thresh_high, actual); in compare_tsc_freq()
|
| /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 | 566 left = req->req.length - req->req.actual; in usbf_ep0_pio_in() 576 if ((req->req.actual % ep0->ep.maxpacket) == 0) { in usbf_ep0_pio_in() 592 buf += req->req.actual; in usbf_ep0_pio_in() 598 req->req.actual += (nb * sizeof(u32)); in usbf_ep0_pio_in() 607 req->req.actual += left; in usbf_ep0_pio_in() 612 req->req.actual, req->req.length); in usbf_ep0_pio_in() 632 buf += req->req.actual; in usbf_ep0_pio_out() 634 left = req->req.length - req->req.actual; in usbf_ep0_pio_out() 652 req->req.actual += (nb * sizeof(u32)); in usbf_ep0_pio_out() 658 req->req.actual += count; in usbf_ep0_pio_out() [all …]
|
| H A D | aspeed_udc.c | 287 req, req->req.actual, req->req.length, in ast_udc_done() 535 last = req->req.length - req->req.actual; in ast_udc_epn_kick() 541 ast_ep_write(ep, req->req.dma + req->req.actual, AST_UDC_EP_DMA_BUFF); in ast_udc_epn_kick() 558 last = req->req.length - req->req.actual; in ast_udc_epn_kick_desc() 563 "dma", req->req.dma + req->req.actual, in ast_udc_epn_kick_desc() 564 req->req.actual, req->req.length, in ast_udc_epn_kick_desc() 567 if (!ast_dma_descriptor_setup(ep, req->req.dma + req->req.actual, in ast_udc_epn_kick_desc() 589 last = req->req.length - req->req.actual; in ast_udc_ep0_queue() 592 ast_udc_write(udc, req->req.dma + req->req.actual, in ast_udc_ep0_queue() 599 "dma", req->req.dma + req->req.actual, in ast_udc_ep0_queue() [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/drivers/gpu/drm/i915/display/ |
| H A D | intel_cdclk.c | 61 * are two main clocks involved that aren't directly related to the actual 62 * pixel clock or any symbol/bit clock of the actual output port. These 135 struct intel_cdclk_config actual; member 600 * Specs are full of misinformation, but testing on actual in vlv_calc_voltage_level() 2689 if (!intel_cdclk_changed(&old_cdclk_state->actual, in intel_cdclk_pcode_pre_notify() 2690 &new_cdclk_state->actual) && in intel_cdclk_pcode_pre_notify() 2698 change_cdclk = new_cdclk_state->actual.cdclk != old_cdclk_state->actual.cdclk; in intel_cdclk_pcode_pre_notify() 2709 cdclk = max(new_cdclk_state->actual.cdclk, old_cdclk_state->actual in intel_cdclk_pcode_pre_notify() [all...] |
| /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/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/drivers/usb/class/ |
| H A D | usbtmc.c | 275 int actual; in usbtmc_ioctl_abort_bulk_in_tag() local 327 actual = 0; in usbtmc_ioctl_abort_bulk_in_tag() 332 &actual, 300); in usbtmc_ioctl_abort_bulk_in_tag() 335 buffer, actual, true); in usbtmc_ioctl_abort_bulk_in_tag() 345 if (actual == USBTMC_BUFSIZE) in usbtmc_ioctl_abort_bulk_in_tag() 723 int actual; in usbtmc488_ioctl_trigger() local 737 &actual, file_data->timeout); in usbtmc488_ioctl_trigger() 1330 int actual; in send_request_dev_dep_msg_in() local 1357 &actual, file_data->timeout); in send_request_dev_dep_msg_in() 1384 int actual; in usbtmc_read() local [all …]
|
| /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.
|