| /Linux-v6.1/tools/testing/selftests/powerpc/ptrace/ |
| D | ptrace-perf-hwbreak.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 /* Overlapping address range */ 21 /* Non-overlapping address range */ 38 while (getline(&line, &len, fp) != -1) { in pid_max_addr() 51 return -1; in pid_max_addr() 57 attr->type = PERF_TYPE_BREAKPOINT; in perf_user_event_attr_set() 58 attr->size = sizeof(struct perf_event_attr); in perf_user_event_attr_set() 59 attr->bp_type = HW_BREAKPOINT_R; in perf_user_event_attr_set() 60 attr->bp_addr = addr; in perf_user_event_attr_set() 61 attr->bp_len = len; in perf_user_event_attr_set() [all …]
|
| /Linux-v6.1/tools/testing/selftests/drivers/sdsi/ |
| D | sdsi_test.py | 2 # SPDX-License-Identifier: GPL-2.0 43 result = subprocess.check_output(('grep', '-q', MODULE_NAME), stdin=lsmod_p.stdout) 45 @pytest.mark.parametrize('socket', range(0, NUM_SOCKETS)) 126 f.close() 133 f.close() 139 # file is none-zero and the same as the value read 147 f.close() 149 @pytest.mark.parametrize('socket', range(0, NUM_SOCKETS)) 163 f.close() 165 @pytest.mark.parametrize('socket', range(0, NUM_SOCKETS)) [all …]
|
| /Linux-v6.1/tools/testing/selftests/vm/ |
| D | madv_populate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 74 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_read() 92 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_write() 118 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 121 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 126 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 129 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 134 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 137 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 150 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated() [all …]
|
| D | userfaultfd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * 1) one per-CPU thread takes a per-page pthread_mutex in a random 15 * area_src), and increments a per-page counter in the same page, 18 * 2) another per-CPU thread handles the userfaults generated by 22 * 3) one last per-CPU thread transfers the memory in the background 32 * per-CPU threads 1 by triggering userfaults inside 92 /* Whether to test uffd write-protection */ 101 static int uffd = -1; 121 * to avoid non alignment faults on non-x86 archs. 127 sizeof(unsigned long long) - 1) & \ [all …]
|
| /Linux-v6.1/Documentation/userspace-api/media/v4l/ |
| D | libv4l-introduction.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _libv4l-introduction: 17 :ref:`v4l2grab <v4l2grab-example>`. 28 :ref:`V4L2_PIX_FMT_BGR24 <V4L2-PIX-FMT-BGR24>`, 29 :ref:`V4L2_PIX_FMT_NV12_16L16 <V4L2-PIX-FMT-NV12-16L16>`, 30 :ref:`V4L2_PIX_FMT_JPEG <V4L2-PIX-FMT-JPEG>`, 31 :ref:`V4L2_PIX_FMT_MJPEG <V4L2-PIX-FMT-MJPEG>`, 32 :ref:`V4L2_PIX_FMT_MR97310A <V4L2-PIX-FMT-MR97310A>`, 33 :ref:`V4L2_PIX_FMT_OV511 <V4L2-PIX-FMT-OV511>`, 34 :ref:`V4L2_PIX_FMT_OV518 <V4L2-PIX-FMT-OV518>`, [all …]
|
| D | ext-ctrls-camera.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _camera-controls: 13 .. _camera-control-id: 23 .. _v4l2-exposure-auto-type: 28 enum v4l2_exposure_auto_type - 37 .. flat-table:: 38 :header-rows: 0 39 :stub-columns: 0 41 * - ``V4L2_EXPOSURE_AUTO`` 42 - Automatic exposure time, automatic iris aperture. [all …]
|
| D | vidioc-expbuf.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_EXPBUF - Export a buffer as a DMABUF file descriptor. 45 range from zero to the number of buffers allocated with 48 one. For the multi-planar API, applications set the ``plane`` field to 49 the index of the plane to be exported. Valid planes range from zero to 51 the single-planar API, applications must set ``plane`` to zero. 55 case of multi-planar API, every plane is exported separately using 60 other DMABUF-aware devices. Refer to :ref:`DMABUF importing <dmabuf>` 62 recommended to close a DMABUF file when it is no longer used to allow 68 .. code-block:: c [all …]
|
| D | ext-ctrls-rf-tuner.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _rf-tuner-controls: 16 called Zero-IF tuners. Older tuners were typically simple PLL tuners 28 .. _rf-tuner-control-id: 47 range and step are driver-specific. 64 range and step are driver-specific. 68 signal path. It is located very close to tuner antenna input. Used 71 differs from the each others. The range and step are 72 driver-specific. 76 located inside mixer block, where RF signal is down-converted by the [all …]
|
| /Linux-v6.1/drivers/media/platform/st/sti/delta/ |
| D | delta-ipc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 * delta_ipc_open - open a decoding instance on firmware side 43 * delta_ipc_set_stream - set information about stream to decoder 48 * within IPC shared buffer range 53 * delta_ipc_decode - frame decoding synchronous request, returns only 59 * within IPC shared buffer range 63 * within IPC shared buffer range. 71 * delta_ipc_close - close decoding instance 72 * @hdl: (in) handle of decoding instance to close.
|
| /Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
| D | bpf_mod_race.c | 1 // SPDX-License-Identifier: GPL-2.0 16 * checks whether btf_try_get_module handles the invocation for a well-formed 66 close(fd); in load_module() 95 return -errno; in test_setup_uffd() 100 close(uffd); in test_setup_uffd() 101 return -1; in test_setup_uffd() 104 uffd_register.range.start = (unsigned long)fault_addr; in test_setup_uffd() 105 uffd_register.range.len = 4096; in test_setup_uffd() 108 close(uffd); in test_setup_uffd() 109 return -1; in test_setup_uffd() [all …]
|
| /Linux-v6.1/drivers/rtc/ |
| D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include "rtc-core.h" 29 struct timerqueue_head *head = &rtc->timerqueue; in rtc_device_release() 32 mutex_lock(&rtc->ops_lock); in rtc_device_release() 35 mutex_unlock(&rtc->ops_lock); in rtc_device_release() 37 cancel_work_sync(&rtc->irqwork); in rtc_device_release() 39 ida_free(&rtc_ida, rtc->id); in rtc_device_release() 40 mutex_destroy(&rtc->ops_lock); in rtc_device_release() 46 int rtc_hctosys_ret = -ENODEV; 49 * whether it stores the most close value or the value with partial [all …]
|
| /Linux-v6.1/tools/perf/util/ |
| D | evlist.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Parts came from builtin-{top,stat,record}.c, see those files for further 26 #include "bpf-event.h" 30 #include "util/evlist-hybrid.h" 37 #include "parse-events.h" 38 #include <subcmd/parse-options.h> 64 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y)) 65 #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y) 70 perf_evlist__init(&evlist->core); in evlist__init() 71 perf_evlist__set_maps(&evlist->core, cpus, threads); in evlist__init() [all …]
|
| /Linux-v6.1/tools/testing/selftests/tc-testing/ |
| D | tdc_batch.py | 4 tdc_batch.py - a script to generate TC batch file 14 parser.add_argument("-n", "--number", type=int, 17 "-a", 18 "--handle_start", 21 help="start handle range from (default: 1)") 22 parser.add_argument("-o", "--skip_sw", 25 parser.add_argument("-s", "--share_action", 28 parser.add_argument("-p", "--prio", 32 "-e", 33 "--operation", [all …]
|
| /Linux-v6.1/arch/x86/events/intel/ |
| D | pt.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (c) 2013-2014, Intel Corporation. 8 * http://software.intel.com/en-us/intel-isa-extensions 15 * Single-entry ToPA: when this close to region boundary, switch 54 * struct pt_buffer - buffer configuration; one buffer per task_struct or 67 * @single: use Single Range Output instead of ToPA 93 * struct pt_filter - IP range filter configuration 94 * @msr_a: range start, goes to RTIT_ADDRn_A 95 * @msr_b: range end, goes to RTIT_ADDRn_B 96 * @config: 4-bit field in RTIT_CTL [all …]
|
| /Linux-v6.1/tools/testing/selftests/mount_setattr/ |
| D | mount_setattr_test.c | 1 // SPDX-License-Identifier: GPL-2.0 184 return -1; in write_file() 187 close(fd); in write_file() 189 return -1; in write_file() 204 return -1; in create_and_enter_userns() 206 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 208 return -1; in create_and_enter_userns() 212 return -1; in create_and_enter_userns() 217 return -1; in create_and_enter_userns() 220 return -1; in create_and_enter_userns() [all …]
|
| /Linux-v6.1/drivers/clk/ |
| D | clk-tps68470.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/clk-provider.h> 26 #define TPS68470_CLK_NAME "tps68470-clk" 41 * frequency range of 3 MHz to 27 MHz by a programmable 43 * available at the HCLK_A or HCLK_B pins are in the range 48 * PLL_REF_CLK should be as close as possible to 100kHz 53 * BOOST should be as close as possible to 2Mhz 56 * BUCK should be as close as possible to 5.2Mhz 80 if (regmap_read(clkdata->regmap, TPS68470_REG_PLLCTL, &val)) in tps68470_clk_is_prepared() 90 regmap_write(clkdata->regmap, TPS68470_REG_CLKCFG1, in tps68470_clk_prepare() [all …]
|
| /Linux-v6.1/tools/testing/selftests/resctrl/ |
| D | cat_test.c | 1 // SPDX-License-Identifier: GPL-2.0 42 if (p->num_of_runs >= NUM_OF_RUNS) in cat_setup() 43 return -1; in cat_setup() 45 if (p->num_of_runs == 0) { in cat_setup() 46 sprintf(schemata, "%lx", p->mask); in cat_setup() 47 ret = write_schemata(p->ctrlgrp, schemata, p->cpu_no, in cat_setup() 48 p->resctrl_val); in cat_setup() 50 p->num_of_runs++; in cat_setup() 63 fp = fopen(param->filename, "r"); in check_results() 88 no_of_bits = count_bits(param->mask); in check_results() [all …]
|
| /Linux-v6.1/tools/testing/selftests/bpf/progs/ |
| D | pyperf600.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * program size close to 298k insns and this may 6 * cause BPF_JMP insn out of 16-bit integer range.
|
| /Linux-v6.1/drivers/mmc/core/ |
| D | regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 19 * mmc_ocrbitnum_to_vdd - Convert a OCR bit number to its voltage 24 * This function returns the voltage range according to the provided OCR 32 return -EINVAL; in mmc_ocrbitnum_to_vdd() 38 * a 0.1V range goof (it's a small error percentage). in mmc_ocrbitnum_to_vdd() 40 tmp = vdd_bit - ilog2(MMC_VDD_165_195); in mmc_ocrbitnum_to_vdd() 53 * mmc_regulator_get_ocrmask - return mask of supported voltages 95 * mmc_regulator_set_ocr - set regulator to match host->ios voltage 98 * @vdd_bit: zero for power off, else a bit number (host->ios.vdd) 117 if (result == 0 && !mmc->regulator_enabled) { in mmc_regulator_set_ocr() [all …]
|
| /Linux-v6.1/drivers/hv/ |
| D | channel.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 * hv_gpadl_size - Return the real size of a gpadl, the size that Hyper-V uses 29 * For BUFFER gpadl, Hyper-V uses the exact same size as the guest does. 34 * (PAGE_SIZE - HV_HYP_PAGE_SIZE) gap. And since there are two rings in a 35 * ringbuffer, the total size for a RING gpadl that Hyper-V uses is the 44 /* The size of a ringbuffer must be page-aligned */ in hv_gpadl_size() 50 * the first guest-size page of each of the two ring buffers. in hv_gpadl_size() 51 * So we effectively subtract out two guest-size pages, and add in hv_gpadl_size() 52 * back two Hyper-V size pages. in hv_gpadl_size() 54 return size - 2 * (PAGE_SIZE - HV_HYP_PAGE_SIZE); in hv_gpadl_size() [all …]
|
| /Linux-v6.1/Documentation/ABI/testing/ |
| D | sysfs-bus-iio-proximity | 4 Contact: linux-iio@vger.kernel.org 8 considered close to the device. If the value read from the 15 Contact: linux-iio@vger.kernel.org 22 * as3935 (0-31 range)
|
| /Linux-v6.1/tools/testing/selftests/net/ |
| D | msg_zerocopy.c | 7 * - SOCK_STREAM 8 * - SOCK_DGRAM 9 * - SOCK_DGRAM with UDP_CORK 10 * - SOCK_RAW 11 * - SOCK_RAW with IP_HDRINCL 14 * - SOCK_DGRAM 15 * - SOCK_RAW 18 * - SOCK_SEQPACKET 21 * the other with option '-r' to put it in receiver mode. 23 * If zerocopy mode ('-z') is enabled, the sender will verify that [all …]
|
| /Linux-v6.1/include/uapi/linux/ |
| D | blkzoned.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 23 * enum blk_zone_type - Types of zones allowed in a zoned device. 28 * @BLK_ZONE_TYPE_SEQWRITE_PREF: The zone can be written non-sequentially 39 * enum blk_zone_cond - Condition [state] of a zone in a zoned device. 49 * @BLK_ZONE_COND_READONLY: The zone is read-only. 54 * - ZC1: Empty | BLK_ZONE_EMPTY 55 * - ZC2: Implicit Open | BLK_ZONE_COND_IMP_OPEN 56 * - ZC3: Explicit Open | BLK_ZONE_COND_EXP_OPEN 57 * - ZC4: Closed | BLK_ZONE_CLOSED 58 * - ZC5: Full | BLK_ZONE_FULL [all …]
|
| /Linux-v6.1/Documentation/userspace-api/ |
| D | vduse.rst | 2 VDUSE - "vDPA Device in Userspace" 9 possible to implement software-emulated vDPA devices in userspace. And 21 ---------------------------- 41 2. Close the file descriptor referring to /dev/vduse/$NAME. 49 .. code-block:: c 59 return -ENOMEM; 92 return -1; 96 --------------- 104 add per-virtqueue configuration such as the max size of virtqueue to the device. 111 .. code-block:: c [all …]
|
| /Linux-v6.1/fs/cifs/ |
| D | fs_context.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 217 bool nobrl:1; /* disable sending byte range locks to srv */ 219 bool mand_lock:1; /* send mandatory not posix byte range lock reqs */ 251 /* timeout for deferred close of files in jiffies */ 279 return fc->fs_private; in smb3_fc2context() 286 * max deferred close timeout (jiffies) - 2^30
|