Home
last modified time | relevance | path

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

12345678910>>...26

/Linux-v5.15/tools/testing/selftests/powerpc/ptrace/
Dptrace-perf-hwbreak.c1 // 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-v5.15/tools/testing/selftests/vm/
Dmadv_populate.c1 // SPDX-License-Identifier: GPL-2.0-only
93 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_read()
111 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_write()
137 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
140 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
145 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
148 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
153 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
156 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
169 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated()
[all …]
Duserfaultfd.c1 // 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
82 /* Whether to test uffd write-protection */
92 static int uffd = -1;
111 * to avoid non alignment faults on non-x86 archs.
117 sizeof(unsigned long long) - 1) & \
[all …]
/Linux-v5.15/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 -
37 .. flat-table::
38 :header-rows: 0
39 :stub-columns: 0
41 * - ``V4L2_EXPOSURE_AUTO``
42 - 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 …]
Dcolorspaces.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
46 all in the range [0…1].
82 primaries. This is usually chosen to be close to daylight which has been
97 the non-linear component value, which is a closer match to the
98 non-linear performance of both the eye and displays. Linear component
99 values are denoted RGB, non-linear are denoted as R'G'B'. In general
102 provide linear RGB colors or to use the built-in openGL support to apply
106 non-linear R'G'B' to non-linear Y'CbCr. This function is determined by
107 the so-called luma coefficients. There may be multiple possible Y'CbCr
122 The CIE XYZ colorspace where X, Y and Z are in the range [0…1] describes
[all …]
/Linux-v5.15/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.
Ddelta-ipc.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "delta-ipc.h"
11 #include "delta-mem.h"
38 #define msg_to_ctx(msg) ((struct delta_ipc_ctx *)(msg)->header.host_hdl)
39 #define msg_to_copro_hdl(msg) ((msg)->header.copro_hdl)
43 return (ctx->ipc_buf->paddr + (vaddr - ctx->ipc_buf->vaddr)); in to_paddr()
49 return ((data >= ctx->ipc_buf->vaddr) && in is_valid_data()
50 ((data + size) <= (ctx->ipc_buf->vaddr + ctx->ipc_buf->size))); in is_valid_data()
58 * this IPC shared memory, avoiding de-facto recopies inside delta-ipc.
62 * - struct delta_ipc_open_msg
[all …]
/Linux-v5.15/drivers/rtc/
Dclass.c1 // SPDX-License-Identifier: GPL-2.0
21 #include "rtc-core.h"
30 ida_simple_remove(&rtc_ida, rtc->id); in rtc_device_release()
31 mutex_destroy(&rtc->ops_lock); in rtc_device_release()
37 int rtc_hctosys_ret = -ENODEV;
40 * whether it stores the most close value or the value with partial
45 * of >32bits is not possible. So storing the most close value would
60 dev_err(rtc->dev.parent, in rtc_hctosys()
69 err = -ERANGE; in rtc_hctosys()
76 dev_info(rtc->dev.parent, "setting system clock to %ptR UTC (%lld)\n", in rtc_hctosys()
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
/Linux-v5.15/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c1 // 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-v5.15/tools/testing/selftests/resctrl/
Dcat_test.c1 // 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-v5.15/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 …]
/Linux-v5.15/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 …]
/Linux-v5.15/drivers/mmc/core/
Dregulator.c1 // 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-v5.15/Documentation/ABI/testing/
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-v5.15/tools/testing/selftests/net/
Dmsg_zerocopy.c7 * - 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-v5.15/include/uapi/xen/
Dgntdev.h1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR MIT) */
90 * N.B. Where more than one page has been mapped into a contiguous range, the
91 * supplied @vaddr must correspond to the start of the range; otherwise
93 * contiguously-allocated range at once, and not any subrange thereof.
99 /* The virtual address of the first mapped page in a range. */
125 * cleanup if this side crashes. Required to implement cross-domain robust
126 * mutexes or close notification on communication channels.
174 * The local buffer may cross a Xen page boundary -- the driver will
185 * If -1 is returned, the status of all segments is undefined.
220 * Create a dma-buf [1] from grant references @refs of count @count provided
[all …]
/Linux-v5.15/include/uapi/linux/
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_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-v5.15/Documentation/userspace-api/
Dvduse.rst2 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-v5.15/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py2 # SPDX-License-Identifier: GPL-2.0-only
3 # -*- coding: utf-8 -*-
7 - If there is Linux trace file with pstate_sample events enabled, then
9 - If user has not specified a trace file as input via command line parameters,
16 gnuplot-py 1.8 or higher
18 gnuplot-py, phython-gnuplot or phython3-gnuplot, gnuplot-nox, ... )
20 HWP (Hardware P-States are disabled)
79 print(' ./intel_pstate_tracer.py [-c cpus] -t <trace_file> -n <test_name>')
81 … print(' ./intel_pstate_tracer.py [--cpu cpus] ---trace_file <trace_file> --name <test_name>')
83 print(' sudo ./intel_pstate_tracer.py [-c cpus] -i <interval> -n <test_name> -m <kbytes>')
[all …]
/Linux-v5.15/Documentation/networking/
Ddccp.rst1 .. SPDX-License-Identifier: GPL-2.0
9 - Introduction
10 - Missing features
11 - Socket options
12 - Sysctl variables
13 - IOCTLs
14 - Other tunables
15 - Notes
22 for real-time and multimedia (streaming) traffic.
26 implementation, this is the TCP-like CCID2 (RFC 4341). Additional CCIDs, such as
[all …]

12345678910>>...26