Home
last modified time | relevance | path

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

12345678910>>...21

/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 Duffd-common.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2015-2023 Red Hat, Inc.
8 #include "uffd-common.h"
17 return (pthread_mutex_t *) (area + nr * gopts->page_size); in area_mutex()
22 * to avoid non alignment faults on non-x86 archs.
28 ((unsigned long)(area + nr * gopts->page_size + in area_count()
29 sizeof(pthread_mutex_t) + sizeof(unsigned long long) - in area_count()
[all...]
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 == - in test_holes()
[all...]
H A Dvm_util.c1 // SPDX-License-Identifier: GPL-2.0
74 static int supported = -1; in pagemap_scan_supported()
77 if (supported != -1) in pagemap_scan_supported()
109 return page_entry_is(fd, start, "soft-dirty", in pagemap_is_softdirty()
129 /* If present (63th bit), PFN is at bit 0 -- 54. */ in pagemap_get_pfn()
132 return -1ul;
144 close(f in clear_softdirty()
390 struct uffdio_range range = { .start = (uintptr_t)addr, .len = len }; uffd_unregister() local
[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.
59 if (pfn == -1UL) in is_backed_by_folio()
65 /* check for order-0 pages */ in is_backed_by_folio()
76 pfn_head = pfn & ~(nr_pages - 1); in is_backed_by_folio()
129 status = -1;
239 expected_orders[order] = 4 << (pmd_order - orde in check_after_split_folio_orders()
[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. */
77 switch (variant->backing) { in is_anon_backed()
94 switch (variant->backing) { in mmap_()
97 fd = -1; in mmap_()
103 fd = self->f in mmap_()
1491 struct uffdio_range range; TEST_F() local
[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/tools/testing/selftests/filesystems/
H A Didmapped_tmpfile.c1 // SPDX-License-Identifier: GPL-2.0
22 * The test mount maps caller-visible ids [0, MAP_RANGE) onto the on-disk range
46 * Clone @path into a detached mount idmapped so that caller-visible ids
47 * [0, MAP_RANGE) map onto the on-disk ids [MAP_HOST, MAP_HOST + MAP_RANGE).
48 * Returns the mount fd, or -1 if idmapped mounts are not available.
60 return -1; in idmapped_clone()
64 close(fd_tree); in idmapped_clone()
65 return -1; in idmapped_clone()
70 close(userns_fd); in idmapped_clone()
72 close(fd_tree); in idmapped_clone()
[all …]
H A Dutils.c1 // SPDX-License-Identifier: GPL-2.0
31 fprintf(stderr, "%m - " format "\n", ##__VA_ARGS__); \
32 (-errno); \
39 fprintf(stderr, "%m - " format "\n", ##__VA_ARGS__); \
43 #define STRLITERALLEN(x) (sizeof(""x"") - 1)
52 : sizeof(type) <= 8 ? 20 : sizeof(int[-2 * (sizeof(type) > 8)])))
55 for (__iterator = (__list)->next; __iterator != __list; __iterator = __iterator->nex
66 __u32 range; global() member
307 get_userns_fd(unsigned long nsid,unsigned long hostid,unsigned long range) get_userns_fd() argument
[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
4 .. _camera-controls:
14 .. _camera-control-id:
24 .. _v4l2-exposure-auto-type:
29 enum v4l2_exposure_auto_type -
38 .. flat-table::
39 :header-rows: 0
40 :stub-columns: 0
42 * - ``V4L2_EXPOSURE_AUTO``
43 - Automatic exposure time, automatic iris aperture.
[all …]
H A Dext-ctrls-rf-tuner.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
4 .. _rf-tuner-controls:
17 called Zero-IF tuners. Older tuners were typically simple PLL tuners
29 .. _rf-tuner-control-id:
48 range and step are driver-specific.
65 range and step are driver-specific.
69 signal path. It is located very close to tuner antenna input. Used
72 differs from the each others. The range and step are
73 driver-specific.
77 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/tools/testing/selftests/drivers/net/
H A Dpsp.py2 # SPDX-License-Identifier: GPL-2.0
44 return int(cfg.comm_sock.recv(1024)[:-1].decode('utf-8'))
62 _send_with_ack(cfg, b'data close\0')
63 s.close()
81 for i in range(rounds):
83 for _ in range(10): # allow 10 retries
100 read_len = -
[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"
42 * This value is different for compressed/non-compressed extents, thus
52 if (defrag1->root > defrag2->root) in compare_inode_defrag()
54 else if (defrag1->root < defrag2->root) in compare_inode_defrag()
55 return -1; in compare_inode_defrag()
56 else if (defrag1->ino > defrag2->ino) in compare_inode_defrag()
58 else if (defrag1->ino < defrag2->ino) in compare_inode_defrag()
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c1 // 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->dela in uffd_handler_thread_fn()
[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
41 #include <subcmd/parse-options.h>
46 #include "bpf-event.h"
47 #include "bpf-filter.h"
51 #include "dwarf-regs.h"
56 #include "intel-tpeb
1896 evlist__reset_weak_group(struct evlist * evsel_list,struct evsel * evsel,bool close) evlist__reset_weak_group() argument
2293 parse_event_enable_time(const char * str,struct event_enable_time * range,bool first) parse_event_enable_time() argument
2308 parse_event_enable_times(const char * str,struct event_enable_time * range) parse_event_enable_times() argument
[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/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/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)

12345678910>>...21