forked from SunnyRaj84348/android_kernel_xiaomi_msm8917
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branches 'sh/pm-runtime' and 'common/clkfwk' into sh-fixes-for-…
…linus
- Loading branch information
Showing
3,472 changed files
with
65,364 additions
and
35,672 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
What: /sys/firmware/acpi/pm_profile | ||
Date: 03-Nov-2011 | ||
KernelVersion: v3.2 | ||
Contact: [email protected] | ||
Description: The ACPI pm_profile sysfs interface exports the platform | ||
power management (and performance) requirement expectations | ||
as provided by BIOS. The integer value is directly passed as | ||
retrieved from the FADT ACPI table. | ||
Values: For possible values see ACPI specification: | ||
5.2.9 Fixed ACPI Description Table (FADT) | ||
Field: Preferred_PM_Profile | ||
|
||
Currently these values are defined by spec: | ||
0 Unspecified | ||
1 Desktop | ||
2 Mobile | ||
3 Workstation | ||
4 Enterprise Server | ||
5 SOHO Server | ||
6 Appliance PC | ||
7 Performance Server | ||
>7 Reserved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,3 +71,10 @@ Description: Value of 1 indicates the controller can honor the reset_devices | |
a dump device, as kdump requires resetting the device in order | ||
to work reliably. | ||
|
||
Where: /sys/bus/pci/devices/<dev>/ccissX/transport_mode | ||
Date: July 2011 | ||
Kernel Version: 3.0 | ||
Contact: [email protected] | ||
Description: Value of "simple" indicates that the controller has been placed | ||
in "simple mode". Value of "performant" indicates that the | ||
controller has been placed in "performant mode". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<refentry id="vidioc-create-bufs"> | ||
<refmeta> | ||
<refentrytitle>ioctl VIDIOC_CREATE_BUFS</refentrytitle> | ||
&manvol; | ||
</refmeta> | ||
|
||
<refnamediv> | ||
<refname>VIDIOC_CREATE_BUFS</refname> | ||
<refpurpose>Create buffers for Memory Mapped or User Pointer I/O</refpurpose> | ||
</refnamediv> | ||
|
||
<refsynopsisdiv> | ||
<funcsynopsis> | ||
<funcprototype> | ||
<funcdef>int <function>ioctl</function></funcdef> | ||
<paramdef>int <parameter>fd</parameter></paramdef> | ||
<paramdef>int <parameter>request</parameter></paramdef> | ||
<paramdef>struct v4l2_create_buffers *<parameter>argp</parameter></paramdef> | ||
</funcprototype> | ||
</funcsynopsis> | ||
</refsynopsisdiv> | ||
|
||
<refsect1> | ||
<title>Arguments</title> | ||
|
||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>fd</parameter></term> | ||
<listitem> | ||
<para>&fd;</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>request</parameter></term> | ||
<listitem> | ||
<para>VIDIOC_CREATE_BUFS</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>argp</parameter></term> | ||
<listitem> | ||
<para></para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1> | ||
<title>Description</title> | ||
|
||
<para>This ioctl is used to create buffers for <link linkend="mmap">memory | ||
mapped</link> or <link linkend="userp">user pointer</link> | ||
I/O. It can be used as an alternative or in addition to the | ||
<constant>VIDIOC_REQBUFS</constant> ioctl, when a tighter control over buffers | ||
is required. This ioctl can be called multiple times to create buffers of | ||
different sizes.</para> | ||
|
||
<para>To allocate device buffers applications initialize relevant fields of | ||
the <structname>v4l2_create_buffers</structname> structure. They set the | ||
<structfield>type</structfield> field in the | ||
<structname>v4l2_format</structname> structure, embedded in this | ||
structure, to the respective stream or buffer type. | ||
<structfield>count</structfield> must be set to the number of required buffers. | ||
<structfield>memory</structfield> specifies the required I/O method. The | ||
<structfield>format</structfield> field shall typically be filled in using | ||
either the <constant>VIDIOC_TRY_FMT</constant> or | ||
<constant>VIDIOC_G_FMT</constant> ioctl(). Additionally, applications can adjust | ||
<structfield>sizeimage</structfield> fields to fit their specific needs. The | ||
<structfield>reserved</structfield> array must be zeroed.</para> | ||
|
||
<para>When the ioctl is called with a pointer to this structure the driver | ||
will attempt to allocate up to the requested number of buffers and store the | ||
actual number allocated and the starting index in the | ||
<structfield>count</structfield> and the <structfield>index</structfield> fields | ||
respectively. On return <structfield>count</structfield> can be smaller than | ||
the number requested. The driver may also increase buffer sizes if required, | ||
however, it will not update <structfield>sizeimage</structfield> field values. | ||
The user has to use <constant>VIDIOC_QUERYBUF</constant> to retrieve that | ||
information.</para> | ||
|
||
<table pgwide="1" frame="none" id="v4l2-create-buffers"> | ||
<title>struct <structname>v4l2_create_buffers</structname></title> | ||
<tgroup cols="3"> | ||
&cs-str; | ||
<tbody valign="top"> | ||
<row> | ||
<entry>__u32</entry> | ||
<entry><structfield>index</structfield></entry> | ||
<entry>The starting buffer index, returned by the driver.</entry> | ||
</row> | ||
<row> | ||
<entry>__u32</entry> | ||
<entry><structfield>count</structfield></entry> | ||
<entry>The number of buffers requested or granted.</entry> | ||
</row> | ||
<row> | ||
<entry>&v4l2-memory;</entry> | ||
<entry><structfield>memory</structfield></entry> | ||
<entry>Applications set this field to | ||
<constant>V4L2_MEMORY_MMAP</constant> or | ||
<constant>V4L2_MEMORY_USERPTR</constant>.</entry> | ||
</row> | ||
<row> | ||
<entry>&v4l2-format;</entry> | ||
<entry><structfield>format</structfield></entry> | ||
<entry>Filled in by the application, preserved by the driver.</entry> | ||
</row> | ||
<row> | ||
<entry>__u32</entry> | ||
<entry><structfield>reserved</structfield>[8]</entry> | ||
<entry>A place holder for future extensions.</entry> | ||
</row> | ||
</tbody> | ||
</tgroup> | ||
</table> | ||
</refsect1> | ||
|
||
<refsect1> | ||
&return-value; | ||
|
||
<variablelist> | ||
<varlistentry> | ||
<term><errorcode>ENOMEM</errorcode></term> | ||
<listitem> | ||
<para>No memory to allocate buffers for <link linkend="mmap">memory | ||
mapped</link> I/O.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><errorcode>EINVAL</errorcode></term> | ||
<listitem> | ||
<para>The buffer type (<structfield>type</structfield> field) or the | ||
requested I/O method (<structfield>memory</structfield>) is not | ||
supported.</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
</refentry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<refentry id="vidioc-prepare-buf"> | ||
<refmeta> | ||
<refentrytitle>ioctl VIDIOC_PREPARE_BUF</refentrytitle> | ||
&manvol; | ||
</refmeta> | ||
|
||
<refnamediv> | ||
<refname>VIDIOC_PREPARE_BUF</refname> | ||
<refpurpose>Prepare a buffer for I/O</refpurpose> | ||
</refnamediv> | ||
|
||
<refsynopsisdiv> | ||
<funcsynopsis> | ||
<funcprototype> | ||
<funcdef>int <function>ioctl</function></funcdef> | ||
<paramdef>int <parameter>fd</parameter></paramdef> | ||
<paramdef>int <parameter>request</parameter></paramdef> | ||
<paramdef>struct v4l2_buffer *<parameter>argp</parameter></paramdef> | ||
</funcprototype> | ||
</funcsynopsis> | ||
</refsynopsisdiv> | ||
|
||
<refsect1> | ||
<title>Arguments</title> | ||
|
||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>fd</parameter></term> | ||
<listitem> | ||
<para>&fd;</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>request</parameter></term> | ||
<listitem> | ||
<para>VIDIOC_PREPARE_BUF</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>argp</parameter></term> | ||
<listitem> | ||
<para></para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1> | ||
<title>Description</title> | ||
|
||
<para>Applications can optionally call the | ||
<constant>VIDIOC_PREPARE_BUF</constant> ioctl to pass ownership of the buffer | ||
to the driver before actually enqueuing it, using the | ||
<constant>VIDIOC_QBUF</constant> ioctl, and to prepare it for future I/O. | ||
Such preparations may include cache invalidation or cleaning. Performing them | ||
in advance saves time during the actual I/O. In case such cache operations are | ||
not required, the application can use one of | ||
<constant>V4L2_BUF_FLAG_NO_CACHE_INVALIDATE</constant> and | ||
<constant>V4L2_BUF_FLAG_NO_CACHE_CLEAN</constant> flags to skip the respective | ||
step.</para> | ||
|
||
<para>The <structname>v4l2_buffer</structname> structure is | ||
specified in <xref linkend="buffer" />.</para> | ||
</refsect1> | ||
|
||
<refsect1> | ||
&return-value; | ||
|
||
<variablelist> | ||
<varlistentry> | ||
<term><errorcode>EBUSY</errorcode></term> | ||
<listitem> | ||
<para>File I/O is in progress.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><errorcode>EINVAL</errorcode></term> | ||
<listitem> | ||
<para>The buffer <structfield>type</structfield> is not | ||
supported, or the <structfield>index</structfield> is out of bounds, | ||
or no buffers have been allocated yet, or the | ||
<structfield>userptr</structfield> or | ||
<structfield>length</structfield> are invalid.</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
</refentry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.