/linux-6.12.1/tools/testing/selftests/net/ |
D | ip_local_port_range.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 28 static void unpack_port_range(__u32 range, __u16 *lo, __u16 *hi) in unpack_port_range() argument 30 *lo = range & 0xffff; in unpack_port_range() 31 *hi = range >> 16; in unpack_port_range() 42 return -1; in get_so_domain() 71 return -1; in bind_to_loopback_any_port() 91 return -1; in get_sock_port() 100 return -1; in get_sock_port() 104 static int get_ip_local_port_range(int fd, __u32 *range) in get_ip_local_port_range() argument 113 return -1; in get_ip_local_port_range() [all …]
|
/linux-6.12.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-6.12.1/tools/testing/selftests/mm/ |
D | uffd-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2023 Red Hat, Inc. 8 #include "uffd-common.h" 15 int uffd = -1, uffd_flags, finished, *pipefd, test_type; 30 mem_fd = memfd_create("uffd-test", memfd_flags); in uffd_mem_fd_create() 52 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in anon_allocate_area() 55 return -errno; in anon_allocate_area() 89 return -errno; in hugetlb_allocate_area() 96 return -errno; in hugetlb_allocate_area() 107 close(mem_fd); in hugetlb_allocate_area() [all …]
|
D | madv_populate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 66 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_read() 84 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_write() 110 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 113 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 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() 142 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated() [all …]
|
D | vm_util.c | 1 // SPDX-License-Identifier: GPL-2.0 70 static int supported = -1; in pagemap_scan_supported() 73 if (supported != -1) in pagemap_scan_supported() 105 return page_entry_is(fd, start, "soft-dirty", in pagemap_is_softdirty() 125 /* If present (63th bit), PFN is at bit 0 -- 54. */ in pagemap_get_pfn() 128 return -1ul; in pagemap_get_pfn() 140 close(fd); in clear_softdirty() 161 if (fd == -1) in read_pmd_pagesize() 166 close(fd); in read_pmd_pagesize() 170 close(fd); in read_pmd_pagesize() [all …]
|
D | gup_longterm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GUP long-term page pinning tests. 54 * R/W long-term pinning. For these filesystems, we can be fairly sure in fs_is_unknown() 121 /* Fault in the page such that GUP-fast can pin it directly. */ in do_test() 129 * long-term R/O pinning by mapping the page R/O. in do_test() 156 * expected to work. Otherwise, we expect long-term R/W pinning in do_test() 182 * TODO: if the kernel ever supports long-term R/W pinning on in do_test() 209 * Register the range as a fixed buffer. This will FOLL_WRITE | in do_test() 210 * FOLL_PIN | FOLL_LONGTERM the range. in do_test() 257 close(fd); in run_with_memfd() [all …]
|
/linux-6.12.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 | 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-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 | 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-6.12.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-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_mod_race.c | 1 // SPDX-License-Identifier: GPL-2.0 17 * checks whether btf_try_get_module handles the invocation for a well-formed 71 return -errno; in test_setup_uffd() 76 close(uffd); in test_setup_uffd() 77 return -1; in test_setup_uffd() 80 uffd_register.range.start = (unsigned long)fault_addr; in test_setup_uffd() 81 uffd_register.range.len = 4096; in test_setup_uffd() 84 close(uffd); in test_setup_uffd() 85 return -1; in test_setup_uffd() 99 fault_addr = mmap(0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in test_bpf_mod_race_config() [all …]
|
/linux-6.12.1/fs/btrfs/ |
D | defrag.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "disk-io.h" 13 #include "delalloc-space.h" 16 #include "file-item.h" 41 * This value is different for compressed/non-compressed extents, thus 51 if (defrag1->root > defrag2->root) in compare_inode_defrag() 53 else if (defrag1->root < defrag2->root) in compare_inode_defrag() 54 return -1; in compare_inode_defrag() 55 else if (defrag1->ino > defrag2->ino) in compare_inode_defrag() 57 else if (defrag1->ino < defrag2->ino) in compare_inode_defrag() [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | userfaultfd_util.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2019-2022 Google LLC 29 int uffd = reader_args->uffd; in uffd_handler_thread_fn() 46 TEST_ASSERT(!epoll_ctl(epollfd, EPOLL_CTL_ADD, reader_args->pipe, &evt), in uffd_handler_thread_fn() 54 r = epoll_wait(epollfd, &evt, 1, -1); in uffd_handler_thread_fn() 64 r = read(reader_args->pipe, &tmp_chr, 1); in uffd_handler_thread_fn() 74 if (r == -1) { in uffd_handler_thread_fn() 86 if (reader_args->delay) in uffd_handler_thread_fn() 87 usleep(reader_args->delay); in uffd_handler_thread_fn() 88 r = reader_args->handler(reader_args->uffd_mode, uffd, &msg); in uffd_handler_thread_fn() [all …]
|
/linux-6.12.1/drivers/rtc/ |
D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include "rtc-core.h" 28 struct timerqueue_head *head = &rtc->timerqueue; in rtc_device_release() 31 mutex_lock(&rtc->ops_lock); in rtc_device_release() 34 mutex_unlock(&rtc->ops_lock); in rtc_device_release() 36 cancel_work_sync(&rtc->irqwork); in rtc_device_release() 38 ida_free(&rtc_ida, rtc->id); in rtc_device_release() 39 mutex_destroy(&rtc->ops_lock); in rtc_device_release() 45 int rtc_hctosys_ret = -ENODEV; 48 * whether it stores the most close value or the value with partial [all …]
|
/linux-6.12.1/Documentation/admin-guide/cifs/ |
D | todo.rst | 24 perhaps addition of new optional SMB3.1.1 fsctls to make collapse range 25 and insert range more atomic 34 open/query/close and open/setinfo/close) to reduce the number of 38 significantly reduce redundant opens by using deferred close (with 52 i) Add support for tree connect contexts (see MS-SMB2) a new SMB3.1.1 protocol 62 directly from user space) Add tools to make setting various non-POSIX 64 in smb-info tool). 98 x) Support for additional authentication options (e.g. IAKERB, peer-to-peer 107 See https://bugzilla.samba.org - search on product "CifsVFS" for 109 and xfstest results e.g. https://wiki.samba.org/index.php/Xfstest-results-smb3 [all …]
|
/linux-6.12.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-6.12.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" 33 #include "util/bpf-filter.h" 37 #include "util/intel-tpebs.h" 43 #include "parse-events.h" 44 #include <subcmd/parse-options.h> 70 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y)) 71 #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y) 76 perf_evlist__init(&evlist->core); in evlist__init() [all …]
|
/linux-6.12.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-6.12.1/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 1 // SPDX-License-Identifier: GPL-2.0 178 return -1; in write_file() 181 close(fd); in write_file() 183 return -1; in write_file() 198 return -1; in create_and_enter_userns() 200 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 202 return -1; in create_and_enter_userns() 206 return -1; in create_and_enter_userns() 211 return -1; in create_and_enter_userns() 214 return -1; in create_and_enter_userns() [all …]
|
/linux-6.12.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-6.12.1/fs/smb/client/ |
D | fs_context.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 231 bool nobrl:1; /* disable sending byte range locks to srv */ 233 bool mand_lock:1; /* send mandatory not posix byte range lock reqs */ 266 /* timeout for deferred close of files in jiffies */ 298 return fc->fs_private; in smb3_fc2context() 305 * max deferred close timeout (jiffies) - 2^30 308 #define SMB3_DEF_DCLOSETIMEO (1 * HZ) /* even 1 sec enough to help eg open/write/close/open/read */
|
/linux-6.12.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-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | power.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 13 * enum iwl_ltr_config_flags - masks for LTR config command flags 39 * struct iwl_ltr_config_cmd_v1 - configures the LTR 53 * struct iwl_ltr_config_cmd - configures the LTR 77 * enum iwl_power_flags - masks for power table command flags 79 * receiver and transmitter. '0' - does not allow. 107 * struct iwl_powertable_cmd - legacy power command. Beside old API support this [all …]
|
/linux-6.12.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)
|