Home
last modified time | relevance | path

Searched +full:close +full:- +full:range (Results 1 – 25 of 598) sorted by relevance

12345678910>>...24

/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c1 // 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/tools/testing/selftests/mm/
H A Dmadv_populate.c1 // 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 …]
H A Duffd-common.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2015-2023 Red Hat, Inc.
8 #include "uffd-common.h"
18 return (pthread_mutex_t *) (area + nr * gopts->page_size); in area_mutex()
23 * to avoid non alignment faults on non-x86 archs.
29 ((unsigned long)(area + nr * gopts->page_size + in area_count()
30 sizeof(pthread_mutex_t) + sizeof(unsigned long long) - 1) & in area_count()
31 ~(unsigned long)(sizeof(unsigned long long) - 1)); in area_count()
41 mem_fd = memfd_create("uffd-test", memfd_flags); in uffd_mem_fd_create()
56 if (madvise(rel_area, gopts->nr_pages * gopts->page_size, MADV_DONTNEED)) in anon_release_pages()
[all …]
H A Dvm_util.c1 // SPDX-License-Identifier: GPL-2.0
72 static int supported = -1; in pagemap_scan_supported()
75 if (supported != -1) in pagemap_scan_supported()
107 return page_entry_is(fd, start, "soft-dirty", in pagemap_is_softdirty()
127 /* If present (63th bit), PFN is at bit 0 -- 54. */ in pagemap_get_pfn()
130 return -1ul; in pagemap_get_pfn()
142 close(fd); in clear_softdirty()
163 if (fd == -1) in read_pmd_pagesize()
168 close(fd); in read_pmd_pagesize()
172 close(fd); in read_pmd_pagesize()
[all …]
H A Dsplit_huge_page_test.c1 // SPDX-License-Identifier: GPL-2.0
3 * A test of splitting PMD THPs and PTE-mapped THPs from a specified virtual
4 * address range in a process via <debugfs>/split_huge_pages interface.
58 if (pfn == -1UL) in is_backed_by_folio()
64 /* check for order-0 pages */ in is_backed_by_folio()
75 pfn_head = pfn & ~(nr_pages - 1); in is_backed_by_folio()
113 /* non-present PFN */ in vaddr_pageflags_get()
114 if (pfn == -1UL) in vaddr_pageflags_get()
118 return -1; in vaddr_pageflags_get()
124 * gather_after_split_folio_orders - scan through [vaddr_start, len) and record
[all …]
H A Dguard-regions.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <asm-generic/mman.h> /* Force the import of the tools version. */
76 switch (variant->backing) { in is_anon_backed()
93 switch (variant->backing) { in mmap_()
96 fd = -1; in mmap_()
101 fd = self->fd; in mmap_()
265 self->page_size = (unsigned long)sysconf(_SC_PAGESIZE); in FIXTURE_SETUP()
268 switch (variant->backing) { in FIXTURE_SETUP()
272 self->fd = open_file("", self->path); in FIXTURE_SETUP()
275 self->fd = memfd_create(self->path, 0); in FIXTURE_SETUP()
[all …]
/linux/tools/testing/selftests/drivers/sdsi/
H A Dsdsi_test.py2 # 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/Documentation/userspace-api/media/v4l/
H A Dlibv4l-introduction.rst1 .. 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 …]
H A Dvidioc-expbuf.rst1 .. 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 …]
H A Dext-ctrls-camera.rst1 .. 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 …]
H A Dext-ctrls-rf-tuner.rst1 .. 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/drivers/media/platform/st/sti/delta/
H A Ddelta-ipc.h1 /* 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/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_mod_race.c1 // 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 = getpagesize(); 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/fs/btrfs/
H A Ddefrag.c1 // 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/kernel/rcu/
H A DKconfig.debug1 # SPDX-License-Identifier: GPL-2.0-only
3 # RCU-related debugging configuration options
19 false-positive splats, we keep it default disabled but once all
63 Note that PREEMPT_COUNT must be enabled if the preempt-disabled
64 and bh-disabled checks are to take effect, and that PREEMPT_RCU
65 must be enabled for the RCU-nesting checks to take effect.
78 log of failure/close-call rcutorture reader segments with the
81 overhead, overhead that can make both failures and close calls
88 bool "Log grace-period numbers for rcutorture failures"
93 log of failure/close-call rcutorture reader segments with the
[all …]
/linux/drivers/rtc/
H A Dclass.c1 // 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/Documentation/admin-guide/cifs/
H A Dtodo.rst24 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/tools/perf/util/
H A Devlist.c1 // 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"
45 #include "parse-events.h"
46 #include <subcmd/parse-options.h>
73 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
74 #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y)
79 perf_evlist__init(&evlist->core); in evlist__init()
[all …]
/linux/tools/testing/selftests/tc-testing/
H A Dtdc_batch.py4 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/drivers/gpu/drm/msm/
H A Dmsm_gem_vma.c1 // SPDX-License-Identifier: GPL-2.0-only
25 * struct msm_vm_map_op - create new pgtable mapping
30 /** @range: size of the region to map */
31 uint64_t range; member
48 * struct msm_vm_unmap_op - unmap a range of pages from pgtable
53 /** @range: size of region to unmap */
54 uint64_t range; member
68 * struct msm_vma_op - A MAP or UNMAP operation
100 * struct msm_vm_bind_job - Tracking for a VM_BIND ioctl
117 /** @prealloc: Tracking for pre-allocated MMU pgtable pages */
[all …]
/linux/drivers/clk/
H A Dclk-tps68470.c1 // 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/tools/testing/selftests/bpf/progs/
H A Dpyperf600.c1 // 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/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c1 // SPDX-License-Identifier: GPL-2.0
168 return -1; in write_file()
171 close(fd); in write_file()
173 return -1; in write_file()
188 return -1; in create_and_enter_userns()
190 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns()
192 return -1; in create_and_enter_userns()
196 return -1; in create_and_enter_userns()
201 return -1; in create_and_enter_userns()
204 return -1; in create_and_enter_userns()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-proximity4 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/include/uapi/linux/
H A Dblkzoned.h1 /* 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_COND_EMPTY
55 * - ZC2: Implicit Open | BLK_ZONE_COND_IMP_OPEN
56 * - ZC3: Explicit Open | BLK_ZONE_COND_EXP_OPEN
57 * - ZC4: Closed | BLK_ZONE_COND_CLOSED
58 * - ZC5: Full | BLK_ZONE_COND_FULL
[all …]

12345678910>>...24