Home
last modified time | relevance | path

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

12345678910>>...42

/kernel/linux/linux-6.6/tools/testing/selftests/net/
Dip_local_port_range.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
24 static void unpack_port_range(__u32 range, __u16 *lo, __u16 *hi) in unpack_port_range() argument
26 *lo = range & 0xffff; in unpack_port_range()
27 *hi = range >> 16; in unpack_port_range()
38 return -1; in get_so_domain()
67 return -1; in bind_to_loopback_any_port()
87 return -1; in get_sock_port()
96 return -1; in get_sock_port()
100 static int get_ip_local_port_range(int fd, __u32 *range) in get_ip_local_port_range() argument
109 return -1; in get_ip_local_port_range()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/sdsi/
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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
Duffd-common.c1 // 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;
29 mem_fd = memfd_create("uffd-test", memfd_flags); in uffd_mem_fd_create()
51 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in anon_allocate_area()
54 return -errno; in anon_allocate_area()
88 return -errno; in hugetlb_allocate_area()
95 return -errno; in hugetlb_allocate_area()
106 close(mem_fd); in hugetlb_allocate_area()
[all …]
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 …]
Dvm_util.c1 // SPDX-License-Identifier: GPL-2.0
50 /* If present (63th bit), PFN is at bit 0 -- 54. */ in pagemap_get_pfn()
53 return -1ul; in pagemap_get_pfn()
65 close(fd); in clear_softdirty()
86 if (fd == -1) in read_pmd_pagesize()
91 close(fd); in read_pmd_pagesize()
95 close(fd); in read_pmd_pagesize()
103 uint64_t thp = -1; in __check_huge()
109 ret = snprintf(addr_pattern, MAX_LINE_LENGTH, "%08lx-", in __check_huge()
160 MAP_NORESERVE | MAP_PRIVATE, -1, 0) != ptr) in allocate_transhuge()
[all …]
/kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/
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 …]
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 …]
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 …]
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 …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
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_HM12 <V4L2-PIX-FMT-HM12>`,
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 …]
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 …]
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 -
36 .. flat-table::
37 :header-rows: 0
38 :stub-columns: 0
40 * - ``V4L2_EXPOSURE_AUTO``
41 - Automatic exposure time, automatic iris aperture.
[all …]
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 …]
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/
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.
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/delta/
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.
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
Duserfaultfd_util.c1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (C) 2019-2022 Google LLC
31 int uffd = uffd_desc->uffd; in uffd_handler_thread_fn()
32 int pipefd = uffd_desc->pipefds[0]; in uffd_handler_thread_fn()
33 useconds_t delay = uffd_desc->delay; in uffd_handler_thread_fn()
50 r = poll(pollfd, 2, -1); in uffd_handler_thread_fn()
52 case -1: in uffd_handler_thread_fn()
80 if (r == -1) { in uffd_handler_thread_fn()
97 r = uffd_desc->handler(uffd_desc->uffd_mode, uffd, &msg); in uffd_handler_thread_fn()
139 TEST_ASSERT(ioctl(uffd, UFFDIO_API, &uffdio_api) != -1, in uffd_setup_demand_paging()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
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 = 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 …]
/kernel/linux/linux-6.6/drivers/rtc/
Dclass.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/hv/
Dchannel.c1 // SPDX-License-Identifier: GPL-2.0-only
26 * hv_gpadl_size - Return the real size of a gpadl, the size that Hyper-V uses
28 * For BUFFER gpadl, Hyper-V uses the exact same size as the guest does.
33 * (PAGE_SIZE - HV_HYP_PAGE_SIZE) gap. And since there are two rings in a
34 * ringbuffer, the total size for a RING gpadl that Hyper-V uses is the
43 /* The size of a ringbuffer must be page-aligned */ in hv_gpadl_size()
49 * the first guest-size page of each of the two ring buffers. in hv_gpadl_size()
50 * So we effectively subtract out two guest-size pages, and add in hv_gpadl_size()
51 * back two Hyper-V size pages. in hv_gpadl_size()
53 return size - 2 * (PAGE_SIZE - HV_HYP_PAGE_SIZE); in hv_gpadl_size()
[all …]
/kernel/linux/linux-6.6/tools/perf/util/
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"
41 #include "parse-events.h"
42 #include <subcmd/parse-options.h>
69 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
70 #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y)
75 perf_evlist__init(&evlist->core); in evlist__init()
76 perf_evlist__set_maps(&evlist->core, cpus, threads); in evlist__init()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Dclass.c1 // 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_simple_remove(&rtc_ida, rtc->id); in rtc_device_release()
45 int rtc_hctosys_ret = -ENODEV;
48 * whether it stores the most close value or the value with partial
53 * of >32bits is not possible. So storing the most close value would
[all …]
/kernel/linux/linux-5.10/include/linux/
Dtee_drv.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2015-2016, Linaro Limited
24 #define TEE_SHM_DMA_BUF BIT(1) /* Memory with dma-buf handle */
25 #define TEE_SHM_EXT_DMA_BUF BIT(2) /* Memory with dma-buf handle */
38 * struct tee_context - driver specific context on file pointer data
47 * wait for tee-supplicant daemon to be started if not present
50 * non-blocking in nature.
84 * struct tee_driver_ops - driver operations vtable
89 * @close_session: close a session
121 * struct tee_desc - Describes the TEE driver to the subsystem
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/
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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/
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 …]
/kernel/linux/linux-5.10/arch/x86/events/intel/
Dpt.h1 /* 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 …]

12345678910>>...42